comparison gamelib/equipment.py @ 114:4c2fbab20abe

Foxes are stealthy now.
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 02 Sep 2009 19:17:26 +0000
parents 48019afde338
children 5621f5074c8d
comparison
equal deleted inserted replaced
113:55105d3bdab1 114:4c2fbab20abe
45 BUY_PRICE = 20 45 BUY_PRICE = 20
46 SELL_PRICE = 15 46 SELL_PRICE = 15
47 47
48 RANGE = 3 48 RANGE = 3
49 BASE_HIT = 50 49 BASE_HIT = 50
50 RANGE_MODIFIER = 10 50 RANGE_MODIFIER = 15
51 HIT_SOUND = "fire-rifle.ogg" 51 HIT_SOUND = "fire-rifle.ogg"
52 52
53 def is_equipment(obj): 53 def is_equipment(obj):
54 """Return true if obj is a build class.""" 54 """Return true if obj is a build class."""
55 return getattr(obj, "IS_EQUIPMENT", False) and hasattr(obj, "NAME") 55 return getattr(obj, "IS_EQUIPMENT", False) and hasattr(obj, "NAME")