Keep fields from being wiped out

updated the template.json to have the fields that were being wiped out.  If they don't exist they will be removed when moving to/from a compendium and when duplicating the item.
This commit is contained in:
supervj 2021-04-16 02:05:53 -04:00
parent 20f47110cd
commit 9de6a8f5c0
3 changed files with 76 additions and 17 deletions

View file

@ -544,7 +544,6 @@
"types": ["archetype", "background", "backpack", "class", "classfeature", "consumable", "deployment", "deploymentfeature", "equipment", "feat", "fightingmastery", "fightingstyle", "lightsaberform", "loot", "power", "species", "starshipfeature", "starshipmod", "tool", "venture", "weapon"],
"templates": {
"archetypeDescription": {
"className": "",
"description": "",
"source": ""
},
@ -607,12 +606,12 @@
"chat": "",
"unidentified": ""
},
"requirements": "",
"source": ""
},
"classDescription": {
"className": "",
"description": {
"value": ""
"description": {
"value": ""
}
},
"fightingmasteryDescription": {
@ -646,16 +645,17 @@
"chat": "",
"unidentified": ""
},
"source": "",
"traits": ""
},
"ventureDescription": {
"ventureDescription": {
"description": {
"value": ""
},
"prerequisites": [""],
"source": {
"value": ""
}
"prerequisites": [""],
"source": {
"value": ""
}
},
"physicalItem": {
"quantity": 1,
@ -726,13 +726,39 @@
"dt": null,
"conditions": ""
}
},
"starshipEquipment": {
"capx": {
"value":null
},
"hpperhd": {
"value":null
},
"regrateco": {
"value":null
},
"cscap": {
"value":null
},
"sscap": {
"value":null
},
"fuelcostsmod": {
"value":null
},
"powerdicerec": {
"value":null
},
"hdclass": {
"value":null
}
}
},
"htmlFields": ["description.value", "description.chat", "description.unidentified"],
"archetype": {
"templates": ["archetypeDescription"],
"className": "",
"description": ""
"classCasterType": ""
},
"background": {
"templates": ["backgroundDescription"]
@ -760,11 +786,27 @@
"choices": [],
"value": []
},
"source": "",
"powercasting": "none"
},
"classfeature": {
"templates": ["itemDescription", "activatedEffect", "action"],
"className": ""
"recharge": {
"charged": false,
"value": null
}
},
"deployment": {
"templates": ["classDescription"],
"flavorText": "",
"source": ""
},
"deploymentfeature": {
"templates": ["itemDescription", "activatedEffect", "action"],
"recharge": {
"charged": false,
"value": null
}
},
"fightingmastery": {
"templates": ["fightingmasteryDescription"]
@ -786,7 +828,7 @@
}
},
"equipment": {
"templates": ["itemDescription", "physicalItem", "activatedEffect", "action", "mountable"],
"templates": ["itemDescription", "physicalItem", "activatedEffect", "action", "mountable", "starshipEquipment"],
"armor": {
"type": "light",
"value": 10,
@ -850,11 +892,27 @@
"starshipfeature": {
"templates": ["itemDescription", "activatedEffect", "action"],
"size": "med",
"tier": 0
"tier": 0
},
"starshipmod": {
"templates": ["itemDescription", "activatedEffect", "action"],
"recharge": {
"charged": false,
"value": null
},
"system": {
"value": ""
},
"grade": {
"value": ""
},
"basecost": {
"value": ""
},
"prerequisites": {
"value": ""
}
},
"starshipmod": {
"templates": ["itemDescription"]
},
"weapon": {
"templates": ["itemDescription", "physicalItem" ,"activatedEffect", "action", "mountable"],
"weaponType": "simpleVW",