Subnautica: 2.0 compatibility (#1329)

This commit is contained in:
Fabian Dill
2022-12-17 17:42:02 +01:00
committed by GitHub
parent 37b7f0d32d
commit e0be79639c
4 changed files with 61 additions and 34 deletions

View File

@@ -113,7 +113,11 @@ def has_stasis_rifle(state: "CollectionState", player: int) -> bool:
def has_containment(state: "CollectionState", player: int) -> bool:
return state.has("Alien Containment Fragment", player, 2) and state.has("Multipurpose Room", player)
return state.has("Alien Containment", player) and has_utility_room(state, player)
def has_utility_room(state: "CollectionState", player: int) -> bool:
return state.has("Large Room", player) or state.has("Multipurpose Room", player)
# Either we have propulsion cannon, or prawn + propulsion cannon arm