Skip to content

Commit d408f7c

Browse files
authored
Subnautica: add empty tanks option (#5271)
1 parent 72ae076 commit d408f7c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

worlds/subnautica/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SubnauticaWorld(World):
4141
location_name_to_id = all_locations
4242
options_dataclass = options.SubnauticaOptions
4343
options: options.SubnauticaOptions
44-
required_client_version = (0, 5, 0)
44+
required_client_version = (0, 6, 2)
4545
origin_region_name = "Planet 4546B"
4646
creatures_to_scan: List[str]
4747

@@ -155,6 +155,7 @@ def fill_slot_data(self) -> Dict[str, Any]:
155155
"creatures_to_scan": self.creatures_to_scan,
156156
"death_link": self.options.death_link.value,
157157
"free_samples": self.options.free_samples.value,
158+
"empty_tanks": self.options.empty_tanks.value,
158159
}
159160

160161
return slot_data

worlds/subnautica/options.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def weights_pair(self) -> typing.Tuple[typing.List[str], typing.List[int]]:
129129
return list(self.value.keys()), list(accumulate(self.value.values()))
130130

131131

132+
class EmptyTanks(DefaultOnToggle):
133+
"""Oxygen Tanks stored in inventory are empty if enabled."""
134+
135+
132136
@dataclass
133137
class SubnauticaOptions(PerGameCommonOptions):
134138
swim_rule: SwimRule
@@ -140,3 +144,4 @@ class SubnauticaOptions(PerGameCommonOptions):
140144
death_link: SubnauticaDeathLink
141145
start_inventory_from_pool: StartInventoryPool
142146
filler_items_distribution: FillerItemsDistribution
147+
empty_tanks: EmptyTanks

0 commit comments

Comments
 (0)