jwvhewitt / gearhead-caramel

A coffeebreaklike set in the GearHead world.
http://gearheadrpg.com
Other
86 stars 17 forks source link

game/invoker.py: Fix bug where we mistakenly give odds for dead mecha if another mecha is standing on top of it. #183

Closed AmkG closed 3 years ago

AmkG commented 3 years ago

Fixes: #28

Screenshot from 2020-09-04 20-27-11

AmkG commented 3 years ago

Since the rest of the odds code was referring to mmecha[0], it was possible that a dead mecha was this 0th entry, with a live mecha standing on top of it at index 1 or more. So we filter out the models in the location and only use the living ones.

jwvhewitt commented 3 years ago

Fantastic!