Move the renderable part of Entity to a Renderable component

Move symbol, render order, foreground, and background properties on Entity
to a new Component called Renderable.
This commit is contained in:
Eryn Wells 2023-03-11 00:58:58 -08:00
parent 01b549bc6e
commit def79386d8
5 changed files with 80 additions and 71 deletions

View file

@ -165,7 +165,7 @@ class Engine:
if log.ACTIONS_TREE.isEnabledFor(log.INFO) and self.map.visible[tuple(action.actor.position)]:
if result.alternate:
alternate_string = f'{result.alternate.__class__.__name__}[{result.alternate.actor.symbol}]'
alternate_string = f'{result.alternate.__class__.__name__}[{result.alternate.actor}]'
else:
alternate_string = str(result.alternate)
log.ACTIONS_TREE.info(