Fix hunger/thirst 'Dead' thresholds (#9453)

This commit is contained in:
themias
2022-07-05 23:08:57 -04:00
committed by GitHub
parent f9f460af31
commit 1014c7c335
5 changed files with 10 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ namespace Content.Server.Nutrition.EntitySystems
private void OnRefreshMovespeed(EntityUid uid, ThirstComponent component, RefreshMovementSpeedModifiersEvent args)
{
var mod = (component.CurrentThirstThreshold & (ThirstThreshold.Parched | ThirstThreshold.Dead)) != 0x0 ? 0.75f : 1.0f;
var mod = component.CurrentThirstThreshold <= ThirstThreshold.Parched ? 0.75f : 1.0f;
args.ModifySpeed(mod, mod);
}