![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | potatobanana |
how can i make nest dictionary bit short or easy to handle?
or there other way to make something similar without using nest dict?
var testSlot = {
"InvSlot1": {
"itemID": "ironSword",
"stack": 1,
"itemData": {
"name": "Iron Sword",
"category": "One Hand Weapon",
"itemType": "equipment",
"grade": "common",
"rank": 1,
"stackSize": 1,
"stackable": false,
"invSfx": "armor",
"equipmentSlot": "right_hand",
"description": "just normal sword make it out from iron",
"def": null,
"mDef": null,
"maxHp": null,
"maxMp": null,
"maxSta": null,
"matk": null,
"minAtk": 5,
"maxAtk": 10,
"knockback": null,
"mine": null,
"cutDown": null,
"crit": null,
"mSpd": null,
"critCha": null,
"cdR": null,
"STR": null,
"CON": null,
"DEX": null,
"WIS": null,
"INT": null,
"LUK": null,
"modSkill" : {
"itemID":"heal",
"stack":1,
"itemData" :{
"name" : "Heal",
"category" : "active",
"itemType" : "skill",
"skillType" : "singleTarget",
"target" : "self",
"level" : 1,
"grade" : "Rare",
"cd" : 2,
"bonus1" : null,
"bonus2" : null
}
}
}
}
}