summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-06-18 21:30:03 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2018-06-18 21:30:03 +0200 |
commit | b257cbdf6a26660def8cd5c4d7f22bc81d8c10d7 (patch) | |
tree | 8a3ae5159deab654e223b53202b0229495a69ad3 /src/shared | |
parent | b251f5165ea3530747657b522773c4a8f44b16fa (diff) |
Possibly fixes negative number error, wrong range.
But I apparently forgot a file in the last commit...
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/struct/sh_weapon.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/struct/sh_weapon.erl b/src/shared/struct/sh_weapon.erl index 2cd3fda..d0293eb 100644 --- a/src/shared/struct/sh_weapon.erl +++ b/src/shared/struct/sh_weapon.erl @@ -411,7 +411,8 @@ apply_to_attributes (Weapon, Attributes) -> light -> (Speed - QuarterImpact) end, - S0Attributes = sh_attributes:set_speed(ResultingSpeed, Attributes), - S1Attributes = sh_attributes:set_dexterity(ResultingDexterity, S0Attributes), + S0Attributes = sh_attributes:set_unsafe_speed(ResultingSpeed, Attributes), + S1Attributes = + sh_attributes:set_unsafe_dexterity(ResultingDexterity, S0Attributes), S1Attributes. |