KNIFE= 1 GUN= 2 BOMB= 3 SHORT_RANGE= 1 FAR_RANGE= 2 WEAPONS= { KNIFE: { '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, }, GUN: { '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, }, BOMB: { 'weight': 2, 'name': 'bomb', 'damage': 10, 'miss_chance': 5, # from 0 to 100, this is the probably to miss the hit 'ammons': 1, 'range': FAR_RANGE, }, }