mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 08:37:48 +03:00
# Description This PR brings back a previous briefly existing feature, that of the NormalVisionComponent, which now exists as a single point positive trait that can be taken only by Harpies and Vulpkanin(A list to later be expanded if we ever get new species that have modified vision types). This trait is called "Trichromat Modification", and it simply removes any species based vision modifications an entity may have, such as Ultraviolet Vision. 🆑 - add: Trichromat Modification has been added as a new positive trait. It can be taken by Harpies and Vulpkanin to buy off their unique vision negative traits. Signed-off-by: VMSolidus <evilexecutive@gmail.com>
24 lines
627 B
C#
24 lines
627 B
C#
using Content.Shared.Abilities;
|
|
using Content.Shared.Traits.Assorted.Components;
|
|
|
|
namespace Content.Shared.Traits.Assorted.Systems;
|
|
|
|
/// <summary>
|
|
/// This handles removing species-specific vision traits.
|
|
/// </summary>
|
|
public sealed class NormalVisionSystem : EntitySystem
|
|
{
|
|
/// <inheritdoc/>
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<NormalVisionComponent, ComponentInit>(OnStartup);
|
|
}
|
|
|
|
|
|
private void OnStartup(EntityUid uid, NormalVisionComponent component, ComponentInit args)
|
|
{
|
|
RemComp<DogVisionComponent>(uid);
|
|
RemComp<UltraVisionComponent>(uid);
|
|
}
|
|
}
|