ALl features OK, excetp creatures sub-type, WIP3

This commit is contained in:
2026-06-07 23:29:02 +02:00
parent 494ec3ea84
commit 6dea5ba479
86 changed files with 497 additions and 234 deletions
+6 -6
View File
@@ -54,11 +54,11 @@ export class MournbladeCYD2Utility {
return text.toUpperCase();
})
Handlebars.registerHelper('lower', function (text) {
return text.toLowerCase()
return text.toLowerCase();
})
Handlebars.registerHelper('upperFirst', function (text) {
if (typeof text !== 'string') return text
return text.charAt(0).toUpperCase() + text.slice(1)
if (typeof text !== 'string') return text;
return text.charAt(0).toUpperCase() + text.slice(1);
})
Handlebars.registerHelper('notEmpty', function (list) {
return list.length > 0;
@@ -99,11 +99,11 @@ export class MournbladeCYD2Utility {
.join(', ');
});
Handlebars.registerHelper('select', function(value, options) {
const html = options.fn(this);
Handlebars.registerHelper('select', function(value, opts) {
const html = opts.fn(this);
const escaped = String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
return html.replace(new RegExp(`value="${escaped}"`, 'g'), `value="${value}" selected="selected"`);
})
});
game.settings.register("fvtt-mournblade-cyd-2-0", "mournblade-cyd2-pause-logo", {
name: "Logo de pause",