Subnautica: add empty tanks option (#5271)

This commit is contained in:
Fabian Dill
2025-08-02 21:19:23 +02:00
committed by GitHub
parent 72ae076ce7
commit d408f7cabc
2 changed files with 7 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ class SubnauticaWorld(World):
location_name_to_id = all_locations location_name_to_id = all_locations
options_dataclass = options.SubnauticaOptions options_dataclass = options.SubnauticaOptions
options: options.SubnauticaOptions options: options.SubnauticaOptions
required_client_version = (0, 5, 0) required_client_version = (0, 6, 2)
origin_region_name = "Planet 4546B" origin_region_name = "Planet 4546B"
creatures_to_scan: List[str] creatures_to_scan: List[str]
@@ -155,6 +155,7 @@ class SubnauticaWorld(World):
"creatures_to_scan": self.creatures_to_scan, "creatures_to_scan": self.creatures_to_scan,
"death_link": self.options.death_link.value, "death_link": self.options.death_link.value,
"free_samples": self.options.free_samples.value, "free_samples": self.options.free_samples.value,
"empty_tanks": self.options.empty_tanks.value,
} }
return slot_data return slot_data

View File

@@ -129,6 +129,10 @@ class FillerItemsDistribution(ItemDict):
return list(self.value.keys()), list(accumulate(self.value.values())) return list(self.value.keys()), list(accumulate(self.value.values()))
class EmptyTanks(DefaultOnToggle):
"""Oxygen Tanks stored in inventory are empty if enabled."""
@dataclass @dataclass
class SubnauticaOptions(PerGameCommonOptions): class SubnauticaOptions(PerGameCommonOptions):
swim_rule: SwimRule swim_rule: SwimRule
@@ -140,3 +144,4 @@ class SubnauticaOptions(PerGameCommonOptions):
death_link: SubnauticaDeathLink death_link: SubnauticaDeathLink
start_inventory_from_pool: StartInventoryPool start_inventory_from_pool: StartInventoryPool
filler_items_distribution: FillerItemsDistribution filler_items_distribution: FillerItemsDistribution
empty_tanks: EmptyTanks