Sanity checked all normal enemies
This commit is contained in:
1 parent
595c72bdf3
commit
9e1c9efc96
30 files changed
+48
-101
No files matched your search
@@ -64,9 +64,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<AerialiteOre>(), 1, 10, 26);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<AerialiteOre>(), 1, 10, 26);
|
||||
}
|
||||
}
|
||||
@@ -417,8 +417,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// TODO -- Draedon's remote appears to not exist as of 1.4 porting. Is this intentional or did something go wrong?
|
||||
// npcLoot.Add(ModContent.ItemType<DraedonsRemote>(), 3);
|
||||
npcLoot.Add(ModContent.ItemType<DemonicBoneAsh>(), 1, 2, 4);
|
||||
npcLoot.Add(ModContent.ItemType<MysteriousCircuitry>(), 1, 4, 8);
|
||||
npcLoot.Add(ModContent.ItemType<DubiousPlating>(), 1, 4, 8);
|
||||
|
||||
@@ -64,9 +64,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
player.AddBuff(BuffID.Weak, 180, true);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<BlightedLens>(), 2);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<BlightedLens>(), 2);
|
||||
}
|
||||
}
|
||||
@@ -65,9 +65,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<UelibloomOre>(), 1, 10, 26);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<UelibloomOre>(), 1, 10, 26);
|
||||
}
|
||||
}
|
||||
@@ -294,9 +294,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<AmidiasSpark>(), 4);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<AmidiasSpark>(), 4);
|
||||
}
|
||||
}
|
||||
@@ -73,9 +73,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<CryonicOre>(), 1, 10, 26);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<CryonicOre>(), 1, 10, 26);
|
||||
}
|
||||
}
|
||||
@@ -122,9 +122,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), new DropHelper.Fraction(1, 3));
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 3);
|
||||
}
|
||||
}
|
||||
@@ -122,9 +122,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 2);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 2);
|
||||
}
|
||||
}
|
||||
@@ -96,9 +96,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 2);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 2);
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
@@ -321,10 +322,20 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => EidolonWyrmHeadHuge.CanMinionsDropThings() && !NPC.LunarApocalypseIsUp, ModContent.ItemType<EidolonTablet>(), 4);
|
||||
npcLoot.AddIf(() => EidolonWyrmHeadHuge.CanMinionsDropThings() && DownedBossSystem.downedCalamitas && !Main.expertMode, ModContent.ItemType<Lumenite>(), 1, 8, 10);
|
||||
npcLoot.AddIf(() => EidolonWyrmHeadHuge.CanMinionsDropThings() && DownedBossSystem.downedCalamitas && Main.expertMode, ModContent.ItemType<Lumenite>(), 1, 10, 14);
|
||||
npcLoot.AddIf(() => EidolonWyrmHeadHuge.CanMinionsDropThings() && NPC.downedPlantBoss, ItemID.Ectoplasm, 1, 3, 5);
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(EidolonWyrmHeadHuge.CanMinionsDropThings);
|
||||
|
||||
LeadingConditionRule notDuringCultistFight = new LeadingConditionRule(DropHelper.If(() => !NPC.LunarApocalypseIsUp));
|
||||
notDuringCultistFight.Add(ModContent.ItemType<EidolonTablet>(), 4);
|
||||
aewMinionCondition.Add(notDuringCultistFight);
|
||||
|
||||
LeadingConditionRule postClone = new LeadingConditionRule(DropHelper.If(() => DownedBossSystem.downedCalamitas));
|
||||
postClone.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Lumenite>(), 1, 8, 10, 10, 14));
|
||||
aewMinionCondition.Add(postClone);
|
||||
|
||||
LeadingConditionRule postPlant = new LeadingConditionRule(new Conditions.DownedPlantera());
|
||||
postPlant.Add(ItemID.Ectoplasm, 1, 3, 5);
|
||||
aewMinionCondition.Add(postPlant);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -110,10 +110,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return SpawnCondition.OceanMonster.Chance * 0.2f;
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<AnechoicCoating>(), 2, 1, 1);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<AnechoicCoating>(), 2);
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
|
||||
@@ -83,10 +83,13 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.OneFromOptions(DropHelper.NormalWeaponDropRateInt,
|
||||
ModContent.ItemType<SlagMagnum>(),
|
||||
var weapons = new int[]
|
||||
{
|
||||
ModContent.ItemType<Aftershock>(),
|
||||
ModContent.ItemType<EarthenPike>()));
|
||||
ModContent.ItemType<EarthenPike>(),
|
||||
ModContent.ItemType<SlagMagnum>(),
|
||||
};
|
||||
npcLoot.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons));
|
||||
}
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
|
||||
@@ -101,9 +101,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 4);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EssenceofEleum>(), 4);
|
||||
}
|
||||
}
|
||||
@@ -104,10 +104,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return SpawnCondition.OceanMonster.Chance * 0.2f;
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => NPC.downedPlantBoss, ModContent.ItemType<MantisClaws>(), 5);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.AddIf(() => NPC.downedPlantBoss, ModContent.ItemType<MantisClaws>(), 5);
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
|
||||
@@ -65,9 +65,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<PerennialOre>(), 1, 10, 26);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<PerennialOre>(), 1, 10, 26);
|
||||
}
|
||||
}
|
||||
@@ -72,9 +72,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return new Color(200, 200, 200, 0);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<Phantoplasm>());
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<Phantoplasm>());
|
||||
}
|
||||
}
|
||||
@@ -122,9 +122,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return new Color(200, 200, 200, 0);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 2, 4);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 2, 4);
|
||||
}
|
||||
}
|
||||
@@ -81,9 +81,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return new Color(200, 200, 200, 0);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 1, 3);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 1, 3);
|
||||
}
|
||||
}
|
||||
@@ -79,9 +79,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return new Color(200, 200, 200, 0);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 1, 2);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<Phantoplasm>(), 1, 1, 2);
|
||||
}
|
||||
}
|
||||
@@ -83,10 +83,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemID.Bacon);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ItemID.Bacon);
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
|
||||
@@ -83,9 +83,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<UnholyEssence>(), 1, 2, 4);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<UnholyEssence>(), 1, 2, 4);
|
||||
}
|
||||
}
|
||||
@@ -61,9 +61,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return SpawnCondition.DesertCave.Chance * 0.05f;
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemID.TurtleShell, 10);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ItemID.TurtleShell, 10);
|
||||
}
|
||||
}
|
||||
@@ -55,10 +55,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
return SpawnCondition.OceanMonster.Chance * 0.2f;
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<UrchinStinger>(), 1, 15, 25);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<UrchinStinger>(), 1, 15, 25);
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
|
||||
@@ -87,9 +87,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
}
|
||||
}
|
||||
@@ -211,10 +211,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
player.AddBuff(ModContent.BuffType<HolyFlames>(), 120, true);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(() => Main.hardMode, ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.AddIf(() => Main.hardMode, ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
|
||||
@@ -56,10 +56,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
CalamityAI.Bumblebirb2AI(NPC, Mod, false);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<EffulgentFeather>(), 1, 2, 4);
|
||||
}
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EffulgentFeather>(), 1, 2, 4);
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
|
||||
@@ -206,6 +206,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumShard>(), 1, 1, 3);
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumBattery>(), new DropHelper.Fraction(7, 100));
|
||||
// TODO -- does this work?
|
||||
npcLoot.AddIf(() => Supercharged, ModContent.ItemType<EnergyCore>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumShard>(), 1, 1, 2);
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumBattery>(), new DropHelper.Fraction(7, 100));
|
||||
// TODO -- does this work?
|
||||
npcLoot.AddIf(() => Supercharged, ModContent.ItemType<EnergyCore>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,6 +283,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumShard>(), 1, 2, 3);
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumBattery>(), new DropHelper.Fraction(7, 100));
|
||||
// TODO -- does this work?
|
||||
npcLoot.AddIf(() => Supercharged, ModContent.ItemType<EnergyCore>());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,6 +165,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumShard>(), 1, 1, 2);
|
||||
npcLoot.Add(ModContent.ItemType<RoverDrive>(), 10);
|
||||
npcLoot.Add(ModContent.ItemType<WulfrumBattery>(), new DropHelper.Fraction(7, 100));
|
||||
// TODO -- does this work?
|
||||
npcLoot.AddIf(() => Supercharged, ModContent.ItemType<EnergyCore>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user