Zombie Mode 𝓡𝓮𝓭𝓾𝔁 (#18199)
* zombie mode redux * the great zombie changes * fix this * 65 down to 50 * empty * Changes to address stalling * make zombie nukies no longer nukies * actually work
This commit is contained in:
@@ -9,24 +9,28 @@ namespace Content.Server.Chemistry.ReagentEffects;
|
||||
public sealed class CureZombieInfection : ReagentEffect
|
||||
{
|
||||
[DataField("innoculate")]
|
||||
public bool innoculate = false;
|
||||
public bool Innoculate;
|
||||
|
||||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||
{
|
||||
if(innoculate == true)
|
||||
return Loc.GetString("reagent-effect-guidebook-innoculate-zombie-infection", ("chance", Probability));
|
||||
|
||||
return Loc.GetString("reagent-effect-guidebook-cure-zombie-infection", ("chance", Probability));
|
||||
if(Innoculate)
|
||||
return Loc.GetString("reagent-effect-guidebook-innoculate-zombie-infection", ("chance", Probability));
|
||||
|
||||
return Loc.GetString("reagent-effect-guidebook-cure-zombie-infection", ("chance", Probability));
|
||||
}
|
||||
|
||||
// Removes the Zombie Infection Components
|
||||
public override void Effect(ReagentEffectArgs args)
|
||||
{
|
||||
var entityManager = args.EntityManager;
|
||||
if (entityManager.HasComponent<IncurableZombieComponent>(args.SolutionEntity))
|
||||
return;
|
||||
|
||||
entityManager.RemoveComponent<ZombifyOnDeathComponent>(args.SolutionEntity);
|
||||
entityManager.RemoveComponent<PendingZombieComponent>(args.SolutionEntity);
|
||||
|
||||
if (innoculate == true) {
|
||||
if (Innoculate)
|
||||
{
|
||||
entityManager.EnsureComponent<ZombieImmuneComponent>(args.SolutionEntity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user