diff --git a/worlds/subnautica/Options.py b/worlds/subnautica/Options.py index b5dc2241fb..f9f3f56756 100644 --- a/worlds/subnautica/Options.py +++ b/worlds/subnautica/Options.py @@ -1,4 +1,4 @@ -from Options import Choice, Range +from Options import Choice, Range, DeathLink from .Creatures import all_creatures @@ -39,8 +39,14 @@ class CreatureScans(Range): range_end = len(all_creatures) +class SubnauticaDeathLink(DeathLink): + """When you die, everyone dies. Of course the reverse is true too. + Note: can be toggled via in-game console command "deathlink".""" + + options = { "item_pool": ItemPool, "goal": Goal, - "creature_scans": CreatureScans + "creature_scans": CreatureScans, + "death_link": SubnauticaDeathLink, } diff --git a/worlds/subnautica/__init__.py b/worlds/subnautica/__init__.py index 2127fb0cda..be709a1c30 100644 --- a/worlds/subnautica/__init__.py +++ b/worlds/subnautica/__init__.py @@ -115,7 +115,8 @@ class SubnauticaWorld(World): slot_data: Dict[str, Any] = { "goal": goal.current_key, "vanilla_tech": vanilla_tech, - "creatures_to_scan": self.creatures_to_scan + "creatures_to_scan": self.creatures_to_scan, + "death_link": self.world.death_link[self.player].value, } return slot_data