From f87e374a984eb4262874f8fc7e5ad8cc1fb97a07 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 20 May 2023 22:05:01 +0700 Subject: [PATCH] AnglerReward & NewProjectile IL Edits - 11 left! --- ILEditing/ILChangesLoading.cs | 2 +- ILEditing/VanillaStupidityFixingILChanges.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ILEditing/ILChangesLoading.cs b/ILEditing/ILChangesLoading.cs index d31c7cbb3e..d5a8b5302d 100644 --- a/ILEditing/ILChangesLoading.cs +++ b/ILEditing/ILChangesLoading.cs @@ -66,7 +66,7 @@ namespace CalamityMod.ILEditing Terraria.On_WorldGen.OpenDoor += OpenDoor_LabDoorOverride; Terraria.On_WorldGen.CloseDoor += CloseDoor_LabDoorOverride; Terraria.On_Item.AffixName += IncorporateEnchantmentInAffix; - Terraria.On_Projectile.NewProjectile_IEntitySource_float_float_float_float_int_int_float_int_float_float += IncorporateMinionExplodingCountdown; + Terraria.On_Projectile.NewProjectile_IEntitySource_float_float_float_float_int_int_float_int_float_float_float += IncorporateMinionExplodingCountdown; // TODO -- This should be unnecessary. There is now a TML hook for platform collision for ModNPCs. Terraria.On_NPC.Collision_DecideFallThroughPlatforms += EnableCalamityBossPlatformCollision; Terraria.IL_Wiring.HitWireSingle += AddTwinklersToStatue; diff --git a/ILEditing/VanillaStupidityFixingILChanges.cs b/ILEditing/VanillaStupidityFixingILChanges.cs index 0482520022..24102c9466 100644 --- a/ILEditing/VanillaStupidityFixingILChanges.cs +++ b/ILEditing/VanillaStupidityFixingILChanges.cs @@ -424,9 +424,9 @@ namespace CalamityMod.ILEditing #endregion Color Blighted Gel #region Improve Angler Quest Rewards - private static void ImproveAnglerRewards(Terraria.On_Player.orig_GetAnglerReward orig, Player self, NPC angler) + private static void ImproveAnglerRewards(Terraria.On_Player.orig_GetAnglerReward orig, Player self, NPC angler, int questItemType) { - orig(self, angler); + orig(self, angler, questItemType); EntitySource_Gift source = new EntitySource_Gift(angler); int questsDone = self.anglerQuestsFinished + Main.rand.Next(101);