Item descriptions

This commit is contained in:
2022-12-28 10:30:56 +01:00
parent d56be5dcd6
commit d49452efc5
12 changed files with 120 additions and 62 deletions

View File

@ -4,10 +4,11 @@ export const Hero6_CONFIG = {
rollCharac : {
"str": "Strength",
"dex": "Dexterity",
"pre": "Presence",
"int": "Intelligence",
"con": "Constitution",
"ego": "Ego"
"int": "Intelligence",
"ego": "Ego",
"pre": "Presence",
"manual": "Manual",
},
skillType: {
"agility": "Agility",
@ -15,7 +16,17 @@ export const Hero6_CONFIG = {
"intellect": "Intellect" ,
"background": "Background" ,
"combat": "Combat" ,
"custom": "Custom"
},
powerEquipmentType: {
"adjustement": "Adjustement",
"attack": "Attack",
"bodyaffecting": "Bodyaffecting",
"defense": "Defense",
"mental": "Mental",
"movement": "Movement",
"senseaffecting": "Senseaffecting",
"sensory": "Sensory",
"special": "Special"
}
}

View File

@ -40,7 +40,13 @@ export class Hero6Utility {
return parseInt(a) * parseInt(b);
})
Handlebars.registerHelper('locationLabel', function (key) {
return __locationNames[key]
return __locationNames[key]
})
Handlebars.registerHelper('isSkillCustom', function (key) {
if (key == "custom" || key == "background" || key == "combat" ) {
return true;
}
return false
})
@ -149,7 +155,9 @@ export class Hero6Utility {
'systems/fvtt-hero-system-6/templates/partials/partial-options-abilities.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-item-nav.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-item-description.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment.hbs'
'systems/fvtt-hero-system-6/templates/partials/partial-actor-equipment.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-item-cost.hbs',
'systems/fvtt-hero-system-6/templates/partials/partial-power-equipment-cost.hbs',
]
return loadTemplates(templatePaths);
}