Mercurial > parpg-core
diff src/parpg/objects/action.py @ 158:9ba129380af8
PickUpAction now calls updateObjectDB of the GameModel class.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 07 Oct 2011 14:43:42 +0200 |
parents | db6403c1a7a1 |
children | ede6f6b31bf8 |
line wrap: on
line diff
--- a/src/parpg/objects/action.py Fri Oct 07 14:36:36 2011 +0200 +++ b/src/parpg/objects/action.py Fri Oct 07 14:43:42 2011 +0200 @@ -414,6 +414,7 @@ self.item.fifeagent = None player = self.model.game_state.getObjectById("PlayerCharacter") self.model.moveObject(self.item.general.identifier, None) + self.model.updateObjectDB(self.item.world) container.put_item(player.container, real_item) super(PickUpAction, self).execute()