mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-02 11:23:32 -07:00
Remove Victory item and use event instead.
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user