This commit is contained in:
2022-01-12 17:21:37 +01:00
parent 5479605214
commit a5eb96cd97
8 changed files with 35 additions and 13 deletions

View File

@@ -348,6 +348,11 @@ export class PegasusItemSheet extends ItemSheet {
specArray.push( newItem );
await this.object.update( { 'data.recoveryrollspec': specArray} );
}
if ( event.toElement.className =='drop-effect-specaffected') {
let specArray = duplicate(this.object.data.data.specaffected);
specArray.push( newItem );
await this.object.update( { 'data.specaffected': specArray} );
}
}
/* -------------------------------------------- */

View File

@@ -23,7 +23,11 @@ export class PegasusUtility {
Handlebars.registerHelper('upper', function (text) {
return text.toUpperCase();
});
});
Handlebars.registerHelper('upperFirst', function (text) {
if (typeof text !== 'string') return text
return text.charAt(0).toUpperCase() + text.slice(1)
});
}