Subnautica: Add DeathLink (#803)

This commit is contained in:
Fabian Dill 2022-07-21 15:39:34 +02:00 committed by GitHub
parent 53a995372f
commit 9e972eafb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -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,
}

View File

@ -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