home · contact · privacy
In info view, show protection level.
[plomrogue2] / rogue_chat_curses.py
index 54499daf2551ac335dc93ff9f274d1dcc09bd136..99a7e88bc94b0f0bccf81c0bd3228335226765fe 100755 (executable)
@@ -463,6 +463,10 @@ class TUI:
                 if terrain_char in self.game.terrains:
                     terrain_desc = self.game.terrains[terrain_char]
                 info = 'TERRAIN: "%s" / %s\n' % (terrain_char, terrain_desc)
+                protection = self.game.map_control_content[pos_i]
+                if protection == '.':
+                    protection = 'unprotected'
+                info = 'PROTECTION: %s\n' % protection
                 for t in self.game.things:
                     if t.position == self.explorer:
                         info += 'THING: %s / %s' % (t.type_,