TUNIC: Use push_precollected for start_with_sword (#2857)
This commit is contained in:
		| @@ -73,9 +73,6 @@ class TunicWorld(World): | |||||||
|                 self.options.hexagon_quest.value = passthrough["hexagon_quest"] |                 self.options.hexagon_quest.value = passthrough["hexagon_quest"] | ||||||
|                 self.options.entrance_rando.value = passthrough["entrance_rando"] |                 self.options.entrance_rando.value = passthrough["entrance_rando"] | ||||||
|  |  | ||||||
|         if self.options.start_with_sword and "Sword" not in self.options.start_inventory: |  | ||||||
|             self.options.start_inventory.value["Sword"] = 1 |  | ||||||
|  |  | ||||||
|     def create_item(self, name: str) -> TunicItem: |     def create_item(self, name: str) -> TunicItem: | ||||||
|         item_data = item_table[name] |         item_data = item_table[name] | ||||||
|         return TunicItem(name, item_data.classification, self.item_name_to_id[name], self.player) |         return TunicItem(name, item_data.classification, self.item_name_to_id[name], self.player) | ||||||
| @@ -94,6 +91,9 @@ class TunicWorld(World): | |||||||
|             items_to_create["Fool Trap"] += items_to_create[money_fool] |             items_to_create["Fool Trap"] += items_to_create[money_fool] | ||||||
|             items_to_create[money_fool] = 0 |             items_to_create[money_fool] = 0 | ||||||
|  |  | ||||||
|  |         if self.options.start_with_sword: | ||||||
|  |             self.multiworld.push_precollected(self.create_item("Sword")) | ||||||
|  |  | ||||||
|         if sword_progression: |         if sword_progression: | ||||||
|             items_to_create["Stick"] = 0 |             items_to_create["Stick"] = 0 | ||||||
|             items_to_create["Sword"] = 0 |             items_to_create["Sword"] = 0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Scipio Wright
					Scipio Wright