diff src/parpg/gamemodel.py @ 135:e28c13a4802a

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 0ffebdca7ba3
children e1fd4cda237d
line wrap: on
line diff
--- 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):