Subnautica: Add DeathLink (#803)
This commit is contained in:
parent
53a995372f
commit
9e972eafb2
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue