Make Zombie, Initial Infected fix (#26665)

Make zombie fix
This commit is contained in:
Wrexbe (Josh)
2024-04-04 01:37:50 -07:00
committed by GitHub
parent 827cd0f6e5
commit d9c1130d8c

View File

@@ -293,6 +293,7 @@ public sealed class ZombieRuleSystem : GameRuleSystem<ZombieRuleComponent>
//Add the role to the mind silently (to avoid repeating job assignment)
_roles.MindAddRole(mind, new InitialInfectedRoleComponent { PrototypeId = component.PatientZeroPrototypeId }, silent: true);
EnsureComp<InitialInfectedComponent>(entity);
//Add the zombie components and grace period
var pending = EnsureComp<PendingZombieComponent>(entity);