vital jelly is hardmode only
This commit is contained in:
1 parent
5e05267516
commit
ec059bf5dc
1 file changed
+6
-45
@@ -196,51 +196,12 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override void NPCLoot()
|
||||
{
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<AbyssShocker>(), NPC.downedBoss3, 10, 1, 1);
|
||||
if (Main.rand.NextBool(1000000) && 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(5, 8));
|
||||
}
|
||||
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(5, 8));
|
||||
}
|
||||
}
|
||||
if (Main.expertMode)
|
||||
{
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<VitalJelly>());
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<LifeJelly>());
|
||||
}
|
||||
if (Main.rand.NextBool(5))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<ManaJelly>());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<VitalJelly>());
|
||||
}
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<LifeJelly>());
|
||||
}
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<ManaJelly>());
|
||||
}
|
||||
}
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<HalibutCannon>(), CalamityWorld.revenge, 1000000, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas, 2, 5, 7);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<DepthCells>(), CalamityWorld.downedCalamitas && Main.expertMode, 2, 5, 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<LifeJelly>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemChance(npc, ModContent.ItemType<ManaJelly>(), Main.expertMode ? 5 : 7);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<VitalJelly>(), Main.hardMode, Main.expertMode ? 5 : 7, 1, 1);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
|
||||
Reference in new issue
Block a user