-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
119 additions
and
19 deletions.
There are no files selected for viewing
16 changes: 15 additions & 1 deletion
16
...nt.Server/SimpleStation14/Species/Shadowkin/Components/ShadowkinDarkSwapPowerComponent.cs
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 |
---|---|---|
@@ -1,7 +1,21 @@ | ||
namespace Content.Server.SimpleStation14.Species.Shadowkin.Components; | ||
using Content.Server.NPC.Components; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; | ||
|
||
namespace Content.Server.SimpleStation14.Species.Shadowkin.Components; | ||
|
||
[RegisterComponent] | ||
public sealed partial class ShadowkinDarkSwapPowerComponent : Component | ||
{ | ||
/// <summary> | ||
/// Factions temporarily deleted from the entity while swapped | ||
/// </summary> | ||
public List<string> SuppressedFactions = new(); | ||
|
||
/// <summary> | ||
/// Factions temporarily added to the entity while swapped | ||
/// </summary> | ||
[DataField("factions", customTypeSerializer: typeof(PrototypeIdListSerializer<NpcFactionPrototype>))] | ||
public List<string> AddedFactions = new() { "ShadowkinDarkFriendly" }; | ||
|
||
public EntityUid? ActionShadowkinDarkSwap { get; set; } | ||
} |
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
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,9 @@ | ||
- type: npcFaction | ||
id: ShadowkinDarkHostile | ||
hostile: | ||
- ShadowkinDarkFriendly | ||
|
||
- type: npcFaction | ||
id: ShadowkinDarkFriendly | ||
hostile: | ||
- ShadowkinDarkHostile |