mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Subnautica: Add DeathLink (#803)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from Options import Choice, Range
|
from Options import Choice, Range, DeathLink
|
||||||
from .Creatures import all_creatures
|
from .Creatures import all_creatures
|
||||||
|
|
||||||
|
|
||||||
@@ -39,8 +39,14 @@ class CreatureScans(Range):
|
|||||||
range_end = len(all_creatures)
|
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 = {
|
options = {
|
||||||
"item_pool": ItemPool,
|
"item_pool": ItemPool,
|
||||||
"goal": Goal,
|
"goal": Goal,
|
||||||
"creature_scans": CreatureScans
|
"creature_scans": CreatureScans,
|
||||||
|
"death_link": SubnauticaDeathLink,
|
||||||
}
|
}
|
||||||
|
@@ -115,7 +115,8 @@ class SubnauticaWorld(World):
|
|||||||
slot_data: Dict[str, Any] = {
|
slot_data: Dict[str, Any] = {
|
||||||
"goal": goal.current_key,
|
"goal": goal.current_key,
|
||||||
"vanilla_tech": vanilla_tech,
|
"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
|
return slot_data
|
||||||
|
Reference in New Issue
Block a user