Fix some damagestatevisuals (#15674)

This commit is contained in:
metalgearsloth
2023-04-23 14:29:56 +10:00
committed by GitHub
parent 1d459b636c
commit eabbfefdd2
6 changed files with 1 additions and 51 deletions

View File

@@ -20,16 +20,6 @@ public sealed class DamageStateVisualizerSystem : VisualizerSystem<DamageStateVi
return;
}
if (component.Rotate)
{
sprite.NoRotation = data switch
{
MobState.Critical => false,
MobState.Dead => false,
_ => true
};
}
// Brain no worky rn so this was just easier.
foreach (var key in new []{ DamageStateVisualLayers.Base, DamageStateVisualLayers.BaseUnshaded })
{

View File

@@ -8,11 +8,6 @@ public sealed class DamageStateVisualsComponent : Component
public int? OriginalDrawDepth;
[DataField("states")] public Dictionary<MobState, Dictionary<DamageStateVisualLayers, string>> States = new();
/// <summary>
/// Should noRot be turned off when crit / dead.
/// </summary>
[DataField("rotate")] public bool Rotate;
}
public enum DamageStateVisualLayers : byte