* fixes blood packs
* fix 2.0!
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;
damageContainer: Biological
damage:
types:
- bloodloss: -0.5 #minor bleed rate reduction.
+ Bloodloss: -0.5 #lowers bloodloss damage
ModifyBloodLevel: 15 #restores about 5% blood per use on standard humanoids.
healingBeginSound:
path: "/Audio/Items/Medical/brutepack_begin.ogg"