Mercurial > parpg-source
diff gamemodel.py @ 105:dc573ac08355
Fixed graphical representation of lockables, that are open, when creating the agent.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 30 Sep 2011 14:11:02 +0200 |
parents | 824f3068ef2a |
children | edadf3ff8a9a |
line wrap: on
line diff
--- a/gamemodel.py Fri Sep 30 14:05:16 2011 +0200 +++ b/gamemodel.py Fri Sep 30 14:11:02 2011 +0200 @@ -467,6 +467,8 @@ item = self.create_item(identifier, item_data, world, item_type) equip.equip(obj.equip, item.equipable, slot) + if (obj.fifeagent and (obj.lockable and not obj.lockable.closed)): + obj.fifeagent.behaviour.animate("opened", repeating=True) return obj def create_item(self, identifier, item_data, world, item_type):