about summary refs log tree commit diff stats
path: root/data/maps/the_sturdy/rooms/S2 Area.txtpb
blob: 38fad5e922de6a1e08a7aaa437d14998e64ad87d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20pre { line-height: 125%; }
td.linenos
name: "S2 Area"
panels {
  name: "COLORS"
  path: "Panels/Rainbow/panel_1"
  clue: "colors"
  answer: "rainbow"
  symbols: BOXES
}
letters {
  key: "s"
  level2: true
  path: "Components/Collectables/collectable"
}
paintings {
  name: "RAINBOW"
  # The validator is wrong about this node not existing, because it's in a
  # sub-scene.
  path: "Components/Doors/Rainbow2/Hinge/rainbow"
  enter_only: true
}
>(state: CollectionState, reqs: AccessRequirements, world: "Lingo2World") -> bool: if not all(state.has(item, world.player) for item in reqs.items): return False if not all(state.has(item, world.player, amount) for item, amount in reqs.progressives.items()): return False if not all(state.can_reach_region(region_name, world.player) for region_name in reqs.rooms): return False for letter_key, letter_level in reqs.letters.items(): if not state.has(letter_key, world.player, letter_level): return False if reqs.cyans: if not any(state.has(letter, world.player, amount) for letter, amount in world.player_logic.double_letter_amount.items()): return False if len(reqs.or_logic) > 0: if not all(any(lingo2_can_satisfy_requirements(state, sub_reqs, world) for sub_reqs in subjunction) for subjunction in reqs.or_logic): return False return True def make_location_lambda(reqs: AccessRequirements, world: "Lingo2World") -> Callable[[CollectionState], bool]: return lambda state: lingo2_can_satisfy_requirements(state, reqs, world)