home · contact · privacy
Refactor player session code.
[plomrogue2] / rogue_chat_nocanvas_monochrome.html
index 88b66723d9ee6f5f54aa2a06dada0214f22a80f4..b8d7b986d11c1350bf203f5a8f380bc4b1298816 100644 (file)
@@ -825,6 +825,11 @@ let explorer = {
             terrain_desc = game.terrains[terrain_char];
         };
         info += 'TERRAIN: "' + terrain_char + '" / ' + terrain_desc + "\n";
+        let protection = game.map_control[position_i];
+        if (protection == '.') {
+            protection = 'unprotected';
+        };
+        info += 'PROTECTION: ' + protection + '\n';
         for (let t_id in game.things) {
              let t = game.things[t_id];
              if (t.position[0] == this.position[0] && t.position[1] == this.position[1]) {