16
Work In Progress / Adding items instead of replacing everything?
« on: June 05, 2021, 07:44:59 pm »
Hi,
Is there a way to ADD my custom items to "startingBase" items collection without removing everything else from the list and without re-declaring whole list?
I googled this, but it doesn't seem to work:
Best regards
Is there a way to ADD my custom items to "startingBase" items collection without removing everything else from the list and without re-declaring whole list?
Quote
startingBase:
items:
STR_SNIPER_RIFLE: 2
STR_SNIPER_RIFLE_AMMO: 6
I googled this, but it doesn't seem to work:
Quote
#base mod:
items:
- type: STR_WEAPON
compatibleAmmo: !info #this tag does not change anything, but when used it will show (in the log file) if the list supports this functionality or not
- STR_AMMO_1
- STR_AMMO_2
#sub-mod
items:
- type: STR_WEAPON
compatibleAmmo: !add #now `STR_WEAPON` will have ammo list equal to `[STR_AMMO_1, STR_AMMO_2, STR_AMMO_3]`
- STR_AMMO_3
#another sub-mod
items:
- type: STR_WEAPON
compatibleAmmo: !remove #now `STR_WEAPON` will have ammo list equal to `[STR_AMMO_1, STR_AMMO_3]`
- STR_AMMO_2
Best regards