Sync
This commit is contained in:
@@ -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} );
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
@@ -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)
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user