Fix Actor.data.data.rolling being undefined

This commit is contained in:
Johannes Loher 2021-03-04 00:54:41 +01:00
parent b07ee31b38
commit 68c20ccdc6

View file

@ -25,8 +25,10 @@ export class DS4Actor extends Actor<DS4ActorData, DS4Item> {
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(