forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc900be
commit 3ed6a52
Showing
15 changed files
with
139 additions
and
24 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
Content.Client/SS220/CultYogg/MiGo/CultYoggHealVisualizerSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using Content.Shared.SS220.CultYogg.MiGo; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.SS220.CultYogg.MiGo; | ||
|
||
/// <summary> | ||
/// </summary> | ||
public sealed class CultYoggHealVisualizerSystem : VisualizerSystem<CultYoggHealComponent> | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<CultYoggHealComponent, ComponentInit>(OnComponentInit); | ||
SubscribeLocalEvent<CultYoggHealComponent, ComponentShutdown>(OnShutdown); | ||
} | ||
|
||
private void OnShutdown(Entity<CultYoggHealComponent> uid, ref ComponentShutdown args) | ||
{ | ||
// Need LayerMapTryGet because Init fails if there's no existing sprite / appearancecomp | ||
// which means in some setups (most frequently no AppearanceComp) the layer never exists. | ||
if (TryComp<SpriteComponent>(uid, out var sprite) && | ||
sprite.LayerMapTryGet(HealVisualLayers.Particles, out var layer)) | ||
{ | ||
sprite.RemoveLayer(layer); | ||
} | ||
} | ||
|
||
private void OnComponentInit(Entity<CultYoggHealComponent> uid, ref ComponentInit args) | ||
{ | ||
if (!TryComp<SpriteComponent>(uid, out var sprite) || !TryComp(uid, out AppearanceComponent? appearance)) | ||
return; | ||
|
||
sprite.LayerMapReserveBlank(HealVisualLayers.Particles); | ||
sprite.LayerSetVisible(HealVisualLayers.Particles, true); | ||
sprite.LayerSetShader(HealVisualLayers.Particles, "unshaded"); | ||
|
||
if (uid.Comp.Sprite != null) | ||
{ | ||
sprite.LayerSetRSI(HealVisualLayers.Particles, uid.Comp.Sprite.RsiPath); | ||
sprite.LayerSetState(HealVisualLayers.Particles, uid.Comp.Sprite.RsiState); | ||
} | ||
} | ||
} | ||
|
||
public enum HealVisualLayers : byte | ||
{ | ||
Particles | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.4 KB
Resources/Textures/SS220/Effects/cult_yogg_healing.rsi/healingEffect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions
49
Resources/Textures/SS220/Effects/cult_yogg_healing.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"version": 1, | ||
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt", | ||
"copyright": "Made by ci24v3n for SS220", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "healingEffect", | ||
"directions": 4, | ||
"delays": [ | ||
[ | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15 | ||
], | ||
[ | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15 | ||
], | ||
[ | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15 | ||
], | ||
[ | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15, | ||
0.15 | ||
] | ||
] | ||
} | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
Resources/Textures/SS220/Structures/CultYogg/yoggaltar.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
Resources/Textures/SS220/Structures/CultYogg/yoggpod.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
Resources/Textures/SS220/Structures/CultYogg/yoggpond.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": 1, | ||
"license": "EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt", | ||
"copyright": "From plagexx for 220 with love", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "pond" | ||
} | ||
] | ||
} |
Binary file added
BIN
+1009 Bytes
Resources/Textures/SS220/Structures/CultYogg/yoggpond.rsi/pond.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.