This commit is contained in:
Dapoolp 2025-08-08 21:31:35 +02:00
parent 5d0a4382cc
commit 279a77cd76
4 changed files with 15 additions and 2 deletions

View file

@ -47,6 +47,7 @@ export default class CostField extends fields.ArrayField {
static hasCost(costs) {
const realCosts = CostField.getRealCosts.call(this, costs),
hasFearCost = realCosts.findIndex(c => c.key === 'fear');
CostField.mergeCost.call(this, realCosts)
if (hasFearCost > -1) {
const fearCost = realCosts.splice(hasFearCost, 1)[0];
if (
@ -100,4 +101,8 @@ export default class CostField extends fields.ArrayField {
}
return Number(max);
}
static mergeCost(costs) {
console.log(costs)
}
}