Remove Victory item and use event instead.

This commit is contained in:
spinerak
2024-09-20 01:15:36 +02:00
parent e9432f9245
commit c2f7d674d3
2 changed files with 7 additions and 7 deletions

View File

@@ -16,8 +16,6 @@ class YachtDiceItem(Item):
item_table = {
# victory item, always placed manually at goal location
"Victory": ItemData(16871244000 - 1, ItemClassification.progression),
"Dice": ItemData(16871244000, ItemClassification.progression),
"Dice Fragment": ItemData(16871244001, ItemClassification.progression),
"Roll": ItemData(16871244002, ItemClassification.progression),

View File

@@ -1,7 +1,7 @@
import math
from typing import Dict
from BaseClasses import CollectionState, Entrance, Item, Region, Tutorial
from BaseClasses import CollectionState, Entrance, Item, ItemClassification, Location, Region, Tutorial
from worlds.AutoWorld import WebWorld, World
@@ -56,7 +56,7 @@ class YachtDiceWorld(World):
item_name_groups = item_groups
ap_world_version = "2.1.2"
ap_world_version = "2.1.3"
def _get_yachtdice_data(self):
return {
@@ -456,10 +456,12 @@ class YachtDiceWorld(World):
if loc_data.region == board.name
]
# Add the victory item to the correct location.
# The website declares that the game is complete when the victory item is obtained.
# Change the victory location to an event and place the Victory item there.
victory_location_name = f"{self.goal_score} score"
self.get_location(victory_location_name).place_locked_item(self.create_item("Victory"))
self.get_location(victory_location_name).address = None
self.get_location(victory_location_name).place_locked_item(
Item("Victory", ItemClassification.progression, None, self.player)
)
# add the regions
connection = Entrance(self.player, "New Board", menu)