Initial release
This commit is contained in:
@@ -14,8 +14,8 @@ export class MaleficesActorSheet extends ActorSheet {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["fvtt-malefices", "sheet", "actor"],
|
||||
template: "systems/fvtt-malefices/templates/actors/actor-sheet.hbs",
|
||||
width: 960,
|
||||
height: 720,
|
||||
width: 640,
|
||||
height: 640,
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "skills" }],
|
||||
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
|
||||
editScore: true
|
||||
@@ -38,7 +38,6 @@ export class MaleficesActorSheet extends ActorSheet {
|
||||
armes: duplicate(this.actor.getArmes()),
|
||||
equipements: duplicate(this.actor.getEquipements()),
|
||||
subActors: duplicate(this.actor.getSubActors()),
|
||||
focusData: this.actor.computeFinalFocusData(),
|
||||
encCurrent: this.actor.encCurrent,
|
||||
options: this.options,
|
||||
owner: this.document.isOwner,
|
||||
@@ -113,13 +112,11 @@ export class MaleficesActorSheet extends ActorSheet {
|
||||
|
||||
html.find('.roll-attribut').click((event) => {
|
||||
let attrKey = $(event.currentTarget).data("attr-key")
|
||||
let skillKey = $(event.currentTarget).data("skill-key")
|
||||
this.actor.rollSkill(attrKey, skillKey)
|
||||
this.actor.rollAttribut(attrKey)
|
||||
});
|
||||
html.find('.roll-arme').click((event) => {
|
||||
const li = $(event.currentTarget).parents(".item");
|
||||
const weponId = li.data("item-id")
|
||||
this.actor.rollWeapon(weponId)
|
||||
const armeId = $(event.currentTarget).data("arme-id")
|
||||
this.actor.rollArme(armeId)
|
||||
});
|
||||
|
||||
html.find('.lock-unlock-sheet').click((event) => {
|
||||
|
||||
Reference in New Issue
Block a user