Renames phoron to plasma everywhere in the codebase and replaces sprites. (#3110)

This commit is contained in:
Vera Aguilera Puerto
2021-02-09 19:05:19 +01:00
committed by GitHub
parent 2d06990ee3
commit 9b1142973e
75 changed files with 154 additions and 129 deletions

View File

@@ -19,7 +19,7 @@ namespace Content.Client.GameObjects.Components.Power
private Animation _insertingMetalAnimation;
private Animation _insertingGlassAnimation;
private Animation _insertingGoldAnimation;
private Animation _insertingPhoronAnimation;
private Animation _insertingPlasmaAnimation;
public override void LoadData(YamlMappingNode node)
{
@@ -29,7 +29,7 @@ namespace Content.Client.GameObjects.Components.Power
_insertingMetalAnimation = PopulateAnimation("protolathe_metal", 0.9f);
_insertingGlassAnimation = PopulateAnimation("protolathe_glass", 0.9f);
_insertingGoldAnimation = PopulateAnimation("protolathe_gold", 0.9f);
_insertingPhoronAnimation = PopulateAnimation("protolathe_phoron", 0.9f);
_insertingPlasmaAnimation = PopulateAnimation("protolathe_plasma", 0.9f);
}
private Animation PopulateAnimation(string sprite, float length)
@@ -99,10 +99,10 @@ namespace Content.Client.GameObjects.Components.Power
animPlayer.Play(_insertingGoldAnimation, AnimationKey);
}
break;
case LatheVisualState.InsertingPhoron:
case LatheVisualState.InsertingPlasma:
if (!animPlayer.HasRunningAnimation(AnimationKey))
{
animPlayer.Play(_insertingPhoronAnimation, AnimationKey);
animPlayer.Play(_insertingPlasmaAnimation, AnimationKey);
}
break;
default: