hornedskulldrake wrote: ↑Sun Apr 30, 2023 2:36 am
Wait so we can change weapon to the one we want with this table? How???
Maybe, but first you have to convert all item pointers from linear to tree (from absolute values to relative ones)
to see real object / data structure.
ie. if we have linear objects a, b, c
a/ pointer myptr / 10 / 0
b/ pointer myptr / 10 / 50 / 0
c/ pointer myptr / 20 / 0
then tree version should be
d/ pointer myptr / 0
- a/ pointer +10 / 0
-- b/ pointer +50 / 0
- c/ pointer +20 / 0
Something like this
In resources defined like this
"id": "HeavyArmorUncoCompanions",
"name": "Harnois de la Fraternité",
"weight": 5,
"baseBonus": [
{
"value": 13,
"attribute": "Armor",
"upValue": 252
},
{
"value": 15,
"attribute": "Guard",
"upValue": 30
},
{
"value": 5,
"attribute": "CritHitDamageBonusPercent",
"upValue": 10
}
],
"props": {
"model": "chars/Clothes/CompanionsHeavy/Model.fbx",
"skinTexture": "chars/Clothes/CompanionsHeavy/M_ClothesCompanionHeavyBtmSkinCompanions_Albedo_1K.png",
"feature": "Difficulty_Update"
},
"icon": {
"file": "ui/Icons/GearIcons/HeavyArmorsIcons.png",
"size": 96,
"x": 5,
"y": 0,
"height": 2
},
"type": "ArmorHeavy",
"price": 109,
"rarity": 1,
"desc": "Ce harnois ne sacrifie rien à l'esthétisme : être mercenaire est aussi une question de paraître.",
"group": 15,
"iconeDone": true