Reduce network burden of the hunger system (#32986)
* reduce network burden of the hunger system * explicit start + last updated * remove auto reformat changes to otherwise untouched code add clamp helper * imagine making breaking changes, documenting them, and then not thinking to check the yaml * comments * Remove unused net manager in hunger system Remove lastAuthoritativeHungerValue from prototypes
This commit is contained in:
@@ -100,7 +100,7 @@ public sealed class FatExtractorSystem : EntitySystem
|
||||
if (!TryComp<HungerComponent>(occupant, out var hunger))
|
||||
return false;
|
||||
|
||||
if (hunger.CurrentHunger < component.NutritionPerSecond)
|
||||
if (_hunger.GetHunger(hunger) < component.NutritionPerSecond)
|
||||
return false;
|
||||
|
||||
if (hunger.CurrentThreshold < component.MinHungerThreshold && !HasComp<EmaggedComponent>(uid))
|
||||
|
||||
Reference in New Issue
Block a user