From 194fa6a92a79a0c7eaae37f38849e9d724751acb Mon Sep 17 00:00:00 2001 From: max4805 Date: Wed, 31 Mar 2021 19:21:22 +0200 Subject: [PATCH] Fix static puffers sometimes boosting the player straight downwards --- Entities/StaticPuffer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Entities/StaticPuffer.cs b/Entities/StaticPuffer.cs index 1036d37..5070611 100644 --- a/Entities/StaticPuffer.cs +++ b/Entities/StaticPuffer.cs @@ -38,6 +38,11 @@ private static void onPufferConstructor(ILContext il) { public StaticPuffer(EntityData data, Vector2 offset) : base(data, offset) { // remove the sine wave component so that it isn't updated. Get()?.RemoveSelf(); + + // offset the horizontal position by a tiny bit. + // Vanilla puffers have a non-integer position (due to the randomized offset), making it impossible to be boosted downwards, + // so we want to do the same. + Position.X += 0.0001f; } } }