Skip to content

Commit

Permalink
Revert "Patch DeathEffect.Update to fix Percent check"
Browse files Browse the repository at this point in the history
This reverts commit 7df0542.
Will be re-submitted as a PR
  • Loading branch information
coloursofnoise committed Sep 3, 2021
1 parent 7df0542 commit 7279867
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions Celeste.Mod.mm/MonoModRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,6 @@ class PatchCassetteBlockAwakeAttribute : Attribute { }
[MonoModCustomMethodAttribute(nameof(MonoModRules.PatchMountainRendererUpdate))]
class PatchMountainRendererUpdate : Attribute { }

[MonoModCustomMethodAttribute(nameof(MonoModRules.PatchDeathEffectUpdate))]
class PatchDeathEffectUpdateAttribute : Attribute { }

static class MonoModRules {

static bool IsCeleste;
Expand Down Expand Up @@ -2252,12 +2249,6 @@ public static void PatchMountainRendererUpdate(ILContext context, CustomAttribut
throw new Exception("MountainRenderer failed to patch key presses for keys: " + pressedKeys.Keys);
}

public static void PatchDeathEffectUpdate(ILContext context, CustomAttribute attrib) {
ILCursor cursor = new ILCursor(context);
cursor.GotoNext(instr => instr.OpCode == OpCodes.Ble_Un_S);
cursor.Next.OpCode = OpCodes.Blt_Un_S;
}

public static void PostProcessor(MonoModder modder) {
// Patch CrushBlock::AttackSequence's first alarm delegate manually because how would you even annotate it?
PatchCrushBlockFirstAlarm(modder.Module.GetType("Celeste.CrushBlock/<>c__DisplayClass41_0").FindMethod("<AttackSequence>b__1"));
Expand Down
9 changes: 0 additions & 9 deletions Celeste.Mod.mm/Patches/DeathEffect.cs

This file was deleted.

0 comments on commit 7279867

Please sign in to comment.