Archipelago/worlds/ahit
Mysteryem 499dad53b1
AHIT: Fix thug shops having 0 items after the first shop rolls 0 items (#3799)
Once a thug shop rolled 0 as the number of items it should have, all
remaining iterations would do nothing because neither the `count == -1`
condition nor the `count >= 1` condition would be met. This caused all
remaining thug shops to have zero items. This also caused the item
counts of remaining thug shops to be absent from slot data, which was
how this issue was found.

I found the old code confusing and, rather than try to figure out how to
fix it, I opted to rewrite it. With the new code, a local variable
dictionary tracks the number of created locations for each thug and no
more locations are created for a thug once their number of locations
equals the number of shop items that thug rolled.
2024-08-31 21:00:19 +02:00
..
docs AHIT: Update Setup Guide (#3647) 2024-07-25 09:27:22 +02:00
test
Client.py
DeathWishLocations.py
DeathWishRules.py AHIT: Fix Death Wish location rules not being added properly (#3455) 2024-06-04 21:15:28 +02:00
Items.py AHIT: Generation error fixes and some other bug fixes (#3663) 2024-07-27 19:16:52 +02:00
Locations.py
Options.py
Regions.py AHIT: Fix thug shops having 0 items after the first shop rolls 0 items (#3799) 2024-08-31 21:00:19 +02:00
Rules.py AHIT: Fix Time Rift - Alpine Skyline entrance logic (#3851) 2024-08-29 08:11:42 +02:00
Types.py
__init__.py AHIT: Generation error fixes and some other bug fixes (#3663) 2024-07-27 19:16:52 +02:00