Skip to content

Commit

Permalink
Fix Wings sprite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vaketola committed Jan 5, 2024
1 parent 024392c commit fc87717
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Content.Shared/Humanoid/HumanoidVisualLayers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace Content.Shared.Humanoid
[Serializable, NetSerializable]
public enum HumanoidVisualLayers : byte
{
Wings,
Tail,
Hair,
FacialHair,
Expand Down
3 changes: 3 additions & 0 deletions Content.Shared/Humanoid/HumanoidVisualLayersExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static IEnumerable<HumanoidVisualLayers> Sublayers(HumanoidVisualLayers l
break;
case HumanoidVisualLayers.Chest:
yield return HumanoidVisualLayers.Chest;
yield return HumanoidVisualLayers.Wings;
yield return HumanoidVisualLayers.Tail;
break;
default:
Expand All @@ -78,6 +79,8 @@ public static IEnumerable<HumanoidVisualLayers> Sublayers(HumanoidVisualLayers l
return HumanoidVisualLayers.Chest;
case BodyPartType.Tail:
return HumanoidVisualLayers.Tail;
// case BodyPartType.Wings:
// return HumanoidVisualLayers.Wings;
case BodyPartType.Head:
// use the Sublayers method to hide the rest of the parts,
// if that's what you're looking for
Expand Down
2 changes: 2 additions & 0 deletions Content.Shared/Humanoid/Markings/MarkingCategories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public enum MarkingCategories : byte
Chest,
Arms,
Legs,
Wings,
Tail,
Overlay
}
Expand All @@ -39,6 +40,7 @@ public static MarkingCategories FromHumanoidVisualLayers(HumanoidVisualLayers la
HumanoidVisualLayers.RLeg => MarkingCategories.Legs,
HumanoidVisualLayers.LFoot => MarkingCategories.Legs,
HumanoidVisualLayers.RFoot => MarkingCategories.Legs,
HumanoidVisualLayers.Wings => MarkingCategories.Wings,
HumanoidVisualLayers.Tail => MarkingCategories.Tail,
_ => MarkingCategories.Overlay
};
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/Species/human.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
RLeg: MobHumanRLeg
LFoot: MobHumanLFoot
RFoot: MobHumanRFoot
Wings: MobHumanoidAnyMarking
Tail: MobHumanoidAnyMarking # Nyanotrasen - Felinid
HeadTop: MobHumanoidAnyMarking # Nyanotrasen - Felinid & Oni

Expand Down Expand Up @@ -57,6 +58,9 @@
Arms:
points: 2
required: false
Wings:
points: 1
required: false

- type: humanoidBaseSprite
id: MobHumanoidEyes
Expand Down

0 comments on commit fc87717

Please sign in to comment.