|
@@ -2574,7 +2574,7 @@ class ColoScript(object):
|
|
# Are we really getting this? Yup
|
|
# Are we really getting this? Yup
|
|
#log.debug("Planet Number: {0} Sector: {1}".format(self.planet_number, self.planet_sector))
|
|
#log.debug("Planet Number: {0} Sector: {1}".format(self.planet_number, self.planet_sector))
|
|
ask1 = PlayerInput(self.game)
|
|
ask1 = PlayerInput(self.game)
|
|
- d1 = ask1.prompt("How many times (0 is inf)", 3, name="rolls", digits=True)
|
|
|
|
|
|
+ d1 = ask1.prompt("How many times ", 3, name="rolls", digits=True)
|
|
d1.addCallback(self.loop_chosen)
|
|
d1.addCallback(self.loop_chosen)
|
|
else:
|
|
else:
|
|
self.deactivate()
|
|
self.deactivate()
|
|
@@ -2583,7 +2583,9 @@ class ColoScript(object):
|
|
if choice.strip() == '':
|
|
if choice.strip() == '':
|
|
self.deactivate()
|
|
self.deactivate()
|
|
else:
|
|
else:
|
|
- self.loops = int(choice)
|
|
|
|
|
|
+ self.loops = abs(int(choice))
|
|
|
|
+ if self.loops == 0:
|
|
|
|
+ self.loops = 1
|
|
self.maxloops = self.loops
|
|
self.maxloops = self.loops
|
|
self.state = 4
|
|
self.state = 4
|
|
self.send2game("1\r")
|
|
self.send2game("1\r")
|