Subnautica: fix swim_rule considers items property use (#1419)
This commit is contained in:
parent
0be0732a2b
commit
6c1023a88c
|
@ -152,7 +152,7 @@ def has_ultra_glide_fins(state: "CollectionState", player: int) -> bool:
|
||||||
def get_max_swim_depth(state: "CollectionState", player: int) -> int:
|
def get_max_swim_depth(state: "CollectionState", player: int) -> int:
|
||||||
swim_rule: SwimRule = state.multiworld.swim_rule[player]
|
swim_rule: SwimRule = state.multiworld.swim_rule[player]
|
||||||
depth: int = swim_rule.base_depth
|
depth: int = swim_rule.base_depth
|
||||||
if swim_rule == swim_rule.consider_items:
|
if swim_rule.consider_items:
|
||||||
if has_seaglide(state, player):
|
if has_seaglide(state, player):
|
||||||
if has_ultra_high_capacity_tank(state, player):
|
if has_ultra_high_capacity_tank(state, player):
|
||||||
depth += 350 # It's about 800m. Give some room
|
depth += 350 # It's about 800m. Give some room
|
||||||
|
|
Loading…
Reference in New Issue