from collections.abc import Callable from typing import TYPE_CHECKING from BaseClasses import CollectionState from .player_logic import AccessRequirements if TYPE_CHECKING: from . import Lingo2World def lingo2_can_satisfy_requirements(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.can_reach_region(region_name, world.player) for region_name in reqs.rooms): return False # TODO: symbols for letter_key, letter_level in reqs.letters.items(): if not state.has(letter_key, world.player, letter_level): 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) form> An iOS game where you catch items in a cart
summary refs log tree commit diff stats
path: root/Resources/helvetica.fnt
blob: 97539643f227e9c039821d6fe82235fdbf9c08ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99