home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make door closing visible.
[plomrogue2]
/
rogue_chat_curses.py
diff --git
a/rogue_chat_curses.py
b/rogue_chat_curses.py
index eb708a249a3ddc6c4392e2349fa81d0587de7d43..f715018cc85ef339591c7cfbf119bff5f73d041e 100755
(executable)
--- a/
rogue_chat_curses.py
+++ b/
rogue_chat_curses.py
@@
-1,4
+1,4
@@
-
#
!/usr/bin/env python3
+
e
!/usr/bin/env python3
import curses
import queue
import threading
import curses
import queue
import threading
@@
-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:
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):
cmd_THING_CHAR.argtypes = 'int:nonneg char'
def cmd_MAP(game, geometry, size, content):
@@
-694,8
+694,8
@@
class TUI:
protection = 'none'
info += 'THING: %s / %s' % (t.type_,
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, '
thing
_char'):
+ info += t.
thing
_char
if hasattr(t, 'name'):
info += ' (%s)' % t.name
info += ' / protection: %s\n' % protection
if hasattr(t, 'name'):
info += ' (%s)' % t.name
info += ' / protection: %s\n' % protection
@@
-757,8
+757,8
@@
class TUI:
for t in self.game.things:
symbol = self.game.thing_types[t.type_]
meta_char = ' '
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
if t.position in used_positions:
meta_char = '+'
map_lines_split[t.position.y][t.position.x] = symbol + meta_char