diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/character.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/models/character.rb b/app/models/character.rb index f2c450e..c593651 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -337,8 +337,8 @@ class Character < ApplicationRecord res += resistance("energy") end - res = (res * 0.75).ceil if elusive? - res = (res * 1.25).floor if protective? + res -= (beastslay_level / 5).ceil if elusive? + res += (beastslay_level / 5).ceil if protective? res end @@ -357,9 +357,9 @@ class Character < ApplicationRecord def accuracy(with_combat_style: false) base = self.beastslay_level + total_stat_change("accuracy") if with_combat_style && self.precise? - base = (base * 1.25).floor + base += (beastslay_level / 5).ceil elsif with_combat_style && self.brutal? - base = (base * 0.75).ceil + base -= (beastslay_level / 5).ceil end base end @@ -367,9 +367,9 @@ class Character < ApplicationRecord def power(with_combat_style: false) base = self.beastslay_level + total_stat_change("power") if with_combat_style && self.precise? - base = (base * 0.75).ceil + base -= (beastslay_level / 5).ceil elsif with_combat_style && self.brutal? - base = (base * 1.25).floor + base += (beastslay_level / 5).ceil end base end @@ -377,9 +377,9 @@ class Character < ApplicationRecord def evasion(with_combat_style: false) base = self.beastslay_level + total_stat_change("evasion") if with_combat_style && self.elusive? - base = (base * 1.25).floor + base += (beastslay_level / 5).ceil elsif with_combat_style && self.protective? - base = (base * 0.75).ceil + base -= (beastslay_level / 5).ceil end base end |