diff src/parpg/objects/action.py @ 116:9b5498e3bda0

Move the identifier field from the FifeAgent component to the new General component. Added General Entity.
author KarstenBock@gmx.net
date Sat, 24 Sep 2011 15:48:24 +0200
parents a85d58fcd253
children 0ffebdca7ba3
line wrap: on
line diff
--- a/src/parpg/objects/action.py	Fri Sep 23 15:09:02 2011 +0200
+++ b/src/parpg/objects/action.py	Sat Sep 24 15:48:24 2011 +0200
@@ -383,7 +383,7 @@
     def execute(self):
         real_item = self.item.containable
         player = self.model.game_state.getObjectById("PlayerCharacter")
-        self.model.moveObject(self.item.fifeagent.identifier, None)
+        self.model.moveObject(self.item.general.identifier, None)
         container.put_item(player.container, real_item)
         super(PickUpAction, self).execute()