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:
@@ -258,7 +258,7 @@ namespace Content.Server.Zombies
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_random.Prob(GetZombieInfectionChance(entity, component)))
|
||||
if (!HasComp<ZombieImmuneComponent>(entity) && _random.Prob(GetZombieInfectionChance(entity, component)))
|
||||
{
|
||||
var pending = EnsureComp<PendingZombieComponent>(entity);
|
||||
pending.MaxInfectionLength = _random.NextFloat(0.25f, 1.0f) * component.ZombieInfectionTurnTime;
|
||||
@@ -301,6 +301,7 @@ namespace Content.Server.Zombies
|
||||
_humanoidSystem.SetBaseLayerId(target, layer, info.ID);
|
||||
}
|
||||
_humanoidSystem.SetSkinColor(target, zombiecomp.BeforeZombifiedSkinColor);
|
||||
_bloodstream.ChangeBloodReagent(target, zombiecomp.BeforeZombifiedBloodReagent);
|
||||
|
||||
MetaData(target).EntityName = zombiecomp.BeforeZombifiedEntityName;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user