Renames phoron to plasma everywhere in the codebase and replaces sprites. (#3110)
This commit is contained in:
committed by
GitHub
parent
2d06990ee3
commit
9b1142973e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user