diff --git a/Celeste.Mod.mm/Patches/InvisibleBarrier.cs b/Celeste.Mod.mm/Patches/InvisibleBarrier.cs new file mode 100644 index 000000000..4e688fbcb --- /dev/null +++ b/Celeste.Mod.mm/Patches/InvisibleBarrier.cs @@ -0,0 +1,21 @@ +using Microsoft.Xna.Framework; +using MonoMod; + +namespace Celeste { + class patch_InvisibleBarrier : InvisibleBarrier { + + [MonoModConstructor] + [MonoModReplace] + public patch_InvisibleBarrier(EntityData data, Vector2 offset) + : base(data.Position + offset, data.Width, data.Height) { + + if (data.Bool("allowClimbing", false)) + Remove(Get()); + + SurfaceSoundIndex = data.Int("surfaceIndex", SurfaceSoundIndex); + + AllowStaticMovers = data.Bool("allowStaticMovers", true); + } + + } +}