home · contact · privacy
Move back thing protection status in display.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 1 Dec 2020 02:01:40 +0000 (03:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 1 Dec 2020 02:01:40 +0000 (03:01 +0100)
rogue_chat.html
rogue_chat_curses.py

index da13b13a392a3addfc48a04fcf056edf95006abb..ce0b6a2c9d69785c9f33b315a7660dc2f514a77f 100644 (file)
@@ -1228,16 +1228,16 @@ let explorer = {
                  let symbol = game.thing_types[t.type_];
                  let protection = t.protection;
                  if (protection == '.') {
-                     protection = 'unprotected';
+                     protection = 'none';
                  }
-                 info += "THING: " + t.type_ + " / protection: " + protection + " / " + symbol;
+                 info += "THING: " + t.type_ + " / " + symbol;
                  if (t.player_char) {
                      info += t.player_char;
                  };
                  if (t.name_) {
                      info += " (" + t.name_ + ")";
                  }
-                 info += "\n";
+                 info += " / protection: " + protection + "\n";
              }
         }
         if (this.position in game.portals) {
index 7e5437fa2e1af0ee3eb5fdc899951dec49b0e916..eb708a249a3ddc6c4392e2349fa81d0587de7d43 100755 (executable)
@@ -691,14 +691,14 @@ class TUI:
                     if t.position == self.explorer:
                         protection = t.protection
                         if protection == '.':
-                            protection = 'unprotected'
-                        info += 'THING: %s / protection: %s / %s' %\
-                            (t.type_, protection, self.game.thing_types[t.type_])
+                            protection = 'none'
+                        info += 'THING: %s / %s' % (t.type_,
+                                                    self.game.thing_types[t.type_])
                         if hasattr(t, 'player_char'):
                             info += t.player_char
                         if hasattr(t, 'name'):
                             info += ' (%s)' % t.name
-                        info += '\n'
+                        info += ' / protection: %s\n' % protection
                 if self.explorer in self.game.portals:
                     info += 'PORTAL: ' + self.game.portals[self.explorer] + '\n'
                 else: