elthran / RPG-Game

0 stars 1 forks source link

Equip Consumable bug #336

Open klondikemarlen opened 6 years ago

klondikemarlen commented 6 years ago

Found this in error log example_consumable_error.txt

Looks like the JS is sending the ID of a consumable item to the Command code ... where it is crashing.

2018-04-10 19:32:13,416:   File "/home/elthran/rpg_game/commands.py", line 226, in toggle_equip
2018-04-10 19:32:13,417:     js_slots_used_by_item_type[item.type][0]
2018-04-10 19:32:13,417: KeyError: 'Consumable'

I'm guessing we need to make consumables Consume? Instead of Equip :P