@@ -87,6 +87,13 @@ namespace Content.Server.Zombies
|
||||
private void OnPendingMapInit(EntityUid uid, IncurableZombieComponent component, MapInitEvent args)
|
||||
{
|
||||
_actions.AddAction(uid, ref component.Action, component.ZombifySelfActionPrototype);
|
||||
|
||||
if (HasComp<ZombieComponent>(uid) || HasComp<ZombieImmuneComponent>(uid))
|
||||
return;
|
||||
|
||||
EnsureComp<PendingZombieComponent>(uid, out PendingZombieComponent pendingComp);
|
||||
|
||||
pendingComp.GracePeriod = _random.Next(pendingComp.MinInitialInfectedGrace, pendingComp.MaxInitialInfectedGrace);
|
||||
}
|
||||
|
||||
private void OnPendingMapInit(EntityUid uid, PendingZombieComponent component, MapInitEvent args)
|
||||
@@ -98,7 +105,6 @@ namespace Content.Server.Zombies
|
||||
}
|
||||
|
||||
component.NextTick = _timing.CurTime + TimeSpan.FromSeconds(1f);
|
||||
component.GracePeriod = _random.Next(component.MinInitialInfectedGrace, component.MaxInitialInfectedGrace);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
@@ -17,7 +17,7 @@ public sealed partial class PendingZombieComponent : Component
|
||||
{
|
||||
DamageDict = new ()
|
||||
{
|
||||
{ "Poison", 0.2 },
|
||||
{ "Poison", 0.4 },
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
damage:
|
||||
types:
|
||||
Heat: -0.07
|
||||
Poison: -0.2
|
||||
Poison: -0.2 # needs to be less than the PendingZombieComponent does or they never become zombies by the disease.
|
||||
groups:
|
||||
Brute: -0.07
|
||||
- type: DamageVisuals
|
||||
|
||||
Reference in New Issue
Block a user