Beispiel #1
0
        // 修复:面向左边不按方向键冲刺,白色线条绘制异常
        private static SlashFx SlashFxOnBurst(On.Celeste.SlashFx.orig_Burst orig, Vector2 position, float direction)
        {
            if (SpeedrunToolModule.Enabled && Math.Abs(direction + 3.141593) < 0.000001f)
            {
                direction = -direction;
            }

            return(orig(position, direction));
        }
        private static SlashFx SlashFxOnBurst(On.Celeste.SlashFx.orig_Burst orig, Vector2 position, float direction)
        {
            SlashFx slashFx = orig(position, direction);

            slashFx.TrySetEntityId2(position, direction);
            slashFx.SetStartPosition(position);
            slashFx.SetDirection(direction);
            return(slashFx);
        }