Fix sprite of newly-spawned empty power cells (#14254)

* Overwrite inherited Sprite layers to exclude the full-charge light.

* Include unshaded layer with visible set to false
This commit is contained in:
h3half
2023-02-28 10:57:17 -05:00
committed by GitHub
parent 0dbccbb582
commit 796bff4099

View File

@@ -68,6 +68,14 @@
suffix: Empty suffix: Empty
parent: PowerCellSmall parent: PowerCellSmall
components: components:
- type: Sprite
layers:
- map: [ "enum.PowerCellVisualLayers.Base" ]
state: small
- map: [ "enum.PowerCellVisualLayers.Unshaded" ]
state: o2
shader: unshaded
visible: false
- type: Battery - type: Battery
maxCharge: 360 maxCharge: 360
startingCharge: 0 startingCharge: 0
@@ -95,6 +103,14 @@
suffix: Empty suffix: Empty
parent: PowerCellMedium parent: PowerCellMedium
components: components:
- type: Sprite
layers:
- map: [ "enum.PowerCellVisualLayers.Base" ]
state: medium
- map: [ "enum.PowerCellVisualLayers.Unshaded" ]
state: o2
shader: unshaded
visible: false
- type: Battery - type: Battery
maxCharge: 720 maxCharge: 720
startingCharge: 0 startingCharge: 0
@@ -122,6 +138,14 @@
suffix: Empty suffix: Empty
parent: PowerCellHigh parent: PowerCellHigh
components: components:
- type: Sprite
layers:
- map: [ "enum.PowerCellVisualLayers.Base" ]
state: high
- map: [ "enum.PowerCellVisualLayers.Unshaded" ]
state: o2
shader: unshaded
visible: false
- type: Battery - type: Battery
maxCharge: 1080 maxCharge: 1080
startingCharge: 0 startingCharge: 0
@@ -149,6 +173,14 @@
suffix: Empty suffix: Empty
parent: PowerCellHyper parent: PowerCellHyper
components: components:
- type: Sprite
layers:
- map: [ "enum.PowerCellVisualLayers.Base" ]
state: hyper
- map: [ "enum.PowerCellVisualLayers.Unshaded" ]
state: o2
shader: unshaded
visible: false
- type: Battery - type: Battery
maxCharge: 1800 maxCharge: 1800
startingCharge: 0 startingCharge: 0