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:
3940e6e
)
Follow through on uncompleted name change.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Feb 2012 00:20:43 +0000
(19:20 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Feb 2012 00:20:43 +0000
(19:20 -0500)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index e1c447ef010f6bcb943fd7cf25f80f7f5c1efd49..22a02919b78fe66be09d52e508f2cc9e0c1ead37 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-3863,7
+3863,7
@@
def impulse():
scanner.chew()
return
# Make sure enough time is left for the trip
scanner.chew()
return
# Make sure enough time is left for the trip
- game.optime = course.dist/0.095
+ game.optime = course.dist
ance
/0.095
if game.optime >= game.state.remtime:
prout(_("First Officer Spock- \"Captain, our speed under impulse"))
prout(_("power is only 0.95 sectors per stardate. Are you sure"))
if game.optime >= game.state.remtime:
prout(_("First Officer Spock- \"Captain, our speed under impulse"))
prout(_("power is only 0.95 sectors per stardate. Are you sure"))
@@
-3875,9
+3875,9
@@
def impulse():
game.ididit = True
if game.alldone:
return
game.ididit = True
if game.alldone:
return
- power = 20.0 + 100.0*course.dist
+ power = 20.0 + 100.0*course.dist
ance
game.energy -= power
game.energy -= power
- game.optime = course.dist/0.095
+ game.optime = course.dist
ance
/0.095
if game.energy <= 0:
finish(FNRG)
return
if game.energy <= 0:
finish(FNRG)
return
@@
-3913,7
+3913,7
@@
def warp(wcourse, involuntary):
skip(1)
prout(_("Engineering to bridge--"))
if not game.shldup or 0.5*wcourse.power(game.warpfac) > game.energy:
skip(1)
prout(_("Engineering to bridge--"))
if not game.shldup or 0.5*wcourse.power(game.warpfac) > game.energy:
- iwarp = (game.energy/(wcourse.dist+0.05)) ** 0.333333333
+ iwarp = (game.energy/(wcourse.dist
ance
+0.05)) ** 0.333333333
if iwarp <= 0:
prout(_("We can't do it, Captain. We don't have enough energy."))
else:
if iwarp <= 0:
prout(_("We can't do it, Captain. We don't have enough energy."))
else: