Acid Rain and Astral enemies sanity checked
This commit is contained in:
1 parent
f1d11008c8
commit
f86270009b
13 files changed
+26
-32
No files matched your search
@@ -5,6 +5,7 @@ using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
@@ -485,10 +486,13 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType<NuclearRod>(), 10);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedPolterghast, ModContent.ItemType<SpentFuelContainer>(), 10);
|
||||
npcLoot.AddIf(() => !DownedBossSystem.downedPolterghast, ModContent.ItemType<NuclearRod>());
|
||||
npcLoot.AddIf(() => !DownedBossSystem.downedPolterghast, ModContent.ItemType<SpentFuelContainer>());
|
||||
// If post-Polter, the drop rates are 10%. Otherwise they're 100%.
|
||||
// This is accomplished by adding rules if the CONDITION "Post-Polter" fails.
|
||||
LeadingConditionRule postPolter = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedPolterghast);
|
||||
postPolter.Add(ModContent.ItemType<NuclearRod>(), 10);
|
||||
postPolter.Add(ModContent.ItemType<SpentFuelContainer>(), 10);
|
||||
postPolter.OnFailedConditions(ItemDropRule.Common(ModContent.ItemType<NuclearRod>()));
|
||||
postPolter.OnFailedConditions(ItemDropRule.Common(ModContent.ItemType<SpentFuelContainer>()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,8 +123,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 2);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 2, 1, 2, 1, 3));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<StellarKnife>(), 7);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,8 +284,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 2);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 2, 1, 2, 1, 3));
|
||||
}
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
|
||||
@@ -81,11 +81,11 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 3);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 2, 1, 2, 1, 3));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<AbandonedSlimeStaff>(), 7);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumDeus && !Main.expertMode, ModContent.ItemType<AstralOre>(), 1, 8, 12);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumDeus && Main.expertMode, ModContent.ItemType<AstralOre>(), 1, 11, 16);
|
||||
|
||||
var postDeus = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAstrumDeus);
|
||||
postDeus.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<AstralOre>(), 1, 8, 12, 11, 16));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -642,8 +642,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<TitanHeart>());
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 1, 6, 8);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 7, 9);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 6, 8, 7, 9));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<TitanArm>(), 7);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,8 +171,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 2, 3);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 4);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 2, 3, 3, 4));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -134,8 +134,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 2, 3);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 3, 4);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 2, 3, 3, 4));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -208,8 +208,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 3);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 4);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 1, 3, 1, 4));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<HadarianMembrane>(), 2, 2, 3);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-2
@@ -142,8 +142,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 3);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 4);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 1, 3, 1, 4));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<HivePod>(), 7);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,8 +239,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 2);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 1, 2, 1, 3));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<AstralScythe>(), 7);
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -259,10 +259,10 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => NPC.ai[3] <= -10000f && !Main.expertMode, ModContent.ItemType<Stardust>(), 1, 2, 3);
|
||||
npcLoot.AddIf(() => NPC.ai[3] <= -10000f && Main.expertMode, ModContent.ItemType<Stardust>(), 1, 3, 4);
|
||||
npcLoot.AddIf(() => NPC.ai[3] <= -10000f, ModContent.ItemType<StellarCannon>(), 7);
|
||||
npcLoot.AddIf(() => NPC.ai[3] <= -10000f, ModContent.ItemType<GloriousEnd>(), 7);
|
||||
var exploded = npcLoot.DefineConditionalDropSet((info) => info.npc.ai[3] <= -10000f);
|
||||
exploded.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 2, 3, 3, 4);
|
||||
exploded.Add(ModContent.ItemType<StellarCannon>(), 7);
|
||||
exploded.Add(ModContent.ItemType<GloriousEnd>(), 7);
|
||||
}
|
||||
|
||||
public override void PostDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
|
||||
@@ -139,8 +139,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 2);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 1, 2, 1, 3));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,8 +125,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => !Main.expertMode, ModContent.ItemType<Stardust>(), 2, 1, 2);
|
||||
npcLoot.AddIf(() => Main.expertMode, ModContent.ItemType<Stardust>(), 1, 1, 3);
|
||||
npcLoot.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Stardust>(), 1, 1, 2, 1, 3));
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedAstrumAureus, ModContent.ItemType<StarbusterCore>(), 7);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user