Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respace Species Code #3

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the Felinids folder to Felinid

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Shared.Nyanotrasen.Item.PseudoItem;
using Content.Shared.Species.Felinids.Systems;

namespace Content.Client.Nyanotrasen.Item.PseudoItem;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Client.DeltaV.Harpy;
namespace Content.Client.Species.Harpy.Components;

[RegisterComponent]
public sealed partial class HarpyVisualsComponent : Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Robust.Shared.Prototypes;
using Content.Shared.Abilities;

namespace Content.Client.DeltaV.Overlays;
namespace Content.Client.Species.Harpy.Systems;

public sealed partial class UltraVisionOverlay : Overlay
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Robust.Client.Graphics;
using Robust.Shared.Configuration;

namespace Content.Client.DeltaV.Overlays;
namespace Content.Client.Species.Harpy.Systems;

public sealed partial class UltraVisionSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using Robust.Client.Player;
using Robust.Shared.Enums;
using Robust.Shared.Prototypes;
using Content.Shared.Abilities;
using Content.Shared.Species.Vulpkanin.Components;

namespace Content.Client.Nyanotrasen.Overlays;
namespace Content.Client.Species.Vulpkanin.Systems;

public sealed partial class DogVisionOverlay : Overlay
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Content.Shared.Abilities;
using Content.Shared.Species.Vulpkanin.Components;
using Content.Shared.DeltaV.CCVars;
using Robust.Client.Graphics;
using Robust.Shared.Configuration;

namespace Content.Client.Nyanotrasen.Overlays;
namespace Content.Client.Species.Vulpkanin.Systems;

public sealed partial class DogVisionSystem : EntitySystem
{
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Radio/EntitySystems/RadioSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Content.Server.Chat.Systems;
using Content.Server.Power.Components;
using Content.Server.Radio.Components;
using Content.Server.Species.Harpy.Components;
using Content.Server.VoiceMask;
using Content.Shared.Chat;
using Content.Shared.Database;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Content.Server.Mind;
using Content.Shared.Species.Components;
using Content.Shared.Species.Diona.Components;
using Content.Shared.Body.Events;
using Content.Shared.Zombies;
using Content.Server.Zombies;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;

namespace Content.Server.Species.Systems;
namespace Content.Server.Species.Diona.Systems;

public sealed partial class NymphSystem : EntitySystem
{
Expand Down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the Felinids folder to Felinid

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.Abilities.Felinid;
namespace Content.Server.Species.Felinids.Components;

[RegisterComponent]
public sealed partial class CoughingUpHairballComponent : Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Content.Shared.Actions;
using Robust.Shared.Utility;

namespace Content.Server.Abilities.Felinid;
namespace Content.Server.Species.Felinids.Components;

[RegisterComponent]
public sealed partial class FelinidComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.Abilities.Felinid;
namespace Content.Server.Species.Felinids.Components;

[RegisterComponent]
public sealed partial class FelinidFoodComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.Abilities.Felinid;
namespace Content.Server.Species.Felinids.Components;

[RegisterComponent]
public sealed partial class HairballComponent : Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@
using Content.Shared.IdentityManagement;
using Content.Shared.Nutrition.Components;
using Content.Shared.Nutrition.EntitySystems;
using Content.Shared.Species.Felinids.Systems;
using Content.Server.Body.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Server.Medical;
using Content.Server.Nutrition.EntitySystems;
using Content.Server.Nutrition.Components;
using Content.Server.Chemistry.EntitySystems;
using Content.Server.Popups;
using Content.Server.Species.Felinids.Components;
using Content.Shared.Chemistry.EntitySystems;
using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Player;
using Robust.Shared.Random;
using Robust.Shared.Prototypes;

namespace Content.Server.Abilities.Felinid;
namespace Content.Server.Species.Felinids.Systems;

public sealed partial class FelinidSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
using Content.Shared.DoAfter;
using Content.Shared.IdentityManagement;
using Content.Shared.Item;
using Content.Shared.Item.PseudoItem;
using Content.Shared.Nyanotrasen.Item.PseudoItem;
using Content.Shared.Species.Felinids.Components;
using Content.Shared.Species.Felinids.Systems;
using Content.Shared.Storage;
using Content.Shared.Tag;
using Content.Shared.Verbs;

namespace Content.Server.Nyanotrasen.Item.PseudoItem;
namespace Content.Server.Species.Felinids.Systems;

public sealed class PseudoItemSystem : SharedPseudoItemSystem
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.VoiceMask;
namespace Content.Server.Species.Harpy.Components;

[RegisterComponent]
public sealed partial class SyrinxVoiceMaskComponent : Component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
using Robust.Server.GameObjects;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
using Content.Shared.DeltaV.Harpy.Components;
using Content.Shared.Species.Harpy.Components;

namespace Content.Server.DeltaV.Harpy
namespace Content.Server.Species.Harpy.Systems
{
public sealed class HarpySingerSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using Content.Server.Administration.Logs;
using Content.Server.Chat.Systems;
using Content.Server.Implants;
using Content.Server.Popups;
using Content.Server.VoiceMask;
using Content.Server.Species.Harpy.Components;
using Content.Shared.Database;
using Content.Shared.Implants;
using Content.Shared.Implants.Components;
Expand All @@ -12,7 +14,7 @@
using Robust.Server.GameObjects;
using Robust.Shared.Containers;

namespace Content.Server.Implants;
namespace Content.Server.Species.Harpy.Systems;

public sealed class SubdermalBionicSyrinxImplantSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Content.Server.Abilities.Oni
namespace Content.Server.Species.Oni.Components
{
[RegisterComponent]
public sealed partial class HeldByOniComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Shared.Damage;

namespace Content.Server.Abilities.Oni
namespace Content.Server.Species.Oni.Components
{
[RegisterComponent]
public sealed partial class OniComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
using Content.Server.Species.Oni.Components;
using Content.Server.Tools;
using Content.Server.Weapons.Ranged.Systems;
using Content.Shared.Tools.Components;
using Content.Shared.Damage.Events;
using Content.Shared.Nyanotrasen.Abilities.Oni;
using Content.Shared.Species.Oni.Systems;
using Content.Shared.Weapons.Melee.Events;
using Content.Shared.Weapons.Ranged.Components;
using Robust.Shared.Containers;

namespace Content.Server.Abilities.Oni
namespace Content.Server.Species.Oni.Systems
{
public sealed class OniSystem : SharedOniSystem
{
Expand Down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is used by things other than Arachne, put it back

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using System.Linq;
using Content.Server.Popups;
using Content.Shared.Spider;
using Content.Shared.Species.Spider.Components;
using Content.Shared.Species.Spider.Systems;
using Content.Shared.Maps;
using Robust.Server.GameObjects;
using Robust.Shared.Map;

namespace Content.Server.Spider;
namespace Content.Server.Species.Spider.Systems;

public sealed class SpiderSystem : SharedSpiderSystem
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Item/ItemComponent.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Shared.Hands.Components;
using Content.Shared.Nyanotrasen.Item.PseudoItem;
using Content.Shared.Species.Felinids.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Robust.Shared.Prototypes;
using Robust.Shared.GameStates;

namespace Content.Shared.Species.Components;
namespace Content.Shared.Species.Diona.Components;
/// <summary>
/// This will replace one entity with another entity when it is removed from a body part.
/// Obviously hyper-specific. If you somehow find another use for this, good on you.
/// Obviously hyper-specific. If you somehow find another use for this, good on you.
/// </summary>

[RegisterComponent, NetworkedComponent]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.GameStates;

namespace Content.Shared.Species.Components;
namespace Content.Shared.Species.Diona.Components;

[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
public sealed partial class ReformComponent : Component
Expand All @@ -13,7 +13,7 @@ public sealed partial class ReformComponent : Component
[DataField(required: true)]
public EntProtoId ActionPrototype = default!;

[DataField, AutoNetworkedField]
[DataField, AutoNetworkedField]
public EntityUid? ActionEntity;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Shared.Species.Components;
using Content.Shared.Species.Diona.Components;
using Content.Shared.Actions;
using Content.Shared.DoAfter;
using Content.Shared.Popups;
Expand All @@ -10,7 +10,7 @@
using Robust.Shared.Serialization;
using Robust.Shared.Timing;

namespace Content.Shared.Species;
namespace Content.Shared.Species.Diona.Systems;

public sealed partial class ReformSystem : EntitySystem
{
Expand Down Expand Up @@ -89,7 +89,7 @@ private void OnDoAfter(EntityUid uid, ReformComponent comp, ReformDoAfterEvent a
return;

// Spawn a new entity
// This is, to an extent, taken from polymorph. I don't use polymorph for various reasons- most notably that this is permanent.
// This is, to an extent, taken from polymorph. I don't use polymorph for various reasons- most notably that this is permanent.
var child = Spawn(comp.ReformPrototype, Transform(uid).Coordinates);

// This transfers the mind to the new entity
Expand All @@ -105,8 +105,8 @@ private void OnZombified(EntityUid uid, ReformComponent comp, ref EntityZombifie
_actionsSystem.RemoveAction(uid, comp.ActionEntity); // Zombies can't reform
}

public sealed partial class ReformEvent : InstantActionEvent { }
public sealed partial class ReformEvent : InstantActionEvent { }

[Serializable, NetSerializable]
public sealed partial class ReformDoAfterEvent : SimpleDoAfterEvent { }
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Item;
using Robust.Shared.Prototypes;

namespace Content.Shared.Nyanotrasen.Item.PseudoItem;
namespace Content.Shared.Species.Felinids.Components;

/// <summary>
/// For entities that behave like an item under certain conditions,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Content.Shared.Actions;

namespace Content.Shared.Species.Felinids.Systems;

public sealed partial class HairballActionEvent : InstantActionEvent {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Robust.Shared.Serialization;
using Content.Shared.DoAfter;

namespace Content.Shared.Item.PseudoItem;
namespace Content.Shared.Species.Felinids.Systems;


[Serializable, NetSerializable]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Content.Shared.Item;
using Content.Shared.Storage;
using Content.Shared.Species.Felinids.Components;

namespace Content.Shared.Nyanotrasen.Item.PseudoItem;
namespace Content.Shared.Species.Felinids.Systems;

/// <summary>
/// Almost all of this is code taken from other systems, but adapted to use PseudoItem.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
using Content.Shared.IdentityManagement;
using Content.Shared.Interaction.Events;
using Content.Shared.Item;
using Content.Shared.Item.PseudoItem;
using Content.Shared.Species.Felinids.Components;
using Content.Shared.Storage;
using Content.Shared.Storage.EntitySystems;
using Content.Shared.Tag;
using Content.Shared.Verbs;
using Robust.Shared.Containers;

namespace Content.Shared.Nyanotrasen.Item.PseudoItem;
namespace Content.Shared.Species.Felinids.Systems;

public abstract partial class SharedPseudoItemSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization;

namespace Content.Shared.DeltaV.Harpy
namespace Content.Shared.Species.Harpy.Components
{
[RegisterComponent, NetworkedComponent]
public sealed partial class HarpySingerComponent : Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.Serialization;

namespace Content.Shared.DeltaV.Harpy.Components
namespace Content.Shared.Species.Harpy.Components
{
[Serializable, NetSerializable]
public enum HarpyVisualLayers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Robust.Shared.Serialization;

namespace Content.Shared.DeltaV.Harpy;
namespace Content.Shared.Species.Harpy.Components;

[Serializable, NetSerializable]
public enum HardsuitWings : byte
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using Content.Shared.Actions;
using Content.Shared.Species.Harpy.Components;

namespace Content.Shared.DeltaV.Harpy
{
public class HarpySingerSystem : EntitySystem
public sealed class HarpySingerSystem : EntitySystem
{
[Dependency] private readonly SharedActionsSystem _actionsSystem = default!;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Content.Shared.Species.Harpy.Components;
using Content.Shared.Inventory.Events;
using Content.Shared.Tag;
using Content.Shared.Humanoid;
Expand Down
Loading
Loading