Add spells rolls and enhance CSS styling
- Add spell roll functionality to character sheets - Enhance CSS and LESS styling for better visual presentation - Update character templates and models - Remove old backup files (roll-old.mjs, roll.mjs.backup) - Improve character combat and equipment templates - Update utility functions and actor documents Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -177,6 +177,11 @@ export default class PrismRPGUtils {
|
||||
return str ? str.toUpperCase() : '';
|
||||
})
|
||||
|
||||
Handlebars.registerHelper('replace', function (str, search, replacement) {
|
||||
if (!str) return '';
|
||||
return str.replace(search, replacement);
|
||||
})
|
||||
|
||||
Handlebars.registerHelper('isEnabled', function (configKey) {
|
||||
return game.settings.get("bol", configKey);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user