Ignore:
Timestamp:
Sep 4, 2009, 7:51:19 PM (11 years ago)
Author:
Adrianna Pińska <adrianna.pinska@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@201
Message:

selected chickens are selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/equipment.py

    r198 r200  
    129129    """Things which are not equipment, but are displayed in the same way"""
    130130    IS_EQUIPMENT = False
     131    IS_ACCOUTREMENT = True
    131132    BUY_PRICE = 0
    132133    SELL_PRICE = 0
     
    158159    return is_equipment(obj) and getattr(obj, 'IS_ARMOUR', False)
    159160
     161def is_accoutrement(obj):
     162    return not getattr(obj, "IS_EQUIPMENT", False) and hasattr(obj, "NAME") and getattr(obj, 'IS_ACCOUTREMENT', False)
     163
    160164EQUIPMENT = []
    161165for name in dir():
Note: See TracChangeset for help on using the changeset viewer.