Skip to content

Commit

Permalink
[s] Fixes an unathi nerf (ParadiseSS13#23019)
Browse files Browse the repository at this point in the history
* The fix

* Removes parentheses
  • Loading branch information
DGamerL committed Oct 24, 2023
1 parent 53589e5 commit 3388035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/human/species/_species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@
if(HAS_TRAIT(H, TRAIT_FAT))
. += (1.5 - flight)

if(H.bodytemperature < H.dna.species.cold_level_1 && !(HAS_TRAIT(H, TRAIT_RESISTCOLD)))
. += (BODYTEMP_COLD_DAMAGE_LIMIT - H.bodytemperature) / COLD_SLOWDOWN_FACTOR
if(H.bodytemperature < H.dna.species.cold_level_1 && !HAS_TRAIT(H, TRAIT_RESISTCOLD))
. += (H.dna.species.cold_level_1 - H.bodytemperature) / COLD_SLOWDOWN_FACTOR

var/leftover = .
. = round_down(. * SLOWDOWN_MULTIPLIER) / SLOWDOWN_MULTIPLIER //This allows us to round in values of 0.5 A slowdown of 0.55 becomes 1.10, which is rounded to 1, then reduced to 0.5
Expand Down

0 comments on commit 3388035

Please sign in to comment.