shop variable updates

This commit is contained in:
Altixal committed 2024-10-21 06:49:03 +07:00
1 parent 664c9b107d
commit 61efe5de48
6 files changed
+8 -16

No files matched your search

@@ -279,8 +279,6 @@ namespace CalamityMod.NPCs.AquaticScourge
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<SEAHOE>() }, DownedBossSystem.downedAquaticScourge);
// If Aquatic Scourge has not yet been killed, notify players of buffed Acid Rain
if (!DownedBossSystem.downedAquaticScourge)
{
+1 -1
View File
@@ -431,7 +431,7 @@ namespace CalamityMod.NPCs.AstrumAureus
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { NPCID.Wizard, ModContent.NPCType<FAP>() }, DownedBossSystem.downedAstrumAureus);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<FAP>() }, DownedBossSystem.downedAstrumAureus);
// If Astrum Aureus has not yet been killed, notify players of new Astral enemy drops
if (!DownedBossSystem.downedAstrumAureus)
@@ -247,8 +247,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { NPCID.Wizard }, DownedBossSystem.downedBrimstoneElemental);
// Mark brimmy as dead
DownedBossSystem.downedBrimstoneElemental = true;
CalamityNetcode.SyncWorld();
+7 -7
View File
@@ -1822,7 +1822,7 @@ DukeEditFailed:
// On-kill NON-LOOT behavior for Eater of Worlds
if ((npc.boss && (npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsTail)) || npc.type == NPCID.BrainofCthulhu)
{
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss2);
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad }, NPC.downedBoss2);
SetNewBossJustDowned(npc);
}
@@ -1835,7 +1835,7 @@ DukeEditFailed:
break;
case NPCID.EyeofCthulhu:
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss1);
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad }, NPC.downedBoss1);
SetNewBossJustDowned(npc);
break;
@@ -1849,7 +1849,7 @@ DukeEditFailed:
break;
case NPCID.SkeletronHead:
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss3);
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad }, NPC.downedBoss3);
SetNewBossJustDowned(npc);
// First kill: Notify of Abyss chests being unlocked.
@@ -1865,7 +1865,7 @@ DukeEditFailed:
break;
case NPCID.WallofFlesh:
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad, NPCID.Painter, NPCID.WitchDoctor, NPCID.Stylist, NPCID.DyeTrader, NPCID.Demolitionist, NPCID.PartyGirl, NPCID.Clothier, NPCID.SkeletonMerchant, NPCID.BestiaryGirl, ModContent.NPCType<THIEF>() }, Main.hardMode);
SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.ArmsDealer, NPCID.Dryad, NPCID.Painter, NPCID.WitchDoctor, NPCID.Stylist, NPCID.DyeTrader, NPCID.Demolitionist, NPCID.PartyGirl, NPCID.Clothier, NPCID.SkeletonMerchant, NPCID.BestiaryGirl }, Main.hardMode);
SetNewBossJustDowned(npc);
if (!Main.hardMode && !BossRushEvent.BossRushActive)
@@ -1891,7 +1891,7 @@ DukeEditFailed:
break;
case NPCID.TheDestroyer:
SetNewShopVariable(new int[] { NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
@@ -1903,7 +1903,7 @@ DukeEditFailed:
case NPCID.Retinazer:
if (lastTwinStanding)
{
SetNewShopVariable(new int[] { NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
@@ -1913,7 +1913,7 @@ DukeEditFailed:
break;
case NPCID.SkeletronPrime:
SetNewShopVariable(new int[] { NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Demolitionist, NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || !NPC.downedMechBoss2 || NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
-2
View File
@@ -552,8 +552,6 @@ namespace CalamityMod.NPCs.Perforator
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { NPCID.Dryad }, DownedBossSystem.downedPerforator);
// If neither The Hive Mind nor The Perforator Hive have been killed yet, notify players of Aerialite Ore
if (!DownedBossSystem.downedHiveMind && !DownedBossSystem.downedPerforator)
{
-2
View File
@@ -776,8 +776,6 @@ namespace CalamityMod.NPCs.SlimeGod
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, DownedBossSystem.downedSlimeGod);
// Mark the Slime God as dead
DownedBossSystem.downedSlimeGod = true;
CalamityNetcode.SyncWorld();