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 (from parent 1:
4bbf540
)
Remove remnants of C syntax.
author
Eric S. Raymond
<esr@thyrsus.com>
Mon, 22 Apr 2019 23:30:37 +0000
(19:30 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Mon, 22 Apr 2019 23:30:37 +0000
(19:30 -0400)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index d99ba7aac8acf6e3898de16013c3663284648d1d..3eb972a2e70623e80ae265842f8ad3996bbba04c 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-338,7
+338,7
@@
FSCMOVE = 6 # Supercommander moves (might attack base)
FSCDBAS = 7 # Supercommander destroys base
FDSPROB = 8 # Move deep space probe
FDISTR = 9 # Emit distress call from an inhabited world
FSCDBAS = 7 # Supercommander destroys base
FDSPROB = 8 # Move deep space probe
FDISTR = 9 # Emit distress call from an inhabited world
-FENSLV = 10 # Inhabited word is enslaved
*/
+FENSLV = 10 # Inhabited word is enslaved
FREPRO = 11 # Klingons build a ship in an enslaved system
NEVENTS = 12
FREPRO = 11 # Klingons build a ship in an enslaved system
NEVENTS = 12
@@
-2142,7
+2142,7
@@
def capture():
game.ididit = False # Nothing if we fail
game.optime = 0.0
game.ididit = False # Nothing if we fail
game.optime = 0.0
- # Make sure there is room in the brig
*/
+ # Make sure there is room in the brig
if game.brigfree == 0:
prout(_("Security reports the brig is already full."))
return
if game.brigfree == 0:
prout(_("Security reports the brig is already full."))
return
@@
-2160,7
+2160,7
@@
def capture():
prout(_("Uhura- \"Getting no response, sir.\""))
return
prout(_("Uhura- \"Getting no response, sir.\""))
return
- # if there is more than one Klingon, find out which one
*/
+ # if there is more than one Klingon, find out which one
# Cruddy, just takes one at random. Should ask the captain.
# Nah, just select the weakest one since it is most likely to
# surrender (Tom Almy mod)
# Cruddy, just takes one at random. Should ask the captain.
# Nah, just select the weakest one since it is most likely to
# surrender (Tom Almy mod)
@@
-2176,12
+2176,12
@@
def capture():
x = game.energy / (weakest.power * len(klingons))
#prout(_("Stats: energy = %s, kpower = %s, klingons = %s")
# % (game.energy, weakest.power, len(klingons)))
x = game.energy / (weakest.power * len(klingons))
#prout(_("Stats: energy = %s, kpower = %s, klingons = %s")
# % (game.energy, weakest.power, len(klingons)))
- x *= 2.5 # would originally have been equivalent of 1.4,
- # but we want command to work more often, more humanely
*/
+ x *= 2.5
# would originally have been equivalent of 1.4,
+ # but we want command to work more often, more humanely
#prout(_("Prob = %.4f" % x))
# x = 100; // For testing, of course!
if x < rnd.real(100):
#prout(_("Prob = %.4f" % x))
# x = 100; // For testing, of course!
if x < rnd.real(100):
- # guess what, he surrendered!!!
*/
+ # guess what, he surrendered!!!
prout(_("Klingon captain at %s surrenders.") % weakest.location)
i = rnd.real(200)
if i > 0:
prout(_("Klingon captain at %s surrenders.") % weakest.location)
i = rnd.real(200)
if i > 0:
@@
-2196,7
+2196,7
@@
def capture():
finish(FWON)
return
finish(FWON)
return
- # big surprise, he refuses to surrender
*/
+ # big surprise, he refuses to surrender
prout(_("Fat chance, captain!"))
# Code from events.c begins here.
prout(_("Fat chance, captain!"))
# Code from events.c begins here.