-
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.
Revert "Add some shadowkin improvements progress"
This reverts commit a9c37e6.
- Loading branch information
Showing
5 changed files
with
55 additions
and
224 deletions.
There are no files selected for viewing
46 changes: 1 addition & 45 deletions
46
...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,51 +1,7 @@ | ||
using Content.Server.NPC.Components; | ||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List; | ||
|
||
namespace Content.Server.SimpleStation14.Species.Shadowkin.Components; | ||
namespace Content.Server.SimpleStation14.Species.Shadowkin.Components; | ||
|
||
[RegisterComponent] | ||
public sealed partial class ShadowkinDarkSwapPowerComponent : Component | ||
{ | ||
public EntityUid? ActionShadowkinDarkSwap { get; set; } | ||
|
||
/// <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" }; | ||
|
||
/// <summary> | ||
/// If the entity should be sent to the dark | ||
/// </summary> | ||
[DataField("invisible")] | ||
public bool Invisible = true; | ||
|
||
/// <summary> | ||
/// If it should be pacified | ||
/// </summary> | ||
[DataField("pacify")] | ||
public bool Pacify = true; | ||
|
||
/// <summary> | ||
/// If the entity should dim nearby lights when swapped | ||
/// </summary> | ||
[DataField("darken"), ViewVariables(VVAccess.ReadWrite)] | ||
public bool Darken = true; | ||
|
||
/// <summary> | ||
/// How far to dim nearby lights | ||
/// </summary> | ||
[DataField("range"), ViewVariables(VVAccess.ReadWrite)] | ||
public float DarkenRange = 5f; | ||
|
||
/// <summary> | ||
/// How fast to refresh nearby light dimming in seconds | ||
/// Without this performance would be significantly worse | ||
/// </summary> | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
public float DarkenRate = 0.084f; // 1/12th of a second | ||
} |
7 changes: 0 additions & 7 deletions
7
Content.Server/SimpleStation14/Species/Shadowkin/Components/ShadowkinSightComponent.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
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.