Ignore:
Timestamp:
06/28/10 17:09:02 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • Added item_id property to the CarryableItem? class. This should be the basic ID without the added number.
  • Container now can search an item by item_id too
  • Changed get_stuff function of dialoguegui to search an item by item_id instead of ID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gamemodel.py

    r566 r569  
    112112        info.update(extra) 
    113113        ID = info.pop("id") if info.has_key("id") else info.pop("ID") 
     114        if not info.has_key("item_id"): 
     115            info['item_id'] = ID 
    114116        if self.game_state.hasObject(ID): 
    115117            id_number = 1 
Note: See TracChangeset for help on using the changeset viewer.