comparison src/parpg/objects/action.py @ 171:7f03365c098d

ReplaceItem in UseAction will now delete the old object from the database and the world.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 14:43:47 +0200
parents 7f044776de60
children c50a7adeae85
comparison
equal deleted inserted replaced
170:371b17bc9113 171:7f03365c098d
397 object_id, 397 object_id,
398 self.item.world) 398 self.item.world)
399 container.put_item(containable.container, 399 container.put_item(containable.container,
400 new_item.containable, 400 new_item.containable,
401 containable.slot) 401 containable.slot)
402 self.model.deleteObject(self.item.general.identifier)
403 self.item.delete()
402 self.view.hud.inventory.updateImages() 404 self.view.hud.inventory.updateImages()
403 super(UseAction, self).execute() 405 super(UseAction, self).execute()
404 406
405 class PickUpAction(Action): 407 class PickUpAction(Action):
406 """Action for picking up items from a map""" 408 """Action for picking up items from a map"""