Small optimisation

This commit is contained in:
Nox Sluijtman 2022-08-27 16:57:54 +02:00
parent 5c2aff1fbe
commit d0acfe9813

View file

@ -232,8 +232,7 @@ func savingThrow(stat Stat) int {
} }
func skillCheck(skill Skill) int { func skillCheck(skill Skill) int {
var die int die := rollDice()
die = rollDice()
die += getModifier(getStat(skill.BaseStat)) die += getModifier(getStat(skill.BaseStat))