Skip to content

Commit

Permalink
fix: return base modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbatst committed Aug 29, 2023
1 parent 1417e14 commit d490ed7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domain/entities/Skill/CharacterSkill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export class CharacterSkill {
}),
modifiersTotal: this.getModifiersTotal(isAttack),
total: skillRollResult.total + this.getModifiersTotal(isAttack),
attributeModifier: skillRollResult.attributeModifier,
levelPoints: skillRollResult.levelPoints,
trainingPoints: skillRollResult.trainingPoints,
};
}
}
6 changes: 6 additions & 0 deletions src/domain/entities/Skill/SheetSkill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export type SkillRollResult = {
isCritical: boolean;
isFumble: boolean;
total: number;
attributeModifier: number;
levelPoints: number;
trainingPoints: number;
};

export class SheetSkill {
Expand Down Expand Up @@ -72,6 +75,9 @@ export class SheetSkill {
modifiersTotal: this.getModifiersTotal(),
roll: rollResult,
total: rollResult.total + this.getModifiersTotal(),
attributeModifier: this.getAttributeModifier(),
levelPoints: this.getLevelPoints(),
trainingPoints: this.getTrainingPoints(),
};
}
}

0 comments on commit d490ed7

Please sign in to comment.