- fix: felinids layouts
This commit is contained in:
@@ -26,8 +26,8 @@ public sealed partial class HoleComponent : Component
|
||||
// this shit just for sprite prefix like state: dildo_FRONT
|
||||
[DataField] public List<HolePrefix> Prefixes = new();
|
||||
|
||||
[ViewVariables] public bool IsExcited = false;
|
||||
[DataField] public bool IsMainOrgan = false;
|
||||
[ViewVariables(VVAccess.ReadWrite)] public bool IsExcited = false;
|
||||
[DataField] public bool IsMainHole = false;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable, DataDefinition]
|
||||
@@ -49,3 +49,16 @@ public enum HoleType : byte
|
||||
Flat,
|
||||
Mother
|
||||
}
|
||||
|
||||
[Serializable,NetSerializable]
|
||||
public sealed partial class HoleComponentState : ComponentState
|
||||
{
|
||||
public readonly NetEntity? Parent;
|
||||
public readonly bool IsExcited;
|
||||
|
||||
public HoleComponentState(NetEntity? parent, bool isExcited)
|
||||
{
|
||||
Parent = parent;
|
||||
IsExcited = isExcited;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ public sealed partial class HoleContainerComponent : Component
|
||||
{
|
||||
public const string SlotName = "Funny";
|
||||
[ViewVariables] public Container Slot = default!;
|
||||
[ViewVariables] public NetEntity? MainHole;
|
||||
[DataField] public List<EntProtoId> HolePrototypes = new();
|
||||
[DataField] public bool UseHumanGenitalLayers = false;
|
||||
}
|
||||
|
||||
@@ -40,6 +40,9 @@ public abstract partial class SharedHoleSystem
|
||||
|
||||
component.Layers[0].Color = color;
|
||||
|
||||
if (component.IsMainHole)
|
||||
entity.Comp.MainHole = GetNetEntity(spawned);
|
||||
|
||||
_containerSystem.Insert(spawned, entity.Comp.Slot);
|
||||
Dirty(entity);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared._Amour.Hole;
|
||||
|
||||
@@ -25,5 +26,14 @@ public abstract partial class SharedHoleSystem : EntitySystem
|
||||
{
|
||||
if(!Resolve(entity.Owner,ref entity.Comp)) return;
|
||||
entity.Comp.IsExcited = value;
|
||||
Dirty(entity);
|
||||
}
|
||||
|
||||
public void ExideEntity(Entity<HoleContainerComponent?> entity, bool value = true)
|
||||
{
|
||||
if (Resolve(entity,ref entity.Comp) && entity.Comp.MainHole != null)
|
||||
{
|
||||
Exide(GetEntity(entity.Comp.MainHole.Value), value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user