Skip to content

Commit

Permalink
фикс ног и иконок (#986)
Browse files Browse the repository at this point in the history
Co-authored-by: Vigers Ray <[email protected]>
  • Loading branch information
babaevlsdd and VigersRay authored Dec 31, 2024
1 parent 7e47cd1 commit 784703d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Content.Server/_Sunrise/FleshCult/FleshCultistSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,15 @@ private void OnStartup(EntityUid uid, FleshCultistComponent component, Component
RemComp<ThirstComponent>(uid);

_tagSystem.AddTag(uid, "Flesh");

if (TryComp<HumanoidAppearanceComponent>(uid, out var appearance))
{
appearance.HideLayersOnEquip.Add(HumanoidVisualLayers.RLeg);
appearance.HideLayersOnEquip.Add(HumanoidVisualLayers.LLeg);
appearance.HideLayersOnEquip.Add(HumanoidVisualLayers.RFoot);
appearance.HideLayersOnEquip.Add(HumanoidVisualLayers.LFoot);
Dirty(uid, appearance);
}
}

private void OnInsulatedImmunityMutation(EntityUid uid, FleshCultistComponent component,
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/_Sunrise/FleshCult/FleshCultistComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public sealed partial class FleshCultistComponent : Component
[ViewVariables] public float AccumulatorStarveNotify = 0;

[DataField("fleshStatusIcon")]
public ProtoId<StatusIconPrototype> StatusIcon { get; set; } = "FleshFaction";
public ProtoId<FactionIconPrototype> StatusIcon { get; set; } = "FleshFaction";

[DataField]
public ProtoId<AlertPrototype> MutationPointAlert = "MutationPoint";
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/_Sunrise/FleshCult/FleshMobComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public sealed partial class FleshMobComponent : Component
public int DeathMobSpawnCount;

[DataField("fleshStatusIcon")]
public ProtoId<StatusIconPrototype> StatusIcon { get; set; } = "FleshFaction";
public ProtoId<FactionIconPrototype> StatusIcon { get; set; } = "FleshFaction";

public bool IsDeath = false;
}
Expand Down
6 changes: 3 additions & 3 deletions Resources/Prototypes/_Sunrise/FleshCult/body_mods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
collection: FootstepSpiderLegs
params:
volume: 10
- type: HideLayerClothingComponent
- type: HideLayerClothing
slots:
- LFoot
- RFoot
- LLeg
- LFoot
- RLeg
- LLeg

- type: entity
categories: [ HideSpawnMenu ]
Expand Down

0 comments on commit 784703d

Please sign in to comment.