# HG changeset patch # User KarstenBock@gmx.net # Date 1317384662 -7200 # Node ID e28c13a4802a917a47945c8a0bfc145ba3c43091 # Parent c938a828a38a6248239a4271e98969f300d10847 Fixed graphical representation of lockables, that are open, when creating the agent. diff -r c938a828a38a -r e28c13a4802a src/parpg/gamemodel.py --- a/src/parpg/gamemodel.py Fri Sep 30 14:05:16 2011 +0200 +++ b/src/parpg/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):