home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Invert weariness metric into energy metric.
[plomrogue2]
/
rogue_chat_curses.py
diff --git
a/rogue_chat_curses.py
b/rogue_chat_curses.py
index ec9eee5b276b1373a77588b2cfc01a78e1625545..f0ec6633ca6591da4d954a90b8321de7f2eca9a9 100755
(executable)
--- a/
rogue_chat_curses.py
+++ b/
rogue_chat_curses.py
@@
-186,7
+186,9
@@
cmd_OTHER_WIPE.argtypes = ''
def cmd_LOGIN_OK(game):
game.tui.switch_mode('post_login_wait')
game.tui.send('GET_GAMESTATE')
def cmd_LOGIN_OK(game):
game.tui.switch_mode('post_login_wait')
game.tui.send('GET_GAMESTATE')
- game.tui.log_msg('@ welcome')
+ game.tui.log_msg('@ welcome!')
+ game.tui.log_msg('@ hint: see top of terminal for how to get help.')
+ game.tui.log_msg('@ hint: enter study mode to understand your environment.')
cmd_LOGIN_OK.argtypes = ''
def cmd_ADMIN_OK(game):
cmd_LOGIN_OK.argtypes = ''
def cmd_ADMIN_OK(game):
@@
-294,7
+296,7
@@
def cmd_GAME_STATE_COMPLETE(game):
game.player = game.get_thing(game.player_id)
game.players_hat_chars = game.players_hat_chars_new
game.bladder_pressure = game.bladder_pressure_new
game.player = game.get_thing(game.player_id)
game.players_hat_chars = game.players_hat_chars_new
game.bladder_pressure = game.bladder_pressure_new
- game.
weariness = game.weariness
_new
+ game.
energy = game.energy
_new
game.turn_complete = True
if game.tui.mode.name == 'post_login_wait':
game.tui.switch_mode('play')
game.turn_complete = True
if game.tui.mode.name == 'post_login_wait':
game.tui.switch_mode('play')
@@
-362,10
+364,10
@@
def cmd_RANDOM_COLORS(game):
game.tui.set_random_colors()
cmd_RANDOM_COLORS.argtypes = ''
game.tui.set_random_colors()
cmd_RANDOM_COLORS.argtypes = ''
-def cmd_STATS(game, bladder_pressure,
weariness
):
+def cmd_STATS(game, bladder_pressure,
energy
):
game.bladder_pressure_new = bladder_pressure
game.bladder_pressure_new = bladder_pressure
- game.
weariness_new = weariness
-cmd_STATS.argtypes = 'int:nonneg int
:nonneg
'
+ game.
energy_new = energy
+cmd_STATS.argtypes = 'int:nonneg int'
class Game(GameBase):
turn_complete = False
class Game(GameBase):
turn_complete = False
@@
-944,8
+946,8
@@
class TUI:
y += 1
def draw_stats():
y += 1
def draw_stats():
- stats = '
WEARY: %s BLADDER: %s' % (self.game.weariness
,
- self.game.bladder_pressure)
+ stats = '
ENERGY: %s BLADDER: %s' % (self.game.energy
,
+
self.game.bladder_pressure)
safe_addstr(0, self.window_width, stats)
def draw_mode():
safe_addstr(0, self.window_width, stats)
def draw_mode():