home · contact · privacy
Fix hashbang typo.
[plomrogue2] / rogue_chat_curses.py
index 7e5437fa2e1af0ee3eb5fdc899951dec49b0e916..cb5042d5a8d4b620448083e3a8a2b31363b83e71 100755 (executable)
@@ -179,7 +179,7 @@ cmd_THING_NAME.argtypes = 'int:nonneg string'
 def cmd_THING_CHAR(game, thing_id, c):
     t = game.get_thing(thing_id)
     if t:
-        t.player_char = c
+        t.thing_char = c
 cmd_THING_CHAR.argtypes = 'int:nonneg char'
 
 def cmd_MAP(game, geometry, size, content):
@@ -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_])
-                        if hasattr(t, 'player_char'):
-                            info += t.player_char
+                            protection = 'none'
+                        info += 'THING: %s / %s' % (t.type_,
+                                                    self.game.thing_types[t.type_])
+                        if hasattr(t, 'thing_char'):
+                            info += t.thing_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:
@@ -757,8 +757,8 @@ class TUI:
                 for t in self.game.things:
                     symbol = self.game.thing_types[t.type_]
                     meta_char = ' '
-                    if hasattr(t, 'player_char'):
-                        meta_char = t.player_char
+                    if hasattr(t, 'thing_char'):
+                        meta_char = t.thing_char
                     if t.position in used_positions:
                         meta_char = '+'
                     map_lines_split[t.position.y][t.position.x] = symbol + meta_char