mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
h
This commit is contained in:
parent
5d0a4382cc
commit
279a77cd76
4 changed files with 15 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue