Initial release

This commit is contained in:
2023-02-01 19:48:35 +01:00
parent 64ce2fcbb9
commit 04909ef841
26 changed files with 287 additions and 671 deletions

View File

@@ -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) => {