comparison src/parpg/objects/action.py @ 155:7214224b8d83

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 6e1eb964a6e5
children db6403c1a7a1
comparison
equal deleted inserted replaced
154:b96607c8be7f 155:7214224b8d83
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