This commit is contained in:
@@ -48,9 +48,9 @@ impl Nature {
|
||||
/// Calculates the modifier for a given stat. If it's the increased stat, returns the increased
|
||||
/// modifier, if it's the decreased stat, returns the decreased modifier. Otherwise returns 1.0
|
||||
pub fn get_stat_modifier(&self, stat: Statistic) -> f32 {
|
||||
if stat == self.increase_stat {
|
||||
if stat == self.increase_stat && stat != self.decrease_stat {
|
||||
self.increase_modifier
|
||||
} else if stat == self.decrease_stat {
|
||||
} else if stat == self.decrease_stat && stat != self.increase_stat {
|
||||
self.decrease_modifier
|
||||
} else {
|
||||
1.0
|
||||
|
||||
Reference in New Issue
Block a user