Fix thirst errors in tests (#20481)

This commit is contained in:
Leon Friedrich
2023-09-25 11:07:31 +10:00
committed by GitHub
parent 20c34580c2
commit c348582e04
3 changed files with 11 additions and 8 deletions

View File

@@ -46,6 +46,9 @@ public sealed class ThirstSystem : EntitySystem
component.LastThirstThreshold = ThirstThreshold.Okay; // TODO: Potentially change this -> Used Okay because no effects.
// TODO: Check all thresholds make sense and throw if they don't.
UpdateEffects(uid, component);
TryComp(uid, out MovementSpeedModifierComponent? moveMod);
_movement.RefreshMovementSpeedModifiers(uid, moveMod);
}
private void OnRefreshMovespeed(EntityUid uid, ThirstComponent component, RefreshMovementSpeedModifiersEvent args)
@@ -179,7 +182,6 @@ public sealed class ThirstSystem : EntitySystem
thirst.CurrentThirstThreshold = calculatedThirstThreshold;
UpdateEffects(uid, thirst);
Dirty(uid, thirst);
}
}