X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=rogue_chat.html;h=27ae875da3b449e37f64ddecb5d241e667526980;hb=6e918e5b3cd6627a0a23b4008dbe3d6bfe784abe;hp=f0f2faa1213ac1786ca59eaaafeb4f4eac9467e9;hpb=2bc91772ca3d5056eb5a252869d8dff33c586da5;p=plomrogue2 diff --git a/rogue_chat.html b/rogue_chat.html index f0f2faa..27ae875 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -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) {