mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 13:41:07 +01:00
Pass the hope value in the button data; skeleton risk it all dialog to fill out.
This commit is contained in:
parent
7e4422dbf4
commit
d414b464b5
7 changed files with 79 additions and 7 deletions
|
|
@ -738,7 +738,7 @@ export default class DhCharacter extends BaseDataActor {
|
|||
|
||||
static migrateData(source) {
|
||||
if (typeof source.scars === 'object') source.scars = 0;
|
||||
if (source.resources.hope.max) source.scars = Math.max(6 - source.resources.hope.max, 0);
|
||||
if (source.resources?.hope?.max) source.scars = Math.max(6 - source.resources.hope.max, 0);
|
||||
|
||||
return super.migrateData(source);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue