forked from GitHub-Mirrors/foundry-sw5e

Updated to 0.98 core for 0.7.x compatability (untested) Class Skills are pulling in automatically on class item drop to character sheet. TODO: Expand automated skill drop for Archetypes KNOWN ISSUE: init.value is being converted to a string causing some NaN errors on the html. Initiative was changed to a number instead of a string in 0.98 likely some place is assuming it is still a string. I had to use Number() on the value because it was forcing other vales to be a string because the value is "". Maybe someone can fix this
27 lines
972 B
JavaScript
27 lines
972 B
JavaScript
/**
|
|
* Define a set of template paths to pre-load
|
|
* Pre-loaded templates are compiled and cached for fast access when rendering
|
|
* @return {Promise}
|
|
*/
|
|
export const preloadHandlebarsTemplates = async function() {
|
|
|
|
// Define template paths to load
|
|
const templatePaths = [
|
|
|
|
// Actor Sheet Partials
|
|
"systems/sw5e/templates/actors/parts/actor-traits.html",
|
|
"systems/sw5e/templates/actors/parts/actor-inventory.html",
|
|
"systems/sw5e/templates/actors/parts/actor-features.html",
|
|
"systems/sw5e/templates/actors/parts/actor-powerbook.html",
|
|
"systems/sw5e/templates/actors/parts/actor-effects.html",
|
|
|
|
// Item Sheet Partials
|
|
"systems/sw5e/templates/items/parts/item-action.html",
|
|
"systems/sw5e/templates/items/parts/item-activation.html",
|
|
"systems/sw5e/templates/items/parts/item-description.html",
|
|
"systems/sw5e/templates/items/parts/item-mountable.html"
|
|
];
|
|
|
|
// Load the template parts
|
|
return loadTemplates(templatePaths);
|
|
};
|