[TimeSpinner] Serverside DeathLink + Spoiler log extension

This commit is contained in:
Jarno Westhof 2021-11-06 01:12:11 +01:00 committed by Fabian Dill
parent f43475f33b
commit ea707a0bc5
2 changed files with 11 additions and 2 deletions

View File

@ -42,6 +42,10 @@ class Inverted(Toggle):
# "Require gasmask for Maw" # "Require gasmask for Maw"
# display_name = "Stinky Maw" # display_name = "Stinky Maw"
class DeathLink(Toggle):
"Participate in the DeathLink mechanic"
display_name = "DeathLink"
# Some options that are available in the timespinner randomizer arent currently implemented # Some options that are available in the timespinner randomizer arent currently implemented
timespinner_options: Dict[str, Toggle] = { timespinner_options: Dict[str, Toggle] = {
"StartWithJewelryBox": StartWithJewelryBox, "StartWithJewelryBox": StartWithJewelryBox,
@ -53,7 +57,8 @@ timespinner_options: Dict[str, Toggle] = {
"QuickSeed": QuickSeed, "QuickSeed": QuickSeed,
"SpecificKeycards": SpecificKeycards, "SpecificKeycards": SpecificKeycards,
"Inverted": Inverted, "Inverted": Inverted,
#"StinkyMaw": StinkyMaw #"StinkyMaw": StinkyMaw,
"DeathLink": DeathLink,
} }
def is_option_enabled(world: MultiWorld, player: int, name: str) -> bool: def is_option_enabled(world: MultiWorld, player: int, name: str) -> bool:

View File

@ -1,4 +1,4 @@
from typing import Dict, List, Set from typing import Dict, List, Set, TextIO
from BaseClasses import Item, MultiWorld, Location from BaseClasses import Item, MultiWorld, Location
from ..AutoWorld import World from ..AutoWorld import World
from .LogicMixin import TimespinnerLogic from .LogicMixin import TimespinnerLogic
@ -77,7 +77,11 @@ class TimespinnerWorld(World):
slot_data["PersonalItems"] = get_personal_items(self.player, self.location_cache[self.player]) slot_data["PersonalItems"] = get_personal_items(self.player, self.location_cache[self.player])
return slot_data return slot_data
def write_spoiler_header(self, spoiler_handle: TextIO):
spoiler_handle.write('Twin Pyramid Keys unlock: %s\n' % (self.pyramid_keys_unlock[self.player]))
def get_excluded_items_based_on_options(world: MultiWorld, player: int) -> Set[str]: def get_excluded_items_based_on_options(world: MultiWorld, player: int) -> Set[str]:
excluded_items: Set[str] = set() excluded_items: Set[str] = set()