Foundry v10 version

This commit is contained in:
2022-07-01 15:48:54 +02:00
parent d27b78d1d2
commit cc1964093d
23 changed files with 320 additions and 330 deletions

View File

@ -66,10 +66,9 @@ export class BoLActorSheet extends ActorSheet {
const incr = parseInt(dataset.incr)
const min = parseInt(dataset.min)
const max = parseInt(dataset.max) || 10000
const itemData = item.data;
let value = eval("itemData." + target)
let value = eval("item." + target)
value = value || 0
console.log("IncDec", item, target, value, operator, min, max)
//console.log("IncDec", item, target, value, operator, min, max)
if (operator === "minus") {
if (value >= min + incr) value -= incr;
else value = min;
@ -109,12 +108,12 @@ export class BoLActorSheet extends ActorSheet {
/** @override */
getData(options) {
const data = super.getData(options);
const actorData = duplicate(data.data);
const data = super.getData(options)
const actorData = duplicate(data)
let formData = duplicate(data)
formData.config = game.bol.config
formData.data = actorData.data
formData.data = actorData
formData.details = this.actor.details
formData.attributes = this.actor.attributes
formData.aptitudes = this.actor.aptitudes