Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Celeste.Mod.mm/Patches/InvisibleBarrier.cs
Original file line number Diff line number Diff line change
@@ -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<ClimbBlocker>());

SurfaceSoundIndex = data.Int("surfaceIndex", SurfaceSoundIndex);

AllowStaticMovers = data.Bool("allowStaticMovers", true);
}

}
}
Loading