projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d24ab69
)
A bit more code compression.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 16 Oct 2006 14:55:36 +0000
(14:55 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 16 Oct 2006 14:55:36 +0000
(14:55 +0000)
src/sst.py
patch
|
blob
|
history
diff --git
a/src/sst.py
b/src/sst.py
index 992b1c930d27014421020d4bf5ff23f4ed91576c..08616b8f246d015dd716eab21f1b0f6a1cf33e5a 100644
(file)
--- 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()
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, damages))))
if not req or req == 3:
prstat(_("Position"), "%s , %s" % (game.quadrant, game.sector))
if not req or req == 4:
if not req or req == 3:
prstat(_("Position"), "%s , %s" % (game.quadrant, game.sector))
if not req or req == 4: