flags / Reactor-3

Post-apocalyptic action roguelike with a focus on inventory management and gun-based combat.
MIT License
71 stars 11 forks source link

Crash on bullet impact #84

Closed flags closed 11 years ago

flags commented 11 years ago
Traceback (most recent call last):
  File "reactor-3.py", line 174, in <module>
    tick_all_objects()
  File "reactor-3.py", line 85, in tick_all_objects
    items.tick_all_items(MAP)
  File "/home/luke/code/Reactor-3/items.py", line 206, in tick_all_items
    life.damage_from_item(_life,item,60)
  File "/home/luke/code/Reactor-3/life.py", line 1841, in damage_from_item
    _bleed_amt = get_limb(life['body'],_hit_limb)['damage_mod']
KeyError: 'damage_mod'```
flags commented 11 years ago

The head is missing 'damage_mod'.