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:
9eee5be
)
Fix two minor bugs.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 13 Oct 2006 10:23:21 +0000
(10:23 +0000)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 13 Oct 2006 10:23:21 +0000
(10:23 +0000)
src/sst.py
patch
|
blob
|
history
diff --git
a/src/sst.py
b/src/sst.py
index c3bba0f3b2f37e0104dd2649f01249f0cd79f5de..28203dd85152e9157e7ef95926f4bfe9aadba03c 100644
(file)
--- a/
src/sst.py
+++ b/
src/sst.py
@@
-2130,7
+2130,7
@@
def phasers():
if ifast:
skip(1)
if no == 0:
if ifast:
skip(1)
if no == 0:
- if withprob(0.
99
):
+ if withprob(0.
01
):
prout(_("Sulu- \"Sir, the high-speed shield control has malfunctioned . . ."))
prouts(_(" CLICK CLICK POP . . ."))
prout(_(" No response, sir!"))
prout(_("Sulu- \"Sir, the high-speed shield control has malfunctioned . . ."))
prouts(_(" CLICK CLICK POP . . ."))
prout(_(" No response, sir!"))
@@
-3693,7
+3693,7
@@
def imove(course=None, novapush=False):
iquad = game.quad[w.i][w.j]
if iquad != IHDOT:
# object encountered in flight path
iquad = game.quad[w.i][w.j]
if iquad != IHDOT:
# object encountered in flight path
- stopegy = 50.0*course.dist/game.optime
+ stopegy = 50.0*course.dist
ance
/game.optime
course.distance = (game.sector - w).distance() / (QUADSIZE * 1.0)
if iquad in (IHT, IHK, IHC, IHS, IHR, IHQUEST):
game.sector = w
course.distance = (game.sector - w).distance() / (QUADSIZE * 1.0)
if iquad in (IHT, IHK, IHC, IHS, IHR, IHQUEST):
game.sector = w
@@
-3940,6
+3940,7
@@
class course:
bigger = max(abs(self.increment.i), abs(self.increment.j))
self.increment /= bigger
self.moves = int(round(10*self.distance*bigger))
bigger = max(abs(self.increment.i), abs(self.increment.j))
self.increment /= bigger
self.moves = int(round(10*self.distance*bigger))
+ self.final = self.location + distance*bigger*self.increment
def next(self, grain=1):
"Next step on course."
self.moves -=1
def next(self, grain=1):
"Next step on course."
self.moves -=1