-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zombie Rework & Polymorph Expansion (#8413)
Co-authored-by: Kara <[email protected]> Co-authored-by: metalgearsloth <[email protected]>
- Loading branch information
1 parent
a45529d
commit 63fd01f
Showing
30 changed files
with
485 additions
and
422 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
Content.Server/Disease/Components/DiseaseBuildupComponent.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using JetBrains.Annotations; | ||
using Content.Shared.Disease; | ||
|
||
namespace Content.Server.Disease.Effects | ||
{ | ||
/// <summary> | ||
/// Adds a component to the diseased entity | ||
/// </summary> | ||
[UsedImplicitly] | ||
public sealed class DiseaseAddComponent : DiseaseEffect | ||
{ | ||
/// <summary> | ||
/// The component that is added at the end of build up | ||
/// </summary> | ||
[DataField("comp")] | ||
public string? Comp = null; | ||
|
||
public override void Effect(DiseaseEffectArgs args) | ||
{ | ||
if (Comp == null) | ||
return; | ||
|
||
EntityUid uid = args.DiseasedEntity; | ||
var newComponent = (Component) IoCManager.Resolve<IComponentFactory>().GetComponent(Comp); | ||
newComponent.Owner = uid; | ||
if (!args.EntityManager.HasComponent(uid, newComponent.GetType())) | ||
args.EntityManager.AddComponent(uid, newComponent); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
Content.Server/Disease/Zombie/Components/DiseaseZombieComponent.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.