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.html
diff --git
a/rogue_chat.html
b/rogue_chat.html
index f08105023e30b3d062b58e06fb9f52551647cee9..47bf58d3aa4c937dfe5b078a6a161c25349ccd16 100644
(file)
--- a/
rogue_chat.html
+++ b/
rogue_chat.html
@@
-491,7
+491,7
@@
let server = {
game.things_new = [];
} else if (tokens[0] === 'STATS') {
game.bladder_pressure_new = parseInt(tokens[1])
game.things_new = [];
} else if (tokens[0] === 'STATS') {
game.bladder_pressure_new = parseInt(tokens[1])
- game.
weariness
_new = parseInt(tokens[2])
+ game.
energy
_new = parseInt(tokens[2])
} else if (tokens[0] === 'THING') {
let t = game.get_thing_temp(tokens[4], true);
t.position = parser.parse_yx(tokens[1]);
} else if (tokens[0] === 'THING') {
let t = game.get_thing_temp(tokens[4], true);
t.position = parser.parse_yx(tokens[1]);
@@
-549,7
+549,7
@@
let server = {
game.player = game.things[game.player_id];
game.players_hat_chars = game.players_hat_chars_new;
game.bladder_pressure = game.bladder_pressure_new
game.player = game.things[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 (tui.mode.name == 'post_login_wait') {
tui.switch_mode('play');
game.turn_complete = true;
if (tui.mode.name == 'post_login_wait') {
tui.switch_mode('play');
@@
-1219,7
+1219,7
@@
let tui = {
},
draw_stats_line: function(n) {
terminal.write(1, this.window_width,
},
draw_stats_line: function(n) {
terminal.write(1, this.window_width,
- '
WEARINESS: ' + game.weariness
+
+ '
ENERGY: ' + game.energy
+
' BLADDER: ' + game.bladder_pressure);
},
draw_history: function() {
' BLADDER: ' + game.bladder_pressure);
},
draw_history: function() {