Ignore:
Timestamp:
08/02/10 12:04:03 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • When checking for attributes in items and none are found the default class "CarryableItem?" will be used. This fixes the crash on changing maps.
  • CarryableContainer? now adds the attribute "Container" when getting the state for saving.
  • Moved "Wild potato" into a visible area on the Farm map.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/composed.py

    r611 r615  
    114114        """ 
    115115        state = Container.getStateForSaving(self) 
     116        if not state.has_key("attributes"): 
     117            state["attributes"] = [] 
     118        state["attributes"].append("Container") 
    116119        state.update(CarryableItem.getStateForSaving(self)) 
    117120        return state 
Note: See TracChangeset for help on using the changeset viewer.