More blood tweaks (#6811)

This commit is contained in:
mirrorcult
2022-02-20 17:18:24 -07:00
committed by GitHub
parent d91f969451
commit e85bdc2d87
9 changed files with 52 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
using Content.Server.Atmos.Components;
using Content.Server.Atmos.EntitySystems;
using Content.Server.Body.Components;
using Content.Server.Body.Systems;
using Content.Server.Nutrition.Components;
using Content.Server.Nutrition.EntitySystems;
using Content.Shared.Administration;
@@ -58,6 +60,7 @@ namespace Content.Server.Administration.Commands
entMan.GetComponentOrNull<HungerComponent>(targetUid)?.ResetFood();
entMan.GetComponentOrNull<ThirstComponent>(targetUid)?.ResetThirst();
// TODO holy shit make this an event my man!
EntitySystem.Get<StatusEffectsSystem>().TryRemoveAllStatusEffects(target);
if (entMan.TryGetComponent(target, out FlammableComponent? flammable))
@@ -75,6 +78,13 @@ namespace Content.Server.Administration.Commands
EntitySystem.Get<CreamPieSystem>().SetCreamPied(target, creamPied, false);
}
if (entMan.TryGetComponent(target, out BloodstreamComponent? bloodStream))
{
var sys = EntitySystem.Get<BloodstreamSystem>();
sys.TryModifyBleedAmount(target, -bloodStream.BleedAmount, bloodStream);
sys.TryModifyBloodLevel(target, bloodStream.BloodSolution.AvailableVolume, bloodStream);
}
if (entMan.HasComponent<JitteringComponent>(target))
{
entMan.RemoveComponent<JitteringComponent>(target);