Fixes Romerol & Corpium, Small Zombie Tweaks (#17784)
* Fixed romerol and corpium. * Tweaked zombie values. * Change guidebook descriptions. * Fixed corpium, added reagent requirements. * Readded zombie bundle to uplink. * Edited description
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
using Robust.Shared.Configuration;
|
||||
using Content.Server.Zombies;
|
||||
|
||||
|
||||
namespace Content.Server.Chemistry.ReagentEffects;
|
||||
|
||||
public sealed class CauseZombieInfection : ReagentEffect
|
||||
{
|
||||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||
=> Loc.GetString("reagent-effect-guidebook-cause-zombie-infection", ("chance", Probability));
|
||||
|
||||
// Adds the Zombie Infection Components
|
||||
public override void Effect(ReagentEffectArgs args)
|
||||
{
|
||||
var entityManager = args.EntityManager;
|
||||
entityManager.EnsureComponent<ZombifyOnDeathComponent>(args.SolutionEntity);
|
||||
entityManager.EnsureComponent<PendingZombieComponent>(args.SolutionEntity);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
using Robust.Shared.Configuration;
|
||||
using Content.Server.Zombies;
|
||||
|
||||
|
||||
namespace Content.Server.Chemistry.ReagentEffects;
|
||||
|
||||
public sealed class CureZombieInfection : ReagentEffect
|
||||
{
|
||||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||
=> 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;
|
||||
entityManager.RemoveComponent<ZombifyOnDeathComponent>(args.SolutionEntity);
|
||||
entityManager.RemoveComponent<PendingZombieComponent>(args.SolutionEntity);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user