1 - New shop inventory alert edits.

This commit is contained in:
Andrew Marheine committed 2021-10-25 06:59:00 -05:00
1 parent e4efed6234
commit 3ea65eb13e
8 files changed
+4 -15

No files matched your search

+3 -3
View File
@@ -105,7 +105,7 @@ namespace CalamityMod.NPCs
DropHelper.DropItemCondition(npc, ModContent.ItemType<CounterScarf>(), true, CalamityWorld.malice);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeEyeofCthulhu>(), true, !NPC.downedBoss1);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad }, NPC.downedBoss1);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss1);
CalamityGlobalNPC.SetNewBossJustDowned(npc);
}
else if ((npc.boss && (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail)) || npc.type == NPCID.BrainofCthulhu)
@@ -114,7 +114,7 @@ namespace CalamityMod.NPCs
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeEaterofWorlds>(), true, !WorldGen.crimson && !NPC.downedBoss2);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeCrimson>(), true, WorldGen.crimson && !NPC.downedBoss2);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeBrainofCthulhu>(), true, WorldGen.crimson && !NPC.downedBoss2);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad }, NPC.downedBoss2);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss2);
CalamityGlobalNPC.SetNewBossJustDowned(npc);
}
else if (npc.type == NPCID.QueenBee)
@@ -150,7 +150,7 @@ namespace CalamityMod.NPCs
DropHelper.DropItemCondition(npc, ModContent.ItemType<ClothiersWrath>(), true, CalamityWorld.malice);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeSkeletron>(), true, !NPC.downedBoss3);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad }, NPC.downedBoss3);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss3);
CalamityGlobalNPC.SetNewBossJustDowned(npc);
}
else if (npc.type == NPCID.WallofFlesh)
-1
View File
@@ -7,7 +7,6 @@ using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables.Furniture.Fountains;
using CalamityMod.Items.Placeables.Walls;
using CalamityMod.Items.Potions;
using CalamityMod.Items.SummonItems;
using CalamityMod.Items.SummonItems.Invasion;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Items.Weapons.Ranged;
-2
View File
@@ -675,8 +675,6 @@ namespace CalamityMod.NPCs.Crabulon
DropHelper.DropItemChance(npc, ModContent.ItemType<CrabulonTrophy>(), 10);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeCrabulon>(), true, !CalamityWorld.downedCrabulon);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Dryad }, CalamityWorld.downedCrabulon);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)
{
-2
View File
@@ -566,8 +566,6 @@ namespace CalamityMod.NPCs.DesertScourge
DropHelper.DropItemChance(npc, ModContent.ItemType<DesertScourgeTrophy>(), 10);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeDesertScourge>(), true, !CalamityWorld.downedDesertScourge);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { ModContent.NPCType<SEAHOE>() }, CalamityWorld.downedDesertScourge);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)
{
@@ -1225,8 +1225,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
DropHelper.DropItemChance(npc, ModContent.ItemType<PlaguebringerGoliathTrophy>(), 10);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgePlaguebringerGoliath>(), true, !CalamityWorld.downedPlaguebringer);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.WitchDoctor }, CalamityWorld.downedPlaguebringer);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)
{
@@ -444,8 +444,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
DropHelper.DropItem(npc, ModContent.ItemType<ProfanedCoreUnlimited>());
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeProfanedGuardians>(), true, !CalamityWorld.downedGuardians);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Wizard }, CalamityWorld.downedGuardians);
// Mark the Profaned Guardians as dead
CalamityWorld.downedGuardians = true;
CalamityNetcode.SyncWorld();
-2
View File
@@ -711,8 +711,6 @@ namespace CalamityMod.NPCs.Ravager
DropHelper.DropItemChance(npc, ModContent.ItemType<RavagerTrophy>(), 10);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeRavager>(), true, !CalamityWorld.downedScavenger);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.WitchDoctor }, CalamityWorld.downedScavenger);
// All other drops are contained in the bag, so they only drop directly on Normal
if (!Main.expertMode)
{
+1 -1
View File
@@ -664,7 +664,7 @@ namespace CalamityMod.NPCs.SlimeGod
DropHelper.DropItemChance(npc, ModContent.ItemType<SlimeGodTrophy>(), 10);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeSlimeGod>(), true, !CalamityWorld.downedSlimeGod);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Dryad, ModContent.NPCType<THIEF>() }, CalamityWorld.downedSlimeGod);
CalamityGlobalTownNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, CalamityWorld.downedSlimeGod);
// Purified Jam is once per player, but drops for all players.
CalamityPlayer mp = Main.player[Player.FindClosest(npc.position, npc.width, npc.height)].Calamity();