Fix/Addition - Wizard Survivor Antag Status (#35226)

This commit is contained in:
keronshb
2025-02-23 12:24:36 -05:00
committed by GitHub
parent 326bd7f93a
commit 3192914fc5
15 changed files with 246 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ using Content.Shared.Prying.Components;
using Content.Shared.Traits.Assorted;
using Robust.Shared.Audio.Systems;
using Content.Shared.Ghost.Roles.Components;
using Content.Shared.Tag;
namespace Content.Server.Zombies;
@@ -58,6 +59,7 @@ public sealed partial class ZombieSystem
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeedModifier = default!;
[Dependency] private readonly NPCSystem _npc = default!;
[Dependency] private readonly SharedRoleSystem _roles = default!;
[Dependency] private readonly TagSystem _tag = default!;
/// <summary>
/// Handles an entity turning into a zombie when they die or go into crit
@@ -275,5 +277,9 @@ public sealed partial class ZombieSystem
RaiseLocalEvent(target, ref ev, true);
//zombies get slowdown once they convert
_movementSpeedModifier.RefreshMovementSpeedModifiers(target);
//Need to prevent them from getting an item, they have no hands.
// Also prevents them from becoming a Survivor. They're undead.
_tag.AddTag(target, "InvalidForGlobalSpawnSpell");
}
}