Merge pull request #69 from UncleDanny/stinger-drops
All enemies with stingers drop stingers.
This commit is contained in:
8 files changed
+26
-15
No files matched your search
@@ -2601,6 +2601,7 @@ Provides heat and cold protection in Death Mode";
|
||||
|
||||
// Queen Bee
|
||||
case ItemID.QueenBeeBossBag:
|
||||
DropHelper.DropItem(player, ItemID.Stinger, 8, 12);
|
||||
DropHelper.DropItem(player, ModContent.ItemType<HardenedHoneycomb>(), 50, 75);
|
||||
break;
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.TreasureBags
|
||||
@@ -34,10 +35,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override bool CanRightClick()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public override bool CanRightClick() => true;
|
||||
|
||||
public override void OpenBossBag(Player player)
|
||||
{
|
||||
@@ -45,6 +43,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
|
||||
// Materials
|
||||
DropHelper.DropItem(player, ModContent.ItemType<PlagueCellCluster>(), 13, 17);
|
||||
DropHelper.DropItem(player, ItemID.Stinger, 4, 8);
|
||||
|
||||
// Weapons
|
||||
DropHelper.DropItemChance(player, ModContent.ItemType<VirulentKatana>(), 3); // Virulence
|
||||
|
||||
@@ -279,7 +279,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
npc.Calamity().SetNewShopVariable(new int[] { NPCID.ArmsDealer, NPCID.Cyborg, NPCID.Steampunker, NPCID.Wizard, NPCID.WitchDoctor, NPCID.DD2Bartender, ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedGolemBoss);
|
||||
|
||||
// If Golem has never been killed, send messages about PBG and Ravager
|
||||
// If Golem has never been killed, send messages about PBG
|
||||
if (!NPC.downedGolemBoss)
|
||||
{
|
||||
string key = "Mods.CalamityMod.BabyBossText";
|
||||
@@ -1741,6 +1741,7 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.QueenBee:
|
||||
DropHelper.DropItemCondition(npc, ItemID.Stinger, !Main.expertMode, 5, 10);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HardenedHoneycomb>(), !Main.expertMode, 30, 50);
|
||||
break;
|
||||
|
||||
@@ -1828,6 +1829,12 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Ectoblood>(), 2, 1, Main.expertMode ? 3 : 1);
|
||||
}
|
||||
|
||||
// Every type of moss hornet can drop stingers
|
||||
if (CalamityMod.mossHornetList.Contains(npc.type))
|
||||
{
|
||||
DropHelper.DropItemChance(npc, ItemID.Stinger, Main.expertMode ? 1f : 0.6666f);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -101,7 +101,8 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<PlagueCellCluster>(), Main.rand.Next(1, 3));
|
||||
DropHelper.DropItemChance(npc, ItemID.Stinger, Main.expertMode ? 0.5f : 0.25f);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PlagueCellCluster>(), 1, 2);
|
||||
}
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
|
||||
@@ -100,7 +100,8 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<PlagueCellCluster>(), Main.rand.Next(2, 4));
|
||||
DropHelper.DropItemChance(npc, ItemID.Stinger, Main.expertMode ? 0.5f : 0.25f);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PlagueCellCluster>(), 2, 3);
|
||||
}
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
|
||||
@@ -128,7 +128,8 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<PlagueCellCluster>(), Main.rand.Next(1, 3));
|
||||
DropHelper.DropItemChance(npc, ItemID.Stinger, Main.expertMode ? 0.5f : 0.25f);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PlagueCellCluster>(), 1, 2);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
|
||||
@@ -974,10 +974,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CheckActive()
|
||||
{
|
||||
return canDespawn;
|
||||
}
|
||||
public override bool CheckActive() => canDespawn;
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
@@ -1134,6 +1131,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
{
|
||||
// Materials
|
||||
DropHelper.DropItemSpray(npc, ModContent.ItemType<PlagueCellCluster>(), 10, 14);
|
||||
DropHelper.DropItemSpray(npc, ItemID.Stinger, 3, 5);
|
||||
|
||||
// Weapons
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<VirulentKatana>(), 4); // Virulence
|
||||
|
||||
@@ -673,11 +673,14 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreNPCLoot() => !NPC.AnyNPCs(ModContent.NPCType<PlaguebringerGoliath>()); //don't drop items in the PBG fight
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PlagueCellCluster>(), 8, 12);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<PlaguedFuelPack>(), 10);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<PlagueCaller>(), 50); //no, this isn't getting boosted by Defiled. Rover, I don't care. PBG also drops it
|
||||
DropHelper.DropItemChance(npc, ItemID.Stinger, Main.expertMode ? 0.5f : 0.25f, 2, 3);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PlagueCellCluster>(), 8, 12);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<PlaguedFuelPack>(), 10);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<PlagueCaller>(), 50); //no, this isn't getting boosted by Defiled. Rover, I don't care. PBG also drops it
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
|
||||
Reference in new issue
Block a user