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
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Bounds Guide
|
||||
#1D2L3U4R
|
||||
|
||||
- type: entity
|
||||
name: bat
|
||||
parent: SimpleMobBase
|
||||
@@ -103,7 +100,6 @@
|
||||
excess: 10
|
||||
- type: Appearance
|
||||
- type: DamageStateVisuals
|
||||
rotate: true
|
||||
states:
|
||||
Alive:
|
||||
Base: 0
|
||||
@@ -715,14 +711,6 @@
|
||||
- type: Body
|
||||
prototype: Primate
|
||||
requiredLegs: 1 # TODO: More than 1 leg
|
||||
- type: DamageStateVisuals
|
||||
states:
|
||||
Alive:
|
||||
Base: monkey
|
||||
Critical:
|
||||
Base: dead
|
||||
Dead:
|
||||
Base: dead
|
||||
- type: Appearance
|
||||
- type: FireVisuals
|
||||
sprite: Mobs/Effects/onfire.rsi
|
||||
|
||||
@@ -255,7 +255,6 @@
|
||||
baseDecayRate: 0.1
|
||||
- type: Appearance
|
||||
- type: DamageStateVisuals
|
||||
rotate: true
|
||||
states:
|
||||
Alive:
|
||||
Base: mouse-3
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 348 B |
@@ -7,31 +7,9 @@
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from https://github.com/tgstation/tgstation/commit/53d1f1477d22a11a99c6c6924977cd431075761b",
|
||||
"states": [
|
||||
{
|
||||
"name": "dead",
|
||||
"delays": [
|
||||
[
|
||||
1
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "monkey",
|
||||
"directions": 4,
|
||||
"delays": [
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
],
|
||||
[
|
||||
1
|
||||
]
|
||||
]
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user