feat: RandomWeapon for starting items

feat: Start with "Big Magic" or "Small Magic" for starting magic meter
This commit is contained in:
aerinon
2024-05-30 13:02:22 -06:00
parent 28872c8d27
commit 3554177a61
3 changed files with 21 additions and 3 deletions

13
Main.py
View File

@@ -231,7 +231,18 @@ def main(args, seed=None, fish=None):
if inv_list:
for inv_item in inv_list:
name = inv_item.strip()
name = name if name != 'Ocarina' or world.flute_mode[player] != 'active' else 'Ocarina (Activated)'
if inv_item == 'RandomWeapon':
name = random.choice(['Progressive Bow', 'Hammer', 'Progressive Sword', 'Cane of Somaria', 'Cane of Byrna', 'Fire Rod'])
extra = []
if name in ['Cane of Somaria', 'Cane of Byrna', 'Fire Rod']:
extra.append('Big Magic')
if name == 'Progressive Bow':
extra.extend(['Arrows (10)'] * 3)
for e in extra:
item = ItemFactory(e, p)
if item:
world.push_precollected(item)
name = name if name != 'Ocarina' or world.flute_mode[p] != 'active' else 'Ocarina (Activated)'
item = ItemFactory(name, p)
if item:
world.push_precollected(item)