items syms

This commit is contained in:
andrea
2025-11-14 22:00:35 +01:00
parent 9c2b6b026b
commit f408aee8f8
2 changed files with 25 additions and 4 deletions

37
entities/items/syms.py Normal file
View File

@@ -0,0 +1,37 @@
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,
},
}