summary refs log tree commit diff stats
path: root/items.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-02-15 18:19:54 -0500
committerGitHub <noreply@github.com>2024-02-16 00:19:54 +0100
commit3a8ba8f4f16ac0d62b9ca4f9ff531eefd58004e4 (patch)
tree257584d018a5c3481ab085ba46537bc49db84631 /items.py
parente21b6acc910fb4993395204c8c0fe4ec2cbea16c (diff)
downloadlingo-apworld-3a8ba8f4f16ac0d62b9ca4f9ff531eefd58004e4.tar.gz
lingo-apworld-3a8ba8f4f16ac0d62b9ca4f9ff531eefd58004e4.tar.bz2
lingo-apworld-3a8ba8f4f16ac0d62b9ca4f9ff531eefd58004e4.zip
Lingo: Fix non-progressive The Colorful (#2782)
The Colorful did not actually properly split into individual doors when progressive colorful was off. This change refactors the code that handles special cases with progressive items to make things clearer (which is important because I will be introducing another one).
Diffstat (limited to 'items.py')
-rw-r--r--items.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/items.py b/items.py index 7b1a650..9f8bf56 100644 --- a/items.py +++ b/items.py
@@ -24,14 +24,6 @@ class ItemData(NamedTuple):
24 return world.options.shuffle_colors > 0 24 return world.options.shuffle_colors > 0
25 elif self.mode == "doors": 25 elif self.mode == "doors":
26 return world.options.shuffle_doors != ShuffleDoors.option_none 26 return world.options.shuffle_doors != ShuffleDoors.option_none
27 elif self.mode == "orange tower":
28 # door shuffle is on and tower isn't progressive
29 return world.options.shuffle_doors != ShuffleDoors.option_none \
30 and not world.options.progressive_orange_tower
31 elif self.mode == "the colorful":
32 # complex door shuffle is on and colorful isn't progressive
33 return world.options.shuffle_doors == ShuffleDoors.option_complex \
34 and not world.options.progressive_colorful
35 elif self.mode == "complex door": 27 elif self.mode == "complex door":
36 return world.options.shuffle_doors == ShuffleDoors.option_complex 28 return world.options.shuffle_doors == ShuffleDoors.option_complex
37 elif self.mode == "door group": 29 elif self.mode == "door group":
@@ -72,12 +64,7 @@ def load_item_data():
72 door_groups.setdefault(door.group, []).extend(door.door_ids) 64 door_groups.setdefault(door.group, []).extend(door.door_ids)
73 65
74 if room_name in PROGRESSION_BY_ROOM and door_name in PROGRESSION_BY_ROOM[room_name]: 66 if room_name in PROGRESSION_BY_ROOM and door_name in PROGRESSION_BY_ROOM[room_name]:
75 if room_name == "Orange Tower": 67 door_mode = "special"
76 door_mode = "orange tower"
77 elif room_name == "The Colorful":
78 door_mode = "the colorful"
79 else:
80 door_mode = "special"
81 68
82 ALL_ITEM_TABLE[door.item_name] = \ 69 ALL_ITEM_TABLE[door.item_name] = \
83 ItemData(get_door_item_id(room_name, door_name), 70 ItemData(get_door_item_id(room_name, door_name),