Mercurial > parpg-source
comparison gamemodel.py @ 137:53faff63037f
createItem now calls UpdateObjectDB after it created the item.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 09 Oct 2011 14:03:25 +0200 |
parents | e2ccd64f3a86 |
children | 80672955ab70 |
comparison
equal
deleted
inserted
replaced
136:9397f3e4516d | 137:53faff63037f |
---|---|
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: |