s = Coord()
if self.i == 0:
s.i = 0
- elif s.i < 0:
+ elif self.i < 0:
s.i = -1
else:
s.i = 1
game.tholian.move(None)
prout("***Internal error: Tholian in a bad spot.")
return
+ print("Tholian moving from %s to %s" % (game.tholian.location, tid))
# do nothing if we are blocked
if game.quad[tid.i][tid.j] not in ('.', '#'):
return
proutn(_("Number of torpedoes to fire- "))
continue # Go back around to get a number
else: # key == "IHREAL"
- n = scanner.int()
+ try:
+ n = scanner.int()
+ except TypeError:
+ huh()
+ return
if n <= 0: # abort command
scanner.chew()
return