forked from GitHub-Mirrors/foundry-sw5e
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:
parent
20f47110cd
commit
9de6a8f5c0
3 changed files with 76 additions and 17 deletions
|
@ -197,6 +197,7 @@
|
||||||
"SW5E.ChatContextHalfDamage": "Apply Half Damage",
|
"SW5E.ChatContextHalfDamage": "Apply Half Damage",
|
||||||
"SW5E.ChatContextHealing": "Apply Healing",
|
"SW5E.ChatContextHealing": "Apply Healing",
|
||||||
"SW5E.ChatFlavor": "Chat Message Flavor",
|
"SW5E.ChatFlavor": "Chat Message Flavor",
|
||||||
|
"SW5E.ClassCasterType": "Class Caster Type",
|
||||||
"SW5E.ClassLevels": "Class Levels",
|
"SW5E.ClassLevels": "Class Levels",
|
||||||
"SW5E.ClassName": "Class Name",
|
"SW5E.ClassName": "Class Name",
|
||||||
"SW5E.ClassSkillsChosen": "Chosen Class Skills",
|
"SW5E.ClassSkillsChosen": "Chosen Class Skills",
|
||||||
|
|
|
@ -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"],
|
"types": ["archetype", "background", "backpack", "class", "classfeature", "consumable", "deployment", "deploymentfeature", "equipment", "feat", "fightingmastery", "fightingstyle", "lightsaberform", "loot", "power", "species", "starshipfeature", "starshipmod", "tool", "venture", "weapon"],
|
||||||
"templates": {
|
"templates": {
|
||||||
"archetypeDescription": {
|
"archetypeDescription": {
|
||||||
"className": "",
|
|
||||||
"description": "",
|
"description": "",
|
||||||
"source": ""
|
"source": ""
|
||||||
},
|
},
|
||||||
|
@ -607,12 +606,12 @@
|
||||||
"chat": "",
|
"chat": "",
|
||||||
"unidentified": ""
|
"unidentified": ""
|
||||||
},
|
},
|
||||||
|
"requirements": "",
|
||||||
"source": ""
|
"source": ""
|
||||||
},
|
},
|
||||||
"classDescription": {
|
"classDescription": {
|
||||||
"className": "",
|
"description": {
|
||||||
"description": {
|
"value": ""
|
||||||
"value": ""
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fightingmasteryDescription": {
|
"fightingmasteryDescription": {
|
||||||
|
@ -646,16 +645,17 @@
|
||||||
"chat": "",
|
"chat": "",
|
||||||
"unidentified": ""
|
"unidentified": ""
|
||||||
},
|
},
|
||||||
|
"source": "",
|
||||||
"traits": ""
|
"traits": ""
|
||||||
},
|
},
|
||||||
"ventureDescription": {
|
"ventureDescription": {
|
||||||
"description": {
|
"description": {
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
"prerequisites": [""],
|
"prerequisites": [""],
|
||||||
"source": {
|
"source": {
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"physicalItem": {
|
"physicalItem": {
|
||||||
"quantity": 1,
|
"quantity": 1,
|
||||||
|
@ -726,13 +726,39 @@
|
||||||
"dt": null,
|
"dt": null,
|
||||||
"conditions": ""
|
"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"],
|
"htmlFields": ["description.value", "description.chat", "description.unidentified"],
|
||||||
"archetype": {
|
"archetype": {
|
||||||
"templates": ["archetypeDescription"],
|
"templates": ["archetypeDescription"],
|
||||||
"className": "",
|
"className": "",
|
||||||
"description": ""
|
"classCasterType": ""
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"templates": ["backgroundDescription"]
|
"templates": ["backgroundDescription"]
|
||||||
|
@ -760,11 +786,27 @@
|
||||||
"choices": [],
|
"choices": [],
|
||||||
"value": []
|
"value": []
|
||||||
},
|
},
|
||||||
|
"source": "",
|
||||||
"powercasting": "none"
|
"powercasting": "none"
|
||||||
},
|
},
|
||||||
"classfeature": {
|
"classfeature": {
|
||||||
"templates": ["itemDescription", "activatedEffect", "action"],
|
"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": {
|
"fightingmastery": {
|
||||||
"templates": ["fightingmasteryDescription"]
|
"templates": ["fightingmasteryDescription"]
|
||||||
|
@ -786,7 +828,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"equipment": {
|
"equipment": {
|
||||||
"templates": ["itemDescription", "physicalItem", "activatedEffect", "action", "mountable"],
|
"templates": ["itemDescription", "physicalItem", "activatedEffect", "action", "mountable", "starshipEquipment"],
|
||||||
"armor": {
|
"armor": {
|
||||||
"type": "light",
|
"type": "light",
|
||||||
"value": 10,
|
"value": 10,
|
||||||
|
@ -850,11 +892,27 @@
|
||||||
"starshipfeature": {
|
"starshipfeature": {
|
||||||
"templates": ["itemDescription", "activatedEffect", "action"],
|
"templates": ["itemDescription", "activatedEffect", "action"],
|
||||||
"size": "med",
|
"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": {
|
"weapon": {
|
||||||
"templates": ["itemDescription", "physicalItem" ,"activatedEffect", "action", "mountable"],
|
"templates": ["itemDescription", "physicalItem" ,"activatedEffect", "action", "mountable"],
|
||||||
"weaponType": "simpleVW",
|
"weaponType": "simpleVW",
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<input type="text" name="data.className" value="{{data.className}}" placeholder="{{ localize 'SW5E.ClassName' }}"/>
|
<input type="text" name="data.className" value="{{data.className}}" placeholder="{{ localize 'SW5E.ClassName' }}"/>
|
||||||
</li>
|
</li>
|
||||||
<li style="width: 275px;">
|
<li style="width: 275px;">
|
||||||
<input type="text" name="data.classCasterType" value="{{data.classCasterType}}" />
|
<input type="text" name="data.classCasterType" value="{{data.classCasterType}}" placeholder="{{ localize 'SW5E.ClassCasterType' }}"/>
|
||||||
</li>
|
</li>
|
||||||
<li style="width: 75px;">
|
<li style="width: 75px;">
|
||||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue