Fix Tajaran movespeed (#21991)

Fixes #21974

Turns out we had ancient code that used a hardcoded bodytemp value to
lower people's movespeed if they got too cold. Tajara naturally want a
cooler body temp, and as a result they could end up movespeed nerfing
themselves silently. Now the movespeed nerf is pegged to
cold_discomfort_level, so your move speed will only be nerfed when you
start getting warnings about feeling too cold.
This commit is contained in:
Wildkins
2026-03-08 01:31:28 +00:00
committed by GitHub
parent 108e02dbf7
commit 3633b556c7
2 changed files with 15 additions and 2 deletions
@@ -44,8 +44,8 @@
if (!(species.flags & NO_COLD_SLOWDOWN)) // Bugs and machines don't move slower when cold.
if((mutations & FAT))
tally += 1.5
if (bodytemperature < 283.222)
tally += (283.222 - bodytemperature) / 10 * 1.75
if (bodytemperature < species.cold_discomfort_level)
tally += (species.cold_discomfort_level - bodytemperature) / 10 * 1.75
tally += max(2 * stance_damage, 0) //damaged/missing feet or legs is slow
if((mutations & mRun))