Removed obsoleted string param from BossLoot hooks
This commit is contained in:
1 parent
bbfd663016
commit
36ceaeda14
34 files changed
+40
-46
No files matched your search
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user