From 4ccb179056c990df5f60e574781d5ed57191c263 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 8 Jul 2021 10:17:32 -0400 Subject: Change how beastslay stances work --- app/models/character.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'app/models/character.rb') diff --git a/app/models/character.rb b/app/models/character.rb index 4237d50..f6ddb92 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -396,7 +396,7 @@ class Character < ApplicationRecord end def beastslay_stance_modifier - (beastslay_level / 4).ceil + (beastslay_level / 8).ceil end def resistance(damage_type) @@ -412,8 +412,8 @@ class Character < ApplicationRecord res += resistance("energy") end - res -= beastslay_stance_modifier if elusive? && !%w[physical energy].include?(damage_type) - res += beastslay_stance_modifier if protective? && !%w[physical energy].include?(damage_type) + res += beastslay_stance_modifier if centered? && !%w[physical energy].include?(damage_type) + res += beastslay_stance_modifier * 2 if protective? && !%w[physical energy].include?(damage_type) res end @@ -432,19 +432,19 @@ class Character < ApplicationRecord def accuracy(with_combat_style: false) base = beastslay_stat_modifier + total_stat_change("accuracy") if with_combat_style && self.precise? + base += beastslay_stance_modifier * 2 + elsif with_combat_style && self.balanced? base += beastslay_stance_modifier - elsif with_combat_style && self.brutal? - base -= beastslay_stance_modifier end base end def power(with_combat_style: false) base = beastslay_stat_modifier + total_stat_change("power") - if with_combat_style && self.precise? - base -= beastslay_stance_modifier - elsif with_combat_style && self.brutal? + if with_combat_style && self.balanced? base += beastslay_stance_modifier + elsif with_combat_style && self.brutal? + base += beastslay_stance_modifier * 2 end base end @@ -452,9 +452,9 @@ class Character < ApplicationRecord def evasion(with_combat_style: false) base = beastslay_stat_modifier + total_stat_change("evasion") if with_combat_style && self.elusive? + base += beastslay_stance_modifier * 2 + elsif with_combat_style && self.centered? base += beastslay_stance_modifier - elsif with_combat_style && self.protective? - base -= beastslay_stance_modifier end base end -- cgit v1.2.3