changed several abyss, sunken sea, and astral enemies to use DropHelper
This commit is contained in:
1 parent
6816f3d097
commit
8aaa07650c
25 files changed
+81
-287
No files matched your search
@@ -450,40 +450,19 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Voidstone>(), Main.rand.Next(30, 41));
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Voidstone>(), 30, 40);
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticHood);
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.BlueLunaticRobe);
|
||||
DropHelper.DropItem(npc, ItemID.BlueLunaticHood);
|
||||
DropHelper.DropItem(npc, ItemID.BlueLunaticRobe);
|
||||
}
|
||||
int chance = CalamityGlobalNPCLoot.halibutCannonBaseDropChance / 100;
|
||||
if (Main.rand.NextBool(chance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedPolterghast)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<SoulEdge>());
|
||||
}
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EidolicWail>());
|
||||
}
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>(), Main.rand.Next(6, 9));
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>(), Main.rand.Next(2, 4));
|
||||
}
|
||||
}
|
||||
if (NPC.downedPlantBoss)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ectoplasm, Main.rand.Next(8, 13));
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, chance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<SoulEdge>(), CalamityWorld.downedPolterghast, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<EidolicWail>(), CalamityWorld.downedPolterghast, 3, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1, 6, 8);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Ectoplasm, NPC.downedPlantBoss, 1, 8, 12);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -458,19 +458,14 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Voidstone>(), Main.rand.Next(80, 101));
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EidolicWail>());
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<SoulEdge>());
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Ectoplasm, Main.rand.Next(21, 33));
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>(), Main.rand.Next(50, 109));
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>(), Main.rand.Next(15, 28));
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Voidstone>(), 80, 100);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<EidolicWail>());
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<SoulEdge>());
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge);
|
||||
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 1, 50, 108);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 15, 27);
|
||||
DropHelper.DropItemCondition(npc, ItemID.Ectoplasm, NPC.downedPlantBoss, 1, 21, 32);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -252,25 +252,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>());
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(2, 5));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 2, 4);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f, 1, 2);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -338,29 +338,11 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>(), Main.rand.Next(2, 4));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>());
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(6, 9));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(2, 4));
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f, 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 6, 8);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f, 2, 3);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
+2
-11
@@ -112,17 +112,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>());
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -285,26 +285,11 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Voidstone>(), Main.rand.Next(8, 16));
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>());
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>());
|
||||
}
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Voidstone>(), 8, 15);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.5f);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -310,21 +310,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(3, 6));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 3, 5);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f, 1, 2);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -149,21 +149,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(2, 4));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(2, 4));
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f, 2, 3);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
+4
-19
@@ -121,25 +121,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(CalamityGlobalNPCLoot.halibutCannonBaseDropChance) && CalamityWorld.revenge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HalibutCannon>());
|
||||
}
|
||||
if (CalamityWorld.downedCalamitas)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Lumenite>());
|
||||
}
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<DepthCells>());
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, CalamityGlobalNPCLoot.halibutCannonBaseDropChance, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Lumenite>(), CalamityWorld.downedCalamitas, 0.25f);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 0.5f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
+3
-12
@@ -120,18 +120,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<StellarKnife>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Stardust>(), 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<StellarKnife>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -281,14 +281,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Stardust>(), 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
}
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
|
||||
@@ -166,15 +166,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<AstralachneaStaff>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<AstralachneaStaff>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -139,15 +139,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<AstralachneaStaff>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<AstralachneaStaff>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -165,11 +165,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,11 +127,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,15 +201,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HadarianMembrane>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HadarianMembrane>(), CalamityWorld.downedAstrageldon, 2, 1, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-9
@@ -139,15 +139,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<HivePod>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HivePod>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -235,15 +235,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<AstralScythe>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<AstralScythe>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
+3
-9
@@ -280,15 +280,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(2, 4));
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<StellarCannon>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Stardust>(), 2, 3);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<StellarCannon>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -132,14 +132,8 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Stardust>(), 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -120,18 +120,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>(), Main.rand.Next(1, 3));
|
||||
}
|
||||
if (Main.expertMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Stardust>());
|
||||
}
|
||||
if (CalamityWorld.downedAstrageldon && Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<StarbusterCore>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Stardust>(), 0.5f, 1, 2);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<Stardust>(), Main.expertMode);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<StarbusterCore>(), CalamityWorld.downedAstrageldon, 7, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -98,11 +98,8 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<EutrophicScimitar>());
|
||||
}
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<PrismShard>(), Main.rand.Next(5, 10));
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<EutrophicScimitar>(), 0.25f);
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<PrismShard>(), 5, 9);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -219,11 +219,8 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
}
|
||||
public override void NPCLoot()
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Navystone>(), Main.rand.Next(8, 13));
|
||||
if (Main.rand.NextBool(2) && Main.hardMode)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<MolluskHusk>());
|
||||
}
|
||||
DropHelper.DropItem(npc, ModContent.ItemType<Navystone>(), 8, 12);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<MolluskHusk>(), Main.hardMode, 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,10 +136,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (CalamityWorld.downedDesertScourge)
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<PrismShard>(), Main.rand.Next(1, 4));
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<PrismShard>(), CalamityWorld.downedDesertScourge, 1, 1, 3);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -272,10 +272,7 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<Serpentine>());
|
||||
}
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<Serpentine>(), 0.25f);
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
Reference in new issue
Block a user