From b72c8aea9efa8005534e6cef7e8f8fae5cf0918e Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 1 Dec 2020 03:01:40 +0100
Subject: [PATCH] Move back thing protection status in display.

---
 rogue_chat.html      | 6 +++---
 rogue_chat_curses.py | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/rogue_chat.html b/rogue_chat.html
index da13b13..ce0b6a2 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -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) {
diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py
index 7e5437f..eb708a2 100755
--- a/rogue_chat_curses.py
+++ b/rogue_chat_curses.py
@@ -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:
-- 
2.30.2