mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-19 19:10:05 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user