[Fix] Blood packs now should actually do something (#15752)

* fixes blood packs

* fix 2.0!
This commit is contained in:
OctoRocket
2023-04-28 09:01:24 -05:00
committed by GitHub
parent 3fc699dc56
commit a71f02e672
2 changed files with 5 additions and 2 deletions

View File

@@ -151,7 +151,10 @@ public sealed class HealingSystem : EntitySystem
if (!TryComp<StackComponent>(uid, out var stack) || stack.Count < 1)
return false;
if (!HasDamage(targetDamage, component))
if (!TryComp<BloodstreamComponent>(target, out var bloodstream))
return false;
if (!HasDamage(targetDamage, component) && !(bloodstream.BloodSolution.Volume < bloodstream.BloodSolution.MaxVolume && component.ModifyBloodLevel > 0))
{
_popupSystem.PopupEntity(Loc.GetString("medical-item-cant-use", ("item", uid)), uid);
return false;