Mercurial > parpg-core
changeset 112:c1a6ea47b838
The Examine action in the context menu will now only be shown when the Entity actually has a description text.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 23 Sep 2011 14:24:22 +0200 |
parents | a33fdfeb4109 |
children | 7b0846025412 |
files | src/parpg/gamescenecontroller.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parpg/gamescenecontroller.py Fri Sep 23 14:18:42 2011 +0200 +++ b/src/parpg/gamescenecontroller.py Fri Sep 23 14:24:22 2011 +0200 @@ -439,7 +439,7 @@ actions.append(["Talk", "Talk", self.initTalk, obj]) if obj.characterstats and not is_player: actions.append(["Attack", "Attack", self.nullFunc, obj]) - if obj.description: + if obj.description and obj.description.desc: actions.append(["Examine", "Examine", player.fifeagent.behaviour.approach, [obj_pos.x, obj_pos.y],