Enhance sheets
This commit is contained in:
@@ -38,6 +38,10 @@ export class Hero6ActorSheet extends ActorSheet {
|
||||
characteristics: this.actor.prepareCharac(),
|
||||
limited: this.object.limited,
|
||||
skills: this.actor.getSkills( ),
|
||||
perks: this.actor.getPerks( ),
|
||||
powers: this.actor.getPowers( ),
|
||||
talents: this.actor.getTalents( ),
|
||||
complications: this.actor.getComplications( ),
|
||||
weapons: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getWeapons()) ),
|
||||
armors: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getArmors())),
|
||||
shields: this.actor.checkAndPrepareEquipments( duplicate(this.actor.getShields())),
|
||||
@@ -50,7 +54,16 @@ export class Hero6ActorSheet extends ActorSheet {
|
||||
moneys: duplicate(this.actor.getMoneys()),
|
||||
encCapacity: this.actor.getEncumbranceCapacity(),
|
||||
description: await TextEditor.enrichHTML(this.object.system.biodata.description, {async: true}),
|
||||
notes: await TextEditor.enrichHTML(this.object.system.biodata.notes, {async: true}),
|
||||
motivation: await TextEditor.enrichHTML(this.object.system.biodata.motivation, {async: true}),
|
||||
quote: await TextEditor.enrichHTML(this.object.system.biodata.quote, {async: true}),
|
||||
tactics: await TextEditor.enrichHTML(this.object.system.biodata.tactics, {async: true}),
|
||||
campaignuse: await TextEditor.enrichHTML(this.object.system.biodata.campaignuse, {async: true}),
|
||||
appearance: await TextEditor.enrichHTML(this.object.system.biodata.appearance, {async: true}),
|
||||
notes1: await TextEditor.enrichHTML(this.object.system.biodata.notes1, {async: true}),
|
||||
notes2: await TextEditor.enrichHTML(this.object.system.biodata.notes2, {async: true}),
|
||||
notes3: await TextEditor.enrichHTML(this.object.system.biodata.notes3, {async: true}),
|
||||
notes4: await TextEditor.enrichHTML(this.object.system.biodata.notes4, {async: true}),
|
||||
notes5: await TextEditor.enrichHTML(this.object.system.biodata.notes5, {async: true}),
|
||||
containersTree: this.actor.containersTree,
|
||||
encCurrent: this.actor.encCurrent,
|
||||
options: this.options,
|
||||
@@ -139,7 +152,12 @@ export class Hero6ActorSheet extends ActorSheet {
|
||||
const characKey = $(event.currentTarget).data("charac-key");
|
||||
this.actor.rollCharac(characKey);
|
||||
});
|
||||
|
||||
html.find('.roll-item').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
let itemId = li.data("item-id")
|
||||
this.actor.rollItem(itemId);
|
||||
});
|
||||
|
||||
html.find('.roll-weapon').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const skillId = li.data("item-id")
|
||||
|
||||
Reference in New Issue
Block a user