MEDIKIT= 1 #FOOD= 2 #XXX not yet implemented, how to manage it? #DRINK= 3 #XXX not yet implemented, how to manage it? KNIFE= 4 ARCH= 5 SHORT_RANGE= 1 FAR_RANGE= 2 ITEMS= { MEDIKIT: { 'is_weapon': False, 'weight': 0.5, 'name': 'medikit', 'description': 'useful tool to restore health', 'health': 1, }, KNIFE: { 'is_weapon': True, 'weight': 1, 'name': 'knife', 'damage': 3, 'miss_chance': 0, # from 0 to 100, this is the probably to miss the hit 'ammons': -1, # -1, no limit 'range': SHORT_RANGE, }, ARCH: { 'is_weapon': True, 'weight': 2, 'name': 'gun', 'damage': 3, 'miss_chance': 20, # from 0 to 100, this is the probably to miss the hit 'ammons': 10, # -1, no limit 'range': FAR_RANGE, }, }