Pass the hope value in the button data; skeleton risk it all dialog to fill out.

This commit is contained in:
Chris Ryan 2026-01-15 23:39:44 +10:00
parent 7e4422dbf4
commit d414b464b5
7 changed files with 79 additions and 7 deletions

View file

@ -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);
}