From 68c20ccdc6a8852118cd585e0f1d379c18beb1c7 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 4 Mar 2021 00:54:41 +0100 Subject: [PATCH] Fix Actor.data.data.rolling being undefined --- src/module/actor/actor.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/module/actor/actor.ts b/src/module/actor/actor.ts index e28effdc..0e4cbb0d 100644 --- a/src/module/actor/actor.ts +++ b/src/module/actor/actor.ts @@ -25,8 +25,10 @@ export class DS4Actor extends Actor { prepareBaseData(): void { const data = this.data; - data.data.rolling.minimumFumbleResult = 20; - data.data.rolling.maximumCoupResult = 1; + data.data.rolling = { + minimumFumbleResult: 20, + maximumCoupResult: 1, + }; const attributes = data.data.attributes; Object.values(attributes).forEach(