private static void DashBlockBreak(On.Celeste.DashBlock.orig_Break_Vector2_Vector2_bool_bool orig, Celeste.DashBlock self, Vector2 from, Vector2 direction, bool playSound, bool playDebrisSound) { orig(self, from, direction, playSound, playDebrisSound); if (self is FactoryActivatorDashBlock) { (self as FactoryActivatorDashBlock).OnBreak(); } }
private static void DashBlockRemoveAndFlagAsGone(On.Celeste.DashBlock.orig_RemoveAndFlagAsGone orig, Celeste.DashBlock self) { if (self is FactoryActivatorDashBlock) { self.RemoveSelf(); return; } orig(self); }