- dam = 0
- for t in range(NDEVICES):
- if game.damage[t]>0:
- dam += 1
- prstat(_("Condition"), _("%s, %i DAMAGES") % (game.condition.upper(), dam))
+ prstat(_("Condition"), _("%s, %i DAMAGES") % \
+ (game.condition.upper(), sum(map(lambda x: x > 0, damages))))