summary refs log tree commit diff stats
path: root/__init__.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-01-15 15:13:29 -0500
committerGitHub <noreply@github.com>2025-01-15 21:13:29 +0100
commita834180195305fe0be91bd0ced5b75de104b7520 (patch)
tree6b4c1f8713e54dea7b75b9abe20c224178d02921 /__init__.py
parent1c7fcd002eb59e8cda09997eb89ecd609aff7275 (diff)
downloadlingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.tar.gz
lingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.tar.bz2
lingo-apworld-a834180195305fe0be91bd0ced5b75de104b7520.zip
Lingo: Add speed boost mode (#3989)
* Add speed boost mode

* Update generated.dat

* Modify the actual trap weights option when speed boost mode is on

* EOF newline

* Update generated.dat
Diffstat (limited to '__init__.py')
-rw-r--r--__init__.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/__init__.py b/__init__.py index 2a61a71..141fca0 100644 --- a/__init__.py +++ b/__init__.py
@@ -128,6 +128,9 @@ class LingoWorld(World):
128 pool.append(self.create_item("Puzzle Skip")) 128 pool.append(self.create_item("Puzzle Skip"))
129 129
130 if traps: 130 if traps:
131 if self.options.speed_boost_mode:
132 self.options.trap_weights.value["Slowness Trap"] = 0
133
131 total_weight = sum(self.options.trap_weights.values()) 134 total_weight = sum(self.options.trap_weights.values())
132 135
133 if total_weight == 0: 136 if total_weight == 0:
@@ -171,7 +174,7 @@ class LingoWorld(World):
171 "death_link", "victory_condition", "shuffle_colors", "shuffle_doors", "shuffle_paintings", "shuffle_panels", 174 "death_link", "victory_condition", "shuffle_colors", "shuffle_doors", "shuffle_paintings", "shuffle_panels",
172 "enable_pilgrimage", "sunwarp_access", "mastery_achievements", "level_2_requirement", "location_checks", 175 "enable_pilgrimage", "sunwarp_access", "mastery_achievements", "level_2_requirement", "location_checks",
173 "early_color_hallways", "pilgrimage_allows_roof_access", "pilgrimage_allows_paintings", "shuffle_sunwarps", 176 "early_color_hallways", "pilgrimage_allows_roof_access", "pilgrimage_allows_paintings", "shuffle_sunwarps",
174 "group_doors" 177 "group_doors", "speed_boost_mode"
175 ] 178 ]
176 179
177 slot_data = { 180 slot_data = {
@@ -188,5 +191,8 @@ class LingoWorld(World):
188 return slot_data 191 return slot_data
189 192
190 def get_filler_item_name(self) -> str: 193 def get_filler_item_name(self) -> str:
191 filler_list = [":)", "The Feeling of Being Lost", "Wanderlust", "Empty White Hallways"] 194 if self.options.speed_boost_mode:
192 return self.random.choice(filler_list) 195 return "Speed Boost"
196 else:
197 filler_list = [":)", "The Feeling of Being Lost", "Wanderlust", "Empty White Hallways"]
198 return self.random.choice(filler_list)