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 { prepareBaseData(): void {
const data = this.data; const data = this.data;
data.data.rolling.minimumFumbleResult = 20; data.data.rolling = {
data.data.rolling.maximumCoupResult = 1; minimumFumbleResult: 20,
maximumCoupResult: 1,
};
const attributes = data.data.attributes; const attributes = data.data.attributes;
Object.values(attributes).forEach( Object.values(attributes).forEach(