mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
Added Quantity as a possible cost
This commit is contained in:
parent
fa0fa1f9ee
commit
26ce421d9c
7 changed files with 89 additions and 53 deletions
|
|
@ -659,12 +659,10 @@ export default class DhpActor extends Actor {
|
|||
};
|
||||
|
||||
resources.forEach(r => {
|
||||
if (r.keyIsID) {
|
||||
if (r.itemId) {
|
||||
updates.items[r.key] = {
|
||||
target: r.target,
|
||||
resources: {
|
||||
'system.resource.value': r.target.system.resource.value + r.value
|
||||
}
|
||||
resources: game.system.api.fields.ActionFields.CostField.getItemIdCostUpdate(r)
|
||||
};
|
||||
} else {
|
||||
switch (r.key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue