Skip to content

Commit

Permalink
PufferBowls now interact with vanilla Puffers.
Browse files Browse the repository at this point in the history
  • Loading branch information
catapillie committed Dec 21, 2020
1 parent 328a281 commit 31d028d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
Binary file modified VortexHelper.dll
Binary file not shown.
9 changes: 9 additions & 0 deletions VortexHelper/Entities/BowlPuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,15 @@ private void DoEntityCustomInteraction()
}
}

foreach(Actor e in CollideAll<Actor>())
{
if(e is Puffer)
{
VortexHelperModule.Puffer_Explode.Invoke(e, new object[] { });
VortexHelperModule.Puffer_GotoGone.Invoke(e, new object[] { });
}
}

foreach (Solid e in CollideAll<Solid>())
{
// Temple Cracked Blocks
Expand Down
18 changes: 9 additions & 9 deletions VortexHelper/VortexHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\Desktop\Celeste\Mods\VortexHelper\</OutputPath>
<OutputPath>..\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -43,20 +43,20 @@
<HintPath>..\..\..\MMHOOK_Celeste.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.dll</HintPath>
<Reference Include="Mono.Cecil">
<HintPath>..\..\..\Mono.Cecil.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Mdb.dll</HintPath>
<Reference Include="Mono.Cecil.Mdb">
<HintPath>..\..\..\Mono.Cecil.Mdb.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Pdb.dll</HintPath>
<Reference Include="Mono.Cecil.Pdb">
<HintPath>..\..\..\Mono.Cecil.Pdb.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e, processorArchitecture=MSIL">
<HintPath>..\packages\Mono.Cecil.0.11.2\lib\net40\Mono.Cecil.Rocks.dll</HintPath>
<Reference Include="Mono.Cecil.Rocks">
<HintPath>..\..\..\Mono.Cecil.Rocks.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="MonoMod.Utils">
Expand Down
7 changes: 2 additions & 5 deletions VortexHelper/VortexHelperModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class VortexHelperModule : EverestModule
public static MethodInfo Spring_BounceAnimate = typeof(Spring).GetMethod("BounceAnimate", BindingFlags.Instance | BindingFlags.NonPublic);
public static MethodInfo CrushBlock_OnDashed = typeof(CrushBlock).GetMethod("OnDashed", BindingFlags.Instance | BindingFlags.NonPublic);
public static MethodInfo CoreModeToggle_OnPlayer = typeof(CoreModeToggle).GetMethod("OnPlayer", BindingFlags.Instance | BindingFlags.NonPublic);
public static MethodInfo Puffer_Explode = typeof(Puffer).GetMethod("Explode", BindingFlags.Instance | BindingFlags.NonPublic);
public static MethodInfo Puffer_GotoGone = typeof(Puffer).GetMethod("GotoGone", BindingFlags.Instance | BindingFlags.NonPublic);

public static bool AllowPlayerDashRefills = true;

Expand Down Expand Up @@ -91,11 +93,6 @@ private void Spring_OnBowlPuffer(BowlPuffer puffer, Spring self)
Spring_BounceAnimate.Invoke(self, new object[] { });
}






private void LevelLoader_LoadingThread(On.Celeste.LevelLoader.orig_LoadingThread orig, LevelLoader self)
{
orig(self);
Expand Down

0 comments on commit 31d028d

Please sign in to comment.