Fix some damagestatevisuals (#15674)
This commit is contained in:
@@ -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 })
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user