comparison objects/action.py @ 125:452bbc3d915d

Fixed that items in the player characters inventory could not be dropped.
author KarstenBock@gmx.net
date Fri, 07 Oct 2011 14:15:06 +0200
parents 7f7f54c4077b
children 18623b5c2b45
comparison
equal deleted inserted replaced
124:ef24560eb920 125:452bbc3d915d
433 agent_values["Position"] = (coords.x, coords.y) 433 agent_values["Position"] = (coords.x, coords.y)
434 agent_values["Rotation"] = 0 434 agent_values["Rotation"] = 0
435 self.model.deleteObject(identifier) 435 self.model.deleteObject(identifier)
436 self.model.addAgent(map_name, {identifier: agent_values}) 436 self.model.addAgent(map_name, {identifier: agent_values})
437 self.model.placeAgents(self.item.entity.world) 437 self.model.placeAgents(self.item.entity.world)
438 self.model.updateObjectDB(self.item.entity.world)
438 super(DropItemAction, self).execute() 439 super(DropItemAction, self).execute()
439 440
440 class DropItemFromContainerAction(DropItemAction): 441 class DropItemFromContainerAction(DropItemAction):
441 """Action for dropping an items from the Inventory to a map""" 442 """Action for dropping an items from the Inventory to a map"""
442 443