Remove starvation damage (#9024)

* Remove starvation damage

* remove more

* Even more cleanup
This commit is contained in:
Rane
2022-06-27 00:08:08 -04:00
committed by GitHub
parent 8ba1c1f5e9
commit 8b699052d2
5 changed files with 0 additions and 62 deletions

View File

@@ -135,24 +135,9 @@ namespace Content.Server.Nutrition.EntitySystems
var calculatedThirstThreshold = GetThirstThreshold(component, component.CurrentThirst);
if (calculatedThirstThreshold != component.CurrentThirstThreshold)
{
if (component.CurrentThirstThreshold == ThirstThreshold.Dead)
_adminLogger.Add(LogType.Thirst, $"{EntityManager.ToPrettyString(component.Owner):entity} has stopped taking dehydration damage");
else if (calculatedThirstThreshold == ThirstThreshold.Dead)
_adminLogger.Add(LogType.Thirst, $"{EntityManager.ToPrettyString(component.Owner):entity} has started taking dehydration damage");
component.CurrentThirstThreshold = calculatedThirstThreshold;
UpdateEffects(component);
}
if (component.CurrentThirstThreshold == ThirstThreshold.Dead)
{
if (!EntityManager.TryGetComponent(component.Owner, out MobStateComponent? mobState))
return;
if (!mobState.IsDead())
{
_damage.TryChangeDamage(component.Owner, component.Damage, true);
}
}
}
_accumulatedFrameTime -= 1;
}