Mercurial > parpg-source
changeset 128:a93b38d7e02b
PickUpAction now calls updateObjectDB of the GameModel class.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 07 Oct 2011 14:43:42 +0200 |
parents | 18623b5c2b45 |
children | 055a14d72184 |
files | objects/action.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/objects/action.py Fri Oct 07 14:36:36 2011 +0200 +++ b/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()