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. |
||
---|---|---|
.. | ||
docs | ||
test | ||
Client.py | ||
DeathWishLocations.py | ||
DeathWishRules.py | ||
Items.py | ||
Locations.py | ||
Options.py | ||
Regions.py | ||
Rules.py | ||
Types.py | ||
__init__.py |