mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Added DestroyOnEmpty property
This commit is contained in:
parent
4dfc18f727
commit
7082cc009f
65 changed files with 87 additions and 20 deletions
|
|
@ -199,14 +199,16 @@ export default class CostField extends fields.ArrayField {
|
|||
switch (r.key) {
|
||||
case CONFIG.DH.GENERAL.itemAbilityCosts.resource.id:
|
||||
return {
|
||||
'system.resource.value': r.target.system.resource.value + r.value
|
||||
path: 'system.resource.value',
|
||||
value: r.target.system.resource.value + r.value
|
||||
};
|
||||
case CONFIG.DH.GENERAL.itemAbilityCosts.quantity.id:
|
||||
return {
|
||||
'system.quantity': r.target.system.quantity + r.value
|
||||
path: 'system.quantity',
|
||||
value: r.target.system.quantity + r.value
|
||||
};
|
||||
default:
|
||||
return {};
|
||||
return { path: '', value: undefined };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue