X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=rogue_chat.html;h=d971c9bd47d1f17683c531d22d5a19ac2c1a9a30;hb=1b0d4f5fef925f2f7811fd32be1c773ab813c49e;hp=f0f2faa1213ac1786ca59eaaafeb4f4eac9467e9;hpb=2bc91772ca3d5056eb5a252869d8dff33c586da5;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index f0f2faa..d971c9b 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -238,7 +238,7 @@ let key_descriptions = { 'drop_thing': 'drop thing', 'door': 'open/close', 'consume': 'consume', - 'install': 'install', + 'install': '(un-)install', 'toggle_map_mode': 'toggle map view', 'toggle_tile_draw': 'toggle protection character drawing', 'hex_move_upleft': 'up-left', @@ -497,6 +497,11 @@ let server = { if (t) { t.carrying = true; }; + } else if (tokens[0] === 'THING_INSTALLED') { + let t = game.get_thing(tokens[1], false); + if (t) { + t.installed = true; + }; } else if (tokens[0] === 'TERRAIN') { game.terrains[tokens[1]] = tokens[2] } else if (tokens[0] === 'MAP') { @@ -1355,12 +1360,15 @@ let explorer = { get_thing_info: function(t) { const symbol = game.thing_types[t.type_]; let info = t.type_ + " / " + symbol; - if (t.thing_char) { - info += t.thing_char; - }; - if (t.name_) { - info += " (" + t.name_ + ")"; - } + if (t.thing_char) { + info += t.thing_char; + }; + if (t.name_) { + info += " (" + t.name_ + ")"; + } + if (t.installed) { + info += " / installed"; + } return info; }, annotate: function(msg) {