X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fsst.py;h=7ca3fb7b62a7f2aa7513bce1a56f72dd448a26ab;hb=ca9c535343fcd397a088ed2ae758e23254397ca1;hp=992b1c930d27014421020d4bf5ff23f4ed91576c;hpb=d24ab69c78ba2c30ed49fd5a04e0e7a4d452a1fa;p=super-star-trek.git diff --git a/src/sst.py b/src/sst.py index 992b1c9..7ca3fb7 100644 --- a/src/sst.py +++ b/src/sst.py @@ -5145,11 +5145,8 @@ def status(req=0): if not req or req == 2: if game.condition != "docked": newcnd() - 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, game.damage)))) if not req or req == 3: prstat(_("Position"), "%s , %s" % (game.quadrant, game.sector)) if not req or req == 4: