Fix initial infected transformation (#19735)

This commit is contained in:
Nemanja
2023-09-08 17:29:49 -04:00
committed by GitHub
parent de9354a562
commit cc5e185c6e
3 changed files with 11 additions and 1 deletions

View File

@@ -318,7 +318,7 @@ public sealed class ZombieRuleSystem : GameRuleSystem<ZombieRuleComponent>
totalInfected++;
_roles.MindAddRole(mindId, new ZombieRoleComponent { PrototypeId = component.PatientZeroPrototypeId });
_roles.MindAddRole(mindId, new InitialInfectedRoleComponent { PrototypeId = component.PatientZeroPrototypeId });
var pending = EnsureComp<PendingZombieComponent>(ownedEntity);
pending.GracePeriod = _random.Next(component.MinInitialInfectedGrace, component.MaxInitialInfectedGrace);