fix bug causing roulette to sometimes choose items in same zone
This commit is contained in:
parent
4b66a560e7
commit
d2e8e9e009
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class Roulette
|
||||||
checked_zone_id = zone.id
|
checked_zone_id = zone.id
|
||||||
next if checked_zone_id == zone_id
|
next if checked_zone_id == zone_id
|
||||||
if i = unoccupied_zone_ids.find_index(zone_id)
|
if i = unoccupied_zone_ids.find_index(zone_id)
|
||||||
unoccupied_zone_ids.slice! zone_id
|
unoccupied_zone_ids.delete zone_id
|
||||||
else
|
else
|
||||||
# This zone is already occupied, so this item is no good.
|
# This zone is already occupied, so this item is no good.
|
||||||
pass = false
|
pass = false
|
||||||
|
|
Loading…
Reference in a new issue