Ambuzol Plus (#17884)
* Added component and functionality. * Fixed ZombieImmune. * Zombies now have zombie blood. * Ambuzol plus. * Ambuzol plus spawns in bundle. * Fine CBURN get one too. * Reworked the reaction * No more magic blood refilling. * ok CE i fixed it * Component change.
This commit is contained in:
@@ -375,4 +375,22 @@ public sealed class BloodstreamSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Change what someone's blood is made of, on the fly.
|
||||
/// </summary>
|
||||
public void ChangeBloodReagent(EntityUid uid, string reagent, BloodstreamComponent? component = null)
|
||||
{
|
||||
if (!Resolve(uid, ref component, false))
|
||||
return;
|
||||
|
||||
if(reagent == component.BloodReagent)
|
||||
return;
|
||||
|
||||
var currentVolume = component.BloodSolution.Volume;
|
||||
|
||||
component.BloodReagent = reagent;
|
||||
component.BloodSolution.RemoveAllSolution();
|
||||
_solutionContainerSystem.TryAddReagent(uid, component.BloodSolution, component.BloodReagent, currentVolume, out _);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user