Update perks
This commit is contained in:
@ -292,7 +292,15 @@ export class PegasusItemSheet extends ItemSheet {
|
||||
/* -------------------------------------------- */
|
||||
async addPerkSpecialisation( event, item, dataItem) {
|
||||
let newItem = duplicate(item.data);
|
||||
await this.object.update( { 'data.features.affectedspec.value': newItem.name} );
|
||||
if ( event.toElement.className == 'drop-spec-perk') {
|
||||
//console.log("PER SPEC", event)
|
||||
let key = event.toElement.dataset["key"];
|
||||
if ( key == 'affectedspec') {
|
||||
await this.object.update( { 'data.features.affectedspec.value': newItem.name} );
|
||||
} else {
|
||||
await this.object.update( { 'data.features.gainspecdice.value': newItem.name} );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Reference in New Issue
Block a user