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; return;
} }
if (component.Rotate)
{
sprite.NoRotation = data switch
{
MobState.Critical => false,
MobState.Dead => false,
_ => true
};
}
// Brain no worky rn so this was just easier. // Brain no worky rn so this was just easier.
foreach (var key in new []{ DamageStateVisualLayers.Base, DamageStateVisualLayers.BaseUnshaded }) foreach (var key in new []{ DamageStateVisualLayers.Base, DamageStateVisualLayers.BaseUnshaded })
{ {

View File

@@ -8,11 +8,6 @@ public sealed class DamageStateVisualsComponent : Component
public int? OriginalDrawDepth; public int? OriginalDrawDepth;
[DataField("states")] public Dictionary<MobState, Dictionary<DamageStateVisualLayers, string>> States = new(); [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 public enum DamageStateVisualLayers : byte

View File

@@ -1,6 +1,3 @@
# Bounds Guide
#1D2L3U4R
- type: entity - type: entity
name: bat name: bat
parent: SimpleMobBase parent: SimpleMobBase
@@ -103,7 +100,6 @@
excess: 10 excess: 10
- type: Appearance - type: Appearance
- type: DamageStateVisuals - type: DamageStateVisuals
rotate: true
states: states:
Alive: Alive:
Base: 0 Base: 0
@@ -715,14 +711,6 @@
- type: Body - type: Body
prototype: Primate prototype: Primate
requiredLegs: 1 # TODO: More than 1 leg requiredLegs: 1 # TODO: More than 1 leg
- type: DamageStateVisuals
states:
Alive:
Base: monkey
Critical:
Base: dead
Dead:
Base: dead
- type: Appearance - type: Appearance
- type: FireVisuals - type: FireVisuals
sprite: Mobs/Effects/onfire.rsi sprite: Mobs/Effects/onfire.rsi

View File

@@ -255,7 +255,6 @@
baseDecayRate: 0.1 baseDecayRate: 0.1
- type: Appearance - type: Appearance
- type: DamageStateVisuals - type: DamageStateVisuals
rotate: true
states: states:
Alive: Alive:
Base: mouse-3 Base: mouse-3

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 B

View File

@@ -7,31 +7,9 @@
"license": "CC-BY-SA-3.0", "license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/tgstation/tgstation/commit/53d1f1477d22a11a99c6c6924977cd431075761b", "copyright": "Taken from https://github.com/tgstation/tgstation/commit/53d1f1477d22a11a99c6c6924977cd431075761b",
"states": [ "states": [
{
"name": "dead",
"delays": [
[
1
]
]
},
{ {
"name": "monkey", "name": "monkey",
"directions": 4, "directions": 4
"delays": [
[
1
],
[
1
],
[
1
],
[
1
]
]
} }
] ]
} }