Fix hunger not updating thresholds correctly from rejuvenate.

This commit is contained in:
Pieter-Jan Briers
2021-01-12 21:24:11 +01:00
parent ec492a0d6a
commit af1838c641
4 changed files with 36 additions and 23 deletions

View File

@@ -2,6 +2,7 @@ using System;
using Content.Shared.GameObjects.Components.Movement;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
namespace Content.Shared.GameObjects.Components.Nutrition
{
@@ -11,6 +12,7 @@ namespace Content.Shared.GameObjects.Components.Nutrition
public sealed override uint? NetID => ContentNetIDs.HUNGER;
[ViewVariables]
public abstract HungerThreshold CurrentHungerThreshold { get; }
@@ -49,6 +51,7 @@ namespace Content.Shared.GameObjects.Components.Nutrition
}
}
[Serializable, NetSerializable]
public enum HungerThreshold : byte
{
Overfed,