Lots of new inhands, adds phoron (#1220)

* Beaker Inhands

* Flashlight Inhands

* Tile Refactor

* Adds metal/glass sheet inhands

* Removes plasma

* Adds Phoron

* We boolin'

* Phoron inhands

* First Pass inhand food

* First food inhand pass

* Soda inhand sprites

* Actually adds them
This commit is contained in:
Swept
2020-06-25 11:51:58 +00:00
committed by GitHub
parent 70a803e24e
commit bad7f9dc6b
299 changed files with 4421 additions and 144 deletions

View File

@@ -17,6 +17,7 @@ namespace Content.Client.GameObjects.Components.Power
private Animation _insertingMetalAnimation;
private Animation _insertingGlassAnimation;
private Animation _insertingGoldAnimation;
private Animation _insertingPhoronAnimation;
public override void LoadData(YamlMappingNode node)
{
@@ -26,6 +27,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);
}
private Animation PopulateAnimation(string sprite, float length)
@@ -95,6 +97,12 @@ namespace Content.Client.GameObjects.Components.Power
animPlayer.Play(_insertingGoldAnimation, AnimationKey);
}
break;
case LatheVisualState.InsertingPhoron:
if (!animPlayer.HasRunningAnimation(AnimationKey))
{
animPlayer.Play(_insertingPhoronAnimation, AnimationKey);
}
break;
default:
throw new ArgumentOutOfRangeException();
}