|
@@ -12,6 +12,7 @@ from pprint import pformat
|
|
|
from galaxy import GameData, PORT_CLASSES, CLASSES_PORT
|
|
|
from boxes import Boxes
|
|
|
import logging
|
|
|
+from time import localtime
|
|
|
|
|
|
BLINK = '\x1b[5m'
|
|
|
log = logging.getLogger(__name__)
|
|
@@ -247,6 +248,7 @@ class CIMWarpReport(object):
|
|
|
# Yes, at this point we would activate
|
|
|
self.prompt = game.buffer
|
|
|
self.save = self.observer.save()
|
|
|
+ self.days = ('Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun')
|
|
|
|
|
|
# I actually don't want the player input, but I'll grab it anyway.
|
|
|
self.observer.connect("player", self.player)
|
|
@@ -264,8 +266,10 @@ class CIMWarpReport(object):
|
|
|
self.queue_player.put("^") # Activate CIM
|
|
|
self.state = 1
|
|
|
# self.warpdata = {}
|
|
|
- self.queue_game.put("Loading ... ") # cycle eats last char.
|
|
|
- self.warpcycle = SpinningCursor()
|
|
|
+ tm = localtime()
|
|
|
+ log.debug("Today is {0}".format(self.days[tm[6]]))
|
|
|
+ self.queue_game.put("Loading ") # cycle eats last char.
|
|
|
+ self.warpcycle = SpinningCursor()
|
|
|
|
|
|
def game_prompt(self, prompt):
|
|
|
if prompt == ": ":
|
|
@@ -378,6 +382,7 @@ class CIMPortReport(object):
|
|
|
# Yes, at this point we would activate
|
|
|
self.prompt = game.buffer
|
|
|
self.save = self.observer.save()
|
|
|
+ self.days = ('Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun')
|
|
|
|
|
|
# I actually don't want the player input, but I'll grab it anyway.
|
|
|
self.observer.connect("player", self.player)
|
|
@@ -396,7 +401,9 @@ class CIMPortReport(object):
|
|
|
self.queue_player.put("^") # Activate CIM
|
|
|
self.state = 1
|
|
|
# self.portdata = {}
|
|
|
- self.queue_game.put("Loading ... ") # cycle eats last char.
|
|
|
+ tm = localtime()
|
|
|
+ log.debug("Today is {0}".format(self.days[tm[6]]))
|
|
|
+ self.queue_game.put("Loading ") # cycle eats last char.
|
|
|
self.portcycle = SpinningCursor()
|
|
|
|
|
|
def game_prompt(self, prompt):
|