Fix initial infected transformation (#19735)
This commit is contained in:
parent
de9354a562
commit
cc5e185c6e
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
using Content.Shared.Roles;
|
||||
|
||||
namespace Content.Server.Roles;
|
||||
|
||||
[RegisterComponent]
|
||||
public sealed partial class InitialInfectedRoleComponent : AntagonistRoleComponent
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -9,6 +9,7 @@ public sealed class RoleSystem : SharedRoleSystem
|
|||
// TODO make roles entities
|
||||
base.Initialize();
|
||||
|
||||
SubscribeAntagEvents<InitialInfectedRoleComponent>();
|
||||
SubscribeAntagEvents<NukeopsRoleComponent>();
|
||||
SubscribeAntagEvents<SubvertedSiliconRoleComponent>();
|
||||
SubscribeAntagEvents<TraitorRoleComponent>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue