comparison src/parpg/gamemodel.py @ 167:097782ae9c77

createItem now calls UpdateObjectDB after it created the item.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 14:03:25 +0200
parents 79c186b69603
children 59c9ce2b8351
comparison
equal deleted inserted replaced
166:7f044776de60 167:097782ae9c77
506 item_data["description"]["view_name"] = ( 506 item_data["description"]["view_name"] = (
507 item_data["description"]["real_name"]) 507 item_data["description"]["real_name"])
508 item = createEntity(item_data, identifier, world, None) 508 item = createEntity(item_data, identifier, world, None)
509 item.containable.item_type = item_type 509 item.containable.item_type = item_type
510 self.game_state.addObject(identifier, None, item) 510 self.game_state.addObject(identifier, None, item)
511 self.updateObjectDB(world)
511 return item 512 return item
512 513
513 def placeAgents(self, world): 514 def placeAgents(self, world):
514 """Places the current maps agents """ 515 """Places the current maps agents """
515 if not self.active_map: 516 if not self.active_map: