Removed obsoleted string param from BossLoot hooks

This commit is contained in:
CongratsIsTrash committed 2025-07-07 18:06:04 -04:00
1 parent bbfd663016
commit 36ceaeda14
34 files changed
+40 -46

No files matched your search

+1 -1
View File
@@ -664,7 +664,7 @@ namespace CalamityMod.NPCs.AquaticScourge
return 0f;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SulphurousSand>();
}
+1 -1
View File
@@ -1297,7 +1297,7 @@ namespace CalamityMod.NPCs.AstrumAureus
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -911,7 +911,7 @@ namespace CalamityMod.NPCs.AstrumDeus
}
}
public override void BossLoot(ref string name, ref int potionType) => potionType = ModContent.ItemType<StarblightSoot>();
public override void BossLoot(ref int potionType) => potionType = ModContent.ItemType<StarblightSoot>();
public static bool ShouldNotDropThings(NPC NPC) => NPC.Calamity().newAI[0] == 0f || ((CalamityWorld.death || BossRushEvent.BossRushActive) && NPC.Calamity().newAI[0] != 3f);
@@ -885,7 +885,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -1228,7 +1228,7 @@ namespace CalamityMod.NPCs.Bumblebirb
return newColor;
}
public override void BossLoot(ref string name, ref int potionType) => potionType = ItemID.SuperHealingPotion;
public override void BossLoot(ref int potionType) => potionType = ItemID.SuperHealingPotion;
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
+1 -1
View File
@@ -954,7 +954,7 @@ namespace CalamityMod.NPCs.CalClone
CalamityNetcode.SyncWorld();
}
public override void BossLoot(ref string name, ref int potionType) => potionType = ItemID.GreaterHealingPotion;
public override void BossLoot(ref int potionType) => potionType = ItemID.GreaterHealingPotion;
public override void HitEffect(NPC.HitInfo hit)
{
+1 -1
View File
@@ -806,7 +806,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
NPC.lifeMax = (int)(NPC.lifeMax * 0.8f * balance * bossAdjustment);
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemType<SupremeHealingPotion>();
}
+1 -1
View File
@@ -1384,7 +1384,7 @@ namespace CalamityMod.NPCs.Cryogen
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -941,7 +941,7 @@ namespace CalamityMod.NPCs.DesertScourge
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.SandBlock;
}
+1 -1
View File
@@ -2546,7 +2546,7 @@ namespace CalamityMod.NPCs.DevourerofGods
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<CosmiliteBrick>();
}
+1 -1
View File
@@ -1669,7 +1669,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
+1 -1
View File
@@ -1491,7 +1491,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
+1 -1
View File
@@ -1588,7 +1588,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
+1 -1
View File
@@ -1241,7 +1241,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
+1 -1
View File
@@ -1322,7 +1322,7 @@ namespace CalamityMod.NPCs.HiveMind
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.HealingPotion;
}
+1 -1
View File
@@ -1016,7 +1016,7 @@ namespace CalamityMod.NPCs.Leviathan
//200x636
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -805,7 +805,7 @@ namespace CalamityMod.NPCs.Leviathan
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -442,7 +442,7 @@ namespace CalamityMod.NPCs.NormalNPCs
return 0f;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -2080,7 +2080,7 @@ namespace CalamityMod.NPCs.OldDuke
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SupremeHealingPotion>();
}
+3 -5
View File
@@ -12,6 +12,7 @@ using Terraria.Audio;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.NPCs.Perforator
@@ -629,11 +630,8 @@ namespace CalamityMod.NPCs.Perforator
}
}
public override void BossLoot(ref string name, ref int potionType)
{
name = CalamityUtils.GetTextValue("NPCs.PerforatorLarge");
potionType = ItemID.HealingPotion;
}
public override LocalizedText DeathMessage => CalamityUtils.GetText("NPCs.PerforatorLarge");
public override void BossLoot(ref int potionType) => potionType = ItemID.HealingPotion;
public override bool SpecialOnKill()
{
+3 -5
View File
@@ -11,6 +11,7 @@ using Terraria.Audio;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.NPCs.Perforator
@@ -574,11 +575,8 @@ namespace CalamityMod.NPCs.Perforator
}
}
public override void BossLoot(ref string name, ref int potionType)
{
name = CalamityUtils.GetTextValue("NPCs.PerforatorMedium");
potionType = ItemID.HealingPotion;
}
public override LocalizedText DeathMessage => CalamityUtils.GetText("NPCs.PerforatorMedium");
public override void BossLoot(ref int potionType) => potionType = ItemID.HealingPotion;
public override bool SpecialOnKill()
{
+3 -5
View File
@@ -12,6 +12,7 @@ using Terraria.Audio;
using Terraria.GameContent;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.NPCs.Perforator
@@ -550,11 +551,8 @@ namespace CalamityMod.NPCs.Perforator
}
}
public override void BossLoot(ref string name, ref int potionType)
{
name = CalamityUtils.GetTextValue("NPCs.PerforatorSmall");
potionType = ItemID.HealingPotion;
}
public override LocalizedText DeathMessage => CalamityUtils.GetText("NPCs.PerforatorSmall");
public override void BossLoot(ref int potionType) => potionType = ItemID.HealingPotion;
public override bool SpecialOnKill()
{
+1 -1
View File
@@ -555,7 +555,7 @@ namespace CalamityMod.NPCs.Perforator
NPC.damage = (int)(NPC.damage * NPC.GetExpertDamageMultiplier());
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.HealingPotion;
}
@@ -1306,7 +1306,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.GreaterHealingPotion;
}
+1 -1
View File
@@ -944,7 +944,7 @@ namespace CalamityMod.NPCs.Polterghast
}
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SupremeHealingPotion>();
}
+1 -1
View File
@@ -1475,7 +1475,7 @@ namespace CalamityMod.NPCs.PrimordialWyrm
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
@@ -1202,7 +1202,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
return false;
}
public override void BossLoot(ref string name, ref int potionType) => potionType = ItemID.SuperHealingPotion;
public override void BossLoot(ref int potionType) => potionType = ItemID.SuperHealingPotion;
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
+1 -1
View File
@@ -2084,7 +2084,7 @@ namespace CalamityMod.NPCs.Providence
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedProvidence, ModContent.ItemType<LoreProvidence>(), desc: DropHelper.FirstKillText);
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SupremeHealingPotion>();
}
+1 -1
View File
@@ -993,7 +993,7 @@ namespace CalamityMod.NPCs.Ravager
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 480);
}
public override void BossLoot(ref string name, ref int potionType) => potionType = ItemID.GreaterHealingPotion;
public override void BossLoot(ref int potionType) => potionType = ItemID.GreaterHealingPotion;
public override void OnKill()
{
+1 -1
View File
@@ -912,7 +912,7 @@ namespace CalamityMod.NPCs.Signus
return false;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SupremeHealingPotion>();
}
+1 -1
View File
@@ -706,7 +706,7 @@ namespace CalamityMod.NPCs.SlimeGod
return minDist <= 40f * NPC.scale;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ItemID.HealingPotion;
}
+1 -1
View File
@@ -946,7 +946,7 @@ namespace CalamityMod.NPCs.StormWeaver
return true;
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<SupremeHealingPotion>();
}
+1 -1
View File
@@ -3382,7 +3382,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
#region Loot
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}
+1 -1
View File
@@ -3009,7 +3009,7 @@ namespace CalamityMod.NPCs.Yharon
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedYharon, ModContent.ItemType<LoreYharon>(), desc: DropHelper.FirstKillText);
}
public override void BossLoot(ref string name, ref int potionType)
public override void BossLoot(ref int potionType)
{
potionType = ModContent.ItemType<OmegaHealingPotion>();
}