Destroy sun station debris properly

This commit is contained in:
Nick 2022-05-13 16:30:24 -04:00
parent 65613fe64f
commit 87c859728e

View File

@ -111,9 +111,6 @@ namespace NewHorizons.Utility
otherChildren.Add(GameObject.Find("FakeCannonBarrel_Body (1)")); otherChildren.Add(GameObject.Find("FakeCannonBarrel_Body (1)"));
otherChildren.Add(GameObject.Find("Debris_Body (1)")); otherChildren.Add(GameObject.Find("Debris_Body (1)"));
break; break;
case AstroObject.Name.SunStation:
otherChildren.Add(GameObject.Find("SS_Debris_Body"));
break;
case AstroObject.Name.GiantsDeep: case AstroObject.Name.GiantsDeep:
otherChildren.Add(GameObject.Find("BrambleIsland_Body")); otherChildren.Add(GameObject.Find("BrambleIsland_Body"));
otherChildren.Add(GameObject.Find("GabbroIsland_Body")); otherChildren.Add(GameObject.Find("GabbroIsland_Body"));
@ -134,6 +131,10 @@ namespace NewHorizons.Utility
otherChildren.Add(GameObject.Find("BackRaft_Body")); otherChildren.Add(GameObject.Find("BackRaft_Body"));
otherChildren.Add(GameObject.Find("SealRaft_Body")); otherChildren.Add(GameObject.Find("SealRaft_Body"));
break; break;
// For some dumb reason the sun station doesn't use AstroObject.Name.SunStation
case AstroObject.Name.CustomString:
if(primary._customName.Equals("Sun Station")) otherChildren.Add(GameObject.Find("SS_Debris_Body"));
break;
default: default:
break; break;
} }