1 - Challenge drops are now a 10% drop chance from their respective bosses.

This commit is contained in:
mountaindrew10 committed 2022-03-12 04:30:18 -06:00
1 parent 924bf94b20
commit dfb4e050c6
31 files changed
+121 -99

No files matched your search

+17 -12
View File
@@ -46,12 +46,12 @@ namespace CalamityMod.Items
switch (itemID)
{
case ItemID.KingSlimeBossBag:
DropHelper.DropItemChance(player, ModContent.ItemType<CrownJewel>(), DropHelper.BagWeaponDropRateFloat);
DropHelper.DropItemChance(player, ModContent.ItemType<CrownJewel>(), 0.1f);
break;
case ItemID.EyeOfCthulhuBossBag:
DropHelper.DropItemChance(player, ModContent.ItemType<DeathstareRod>(), DropHelper.BagWeaponDropRateFloat);
DropHelper.DropItemChance(player, ModContent.ItemType<TeardropCleaver>(), DropHelper.BagWeaponDropRateFloat);
DropHelper.DropItemChance(player, ModContent.ItemType<TeardropCleaver>(), 0.1f);
break;
case ItemID.EaterOfWorldsBossBag:
@@ -70,12 +70,13 @@ namespace CalamityMod.Items
{
ItemID.BeeKeeper,
ItemID.BeesKnees,
ItemID.BeeGun,
ModContent.ItemType<TheBee>()
ItemID.BeeGun
};
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, queenBeeWeapons);
DropHelper.BlockDrops(queenBeeWeapons);
DropHelper.DropItemChance(player, ModContent.ItemType<TheBee>(), 0.1f);
DropHelper.DropItem(player, ItemID.Stinger, 8, 12); // Extra stingers
DropHelper.DropItem(player, ModContent.ItemType<HardenedHoneycomb>(), 50, 75);
break;
@@ -89,12 +90,13 @@ namespace CalamityMod.Items
ModContent.ItemType<Meowthrower>(),
ItemID.LaserRifle,
ModContent.ItemType<BlackHawkRemote>(),
ModContent.ItemType<BlastBarrel>(),
ModContent.ItemType<Carnage>()
ModContent.ItemType<BlastBarrel>()
};
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, wofWeapons);
DropHelper.BlockDrops(wofWeapons);
DropHelper.DropItemChance(player, ModContent.ItemType<Carnage>(), 0.1f);
// Drop emblems Calamity style instead of mutually exclusive -- this includes the Rogue Emblem.
int[] emblems = new int[]
{
@@ -120,7 +122,7 @@ namespace CalamityMod.Items
if ((!NPC.downedMechBoss1 || !NPC.downedMechBoss2 || !NPC.downedMechBoss3) && CalamityConfig.Instance.EarlyHardmodeProgressionRework)
DropHelper.BlockDrops(ItemID.HallowedBar);
DropHelper.DropItemChance(player, ModContent.ItemType<Arbalest>(), DropHelper.BagWeaponDropRateFloat);
DropHelper.DropItemChance(player, ModContent.ItemType<Arbalest>(), 0.1f);
break;
case ItemID.SkeletronPrimeBossBag:
@@ -141,12 +143,13 @@ namespace CalamityMod.Items
ItemID.LeafBlower,
ItemID.NettleBurst,
ItemID.WaspGun,
ModContent.ItemType<BlossomFlux>(),
ModContent.ItemType<BloomStone>()
};
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, planteraWeapons);
DropHelper.BlockDrops(planteraWeapons);
DropHelper.DropItemChance(player, ModContent.ItemType<BlossomFlux>(), 0.1f);
DropHelper.DropItem(player, ModContent.ItemType<LivingShard>(), 16, 22);
break;
@@ -160,12 +163,13 @@ namespace CalamityMod.Items
ItemID.HeatRay,
ItemID.StaffofEarth,
ItemID.EyeoftheGolem,
ItemID.SunStone,
ModContent.ItemType<AegisBlade>()
ItemID.SunStone
};
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, golemItems);
DropHelper.BlockDrops(golemItems);
DropHelper.DropItemChance(player, ModContent.ItemType<AegisBlade>(), 0.1f);
// The Picksaw always drops if the player doesn't have one in their inventory. Otherwise it has a 25% chance.
bool playerHasPicksaw = player.InventoryHas(ItemID.Picksaw);
DropHelper.DropItemChance(player, ItemID.Picksaw, playerHasPicksaw ? 0.25f : 1.0f);
@@ -196,11 +200,12 @@ namespace CalamityMod.Items
ItemID.RazorbladeTyphoon,
ItemID.TempestStaff,
ItemID.FishronWings,
ModContent.ItemType<DukesDecapitator>(),
ModContent.ItemType<BrinyBaron>()
ModContent.ItemType<DukesDecapitator>()
};
DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, dukeWeapons);
DropHelper.BlockDrops(dukeWeapons);
DropHelper.DropItemChance(player, ModContent.ItemType<BrinyBaron>(), 0.1f);
break;
case ItemID.MoonLordBossBag:
+4 -4
View File
@@ -55,16 +55,16 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<Downpour>(w),
DropHelper.WeightStack<DeepseaStaff>(w),
DropHelper.WeightStack<ScourgeoftheSeas>(w),
DropHelper.WeightStack<DeepDiver>(w),
DropHelper.WeightStack<SeasSearing>(w),
DropHelper.WeightStack<CorrosiveSpine>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<AquaticEmblem>());
DropHelper.DropItemChance(player, ModContent.ItemType<DeepDiver>(), 0.1f);
DropHelper.DropItemChance(player, ModContent.ItemType<SeasSearing>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<AquaticScourgeMask>(), 7);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<AquaticScourgeMask>(), 7);
// Fishing
DropHelper.DropItem(player, ModContent.ItemType<BleachedAnglingKit>());
+2 -2
View File
@@ -55,13 +55,13 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<AuroraBlazer>(w),
DropHelper.WeightStack<AlulaAustralis>(w),
DropHelper.WeightStack<BorealisBomber>(w),
DropHelper.WeightStack<AuroradicalThrow>(w),
DropHelper.WeightStack<LeonidProgenitor>(w)
DropHelper.WeightStack<AuroradicalThrow>(w)
);
// Equipment
DropHelper.DropItemCondition(player, ModContent.ItemType<SquishyBeanMount>(), NPC.downedMoonlord);
DropHelper.DropItem(player, ModContent.ItemType<GravistarSabaton>());
DropHelper.DropItemChance(player, ModContent.ItemType<LeonidProgenitor>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<AureusMask>(), 7);
+2 -2
View File
@@ -54,14 +54,14 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<Brimlance>(w),
DropHelper.WeightStack<SeethingDischarge>(w),
DropHelper.WeightStack<DormantBrimseeker>(w),
DropHelper.WeightStack<Hellborn>(w),
DropHelper.WeightStack<FabledTortoiseShell>(w),
DropHelper.WeightStack<RoseStone>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<Abaddon>());
DropHelper.DropItem(player, ModContent.ItemType<Gehenna>());
DropHelper.DropItemChance(player, ModContent.ItemType<Hellborn>(), 0.1f);
DropHelper.DropItemChance(player, ModContent.ItemType<FabledTortoiseShell>(), 0.1f);
DropHelper.DropItemCondition(player, ModContent.ItemType<Brimrose>(), CalamityWorld.downedProvidence);
// Vanity
+3 -3
View File
@@ -49,12 +49,12 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<GildedProboscis>(w),
DropHelper.WeightStack<GoldenEagle>(w),
DropHelper.WeightStack<RougeSlash>(w),
DropHelper.WeightStack<Swordsplosion>(w),
DropHelper.WeightStack<BirdSeed>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<DynamoStemCells>());
// Equipment
DropHelper.DropItemChance(player, ModContent.ItemType<Swordsplosion>(), 0.1f);
DropHelper.DropItem(player, ModContent.ItemType<DynamoStemCells>());
DropHelper.DropItemCondition(player, ModContent.ItemType<RedLightningContainer>(), CalamityWorld.revenge && !player.Calamity().rageBoostThree);
// Vanity
+3 -3
View File
@@ -56,15 +56,15 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<Animosity>(w),
DropHelper.WeightStack<CalamitasInferno>(w),
DropHelper.WeightStack<BlightedEyeStaff>(w),
DropHelper.WeightStack<Regenator>(w),
DropHelper.WeightStack<ChaosStone>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<CalamityRing>());
DropHelper.DropItemChance(player, ModContent.ItemType<Regenator>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<CalamitasMask>(), 7);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<CalamitasMask>(), 7);
if (Main.rand.NextBool(10))
{
DropHelper.DropItem(player, ModContent.ItemType<CalamityHood>());
+1 -1
View File
@@ -57,12 +57,12 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<SnowstormStaff>(w),
DropHelper.WeightStack<Icebreaker>(w),
DropHelper.WeightStack<CryoStone>(w),
DropHelper.WeightStack<ColdDivinity>(w),
DropHelper.WeightStack<FrostFlare>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<SoulofCryogen>());
DropHelper.DropItemChance(player, ModContent.ItemType<ColdDivinity>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<CryogenMask>(), 7);
+3 -3
View File
@@ -64,13 +64,13 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<Deathwind>(w),
DropHelper.WeightStack<DeathhailStaff>(w),
DropHelper.WeightStack<StaffoftheMechworm>(w),
DropHelper.WeightStack<Eradicator>(w),
DropHelper.WeightStack<CosmicDischarge>(w),
DropHelper.WeightStack<Norfleet>(w)
DropHelper.WeightStack<Eradicator>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<NebulousCore>());
DropHelper.DropItemChance(player, ModContent.ItemType<Norfleet>(), 0.1f);
DropHelper.DropItemChance(player, ModContent.ItemType<CosmicDischarge>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<DevourerofGodsMask>(), 7);
+4 -4
View File
@@ -53,15 +53,15 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<GastricBelcherStaff>(w),
DropHelper.WeightStack<BrackishFlask>(w),
DropHelper.WeightStack<LeviathanTeeth>(w),
DropHelper.WeightStack<LureofEnthrallment>(w),
DropHelper.WeightStack<TheCommunity>(w)
DropHelper.WeightStack<LureofEnthrallment>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<LeviathanAmbergris>());
DropHelper.DropItemChance(player, ModContent.ItemType<TheCommunity>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<LeviathanMask>(), 7);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<LeviathanMask>(), 7);
DropHelper.DropItemChance(player, ModContent.ItemType<AnahitaMask>(), 7);
// Fishing
+1 -1
View File
@@ -52,12 +52,12 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<VitriolicViper>(w),
DropHelper.WeightStack<CadaverousCarrion>(w),
DropHelper.WeightStack<ToxicantTwister>(w),
DropHelper.WeightStack<TheReaper>(w),
DropHelper.WeightStack<DukeScales>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<MutatedTruffle>());
DropHelper.DropItemChance(player, ModContent.ItemType<TheReaper>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<OldDukeMask>(), 7);
@@ -59,12 +59,12 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<PlagueStaff>(w),
DropHelper.WeightStack<FuelCellBundle>(w),
DropHelper.WeightStack<InfectedRemote>(w),
DropHelper.WeightStack<TheSyringe>(w),
DropHelper.WeightStack<Malachite>(w)
DropHelper.WeightStack<TheSyringe>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<ToxicHeart>());
DropHelper.DropItemChance(player, ModContent.ItemType<Malachite>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<PlaguebringerGoliathMask>(), 7);
+2 -2
View File
@@ -56,12 +56,12 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<BlissfulBombardier>(w),
DropHelper.WeightStack<PurgeGuzzler>(w),
DropHelper.WeightStack<DazzlingStabberStaff>(w),
DropHelper.WeightStack<MoltenAmputator>(w),
DropHelper.WeightStack<PristineFury>(w)
DropHelper.WeightStack<MoltenAmputator>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<BlazingCore>());
DropHelper.DropItemChance(player, ModContent.ItemType<PristineFury>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<ProvidenceMask>(), 7);
+2 -2
View File
@@ -55,8 +55,7 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<RealmRavager>(w),
DropHelper.WeightStack<Hematemesis>(w),
DropHelper.WeightStack<SpikecragStaff>(w),
DropHelper.WeightStack<CraniumSmasher>(w),
DropHelper.WeightStack<Vesuvius>(w)
DropHelper.WeightStack<CraniumSmasher>(w)
);
DropHelper.DropItemChance(player, ModContent.ItemType<CorpusAvertor>(), 0.05f);
@@ -65,6 +64,7 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.DropItemChance(player, ModContent.ItemType<FleshTotem>(), 0.5f);
DropHelper.DropItemCondition(player, ModContent.ItemType<BloodflareCore>(), CalamityWorld.downedProvidence);
DropHelper.DropItemCondition(player, ModContent.ItemType<InfernalBlood>(), CalamityWorld.revenge && !player.Calamity().rageBoostTwo);
DropHelper.DropItemChance(player, ModContent.ItemType<Vesuvius>(), 0.1f);
// Vanity
DropHelper.DropItemChance(player, ModContent.ItemType<RavagerMask>(), 7);
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.TreasureBags
// Weapons
DropHelper.DropItemChance(player, ModContent.ItemType<TheStorm>(), DropHelper.BagWeaponDropRateInt);
DropHelper.DropItemChance(player, ModContent.ItemType<StormDragoon>(), DropHelper.BagWeaponDropRateInt);
DropHelper.DropItemChance(player, ModContent.ItemType<Thunderstorm>(), DropHelper.BagWeaponDropRateInt);
DropHelper.DropItemChance(player, ModContent.ItemType<Thunderstorm>(), 0.1f);
// Equipment (None yet boohoo)
+2 -2
View File
@@ -52,13 +52,13 @@ namespace CalamityMod.Items.TreasureBags
DropHelper.WeightStack<PhoenixFlameBarrage>(w),
DropHelper.WeightStack<AngryChickenStaff>(w), // Yharon Kindle Staff
DropHelper.WeightStack<ProfanedTrident>(w), // Infernal Spear
DropHelper.WeightStack<FinalDawn>(w),
DropHelper.WeightStack<YharimsCrystal>(w)
DropHelper.WeightStack<FinalDawn>(w)
);
// Equipment
DropHelper.DropItem(player, ModContent.ItemType<DrewsWings>());
DropHelper.DropItem(player, ModContent.ItemType<YharimsGift>());
DropHelper.DropItemChance(player, ModContent.ItemType<YharimsCrystal>(), 0.1f);
int soulFragMin = 22;
int soulFragMax = 28;
+3 -2
View File
@@ -210,8 +210,6 @@ namespace CalamityMod.NPCs.AquaticScourge
DropHelper.WeightStack<Downpour>(w),
DropHelper.WeightStack<DeepseaStaff>(w),
DropHelper.WeightStack<ScourgeoftheSeas>(w),
DropHelper.WeightStack<SeasSearing>(w),
DropHelper.WeightStack<DeepDiver>(w),
DropHelper.WeightStack<CorrosiveSpine>(w)
);
@@ -225,6 +223,9 @@ namespace CalamityMod.NPCs.AquaticScourge
DropHelper.DropItem(npc, ModContent.ItemType<BleachedAnglingKit>());
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<DeepDiver>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<SeasSearing>(), !Main.expertMode, 0.1f);
// If Aquatic Scourge has not yet been killed, notify players of buffed Acid Rain
if (!CalamityWorld.downedAquaticScourge)
{
+5 -4
View File
@@ -342,8 +342,7 @@ namespace CalamityMod.NPCs.AstrumAureus
DropHelper.WeightStack<AuroraBlazer>(w),
DropHelper.WeightStack<AlulaAustralis>(w),
DropHelper.WeightStack<BorealisBomber>(w),
DropHelper.WeightStack<AuroradicalThrow>(w),
DropHelper.WeightStack<LeonidProgenitor>(w)
DropHelper.WeightStack<AuroradicalThrow>(w)
);
// Equipment
@@ -357,8 +356,10 @@ namespace CalamityMod.NPCs.AstrumAureus
DropHelper.DropItem(npc, ModContent.ItemType<AstralJelly>(), 9, 12);
}
// Other
DropHelper.DropItemChance(npc, ItemID.HallowedKey, 3);
DropHelper.DropItemCondition(npc, ModContent.ItemType<LeonidProgenitor>(), !Main.expertMode, 0.1f);
// Other
DropHelper.DropItemChance(npc, ItemID.HallowedKey, 3);
// Drop an Astral Meteor if applicable
ThreadPool.QueueUserWorkItem(_ => AstralBiome.PlaceAstralMeteor());
@@ -174,8 +174,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
DropHelper.WeightStack<Brimlance>(w),
DropHelper.WeightStack<SeethingDischarge>(w),
DropHelper.WeightStack<DormantBrimseeker>(w),
DropHelper.WeightStack<Hellborn>(w),
DropHelper.WeightStack<FabledTortoiseShell>(w),
DropHelper.WeightStack<RoseStone>(w)
);
@@ -188,6 +186,9 @@ namespace CalamityMod.NPCs.BrimstoneElemental
DropHelper.DropItemChance(npc, ModContent.ItemType<BrimstoneWaifuMask>(), 7);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<FabledTortoiseShell>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<Hellborn>(), !Main.expertMode, 0.1f);
// mark brimmy as dead
CalamityWorld.downedBrimstoneElemental = true;
CalamityNetcode.SyncWorld();
+4 -3
View File
@@ -413,7 +413,6 @@ namespace CalamityMod.NPCs.Bumblebirb
DropHelper.WeightStack<GildedProboscis>(w),
DropHelper.WeightStack<GoldenEagle>(w),
DropHelper.WeightStack<RougeSlash>(w),
DropHelper.WeightStack<Swordsplosion>(w),
DropHelper.WeightStack<BirdSeed>(w)
);
@@ -424,8 +423,10 @@ namespace CalamityMod.NPCs.Bumblebirb
DropHelper.DropItemChance(npc, ModContent.ItemType<BumblefuckMask>(), 7);
}
// Mark The Dragonfolly as dead
CalamityWorld.downedBumble = true;
DropHelper.DropItemCondition(npc, ModContent.ItemType<Swordsplosion>(), !Main.expertMode, 0.1f);
// Mark The Dragonfolly as dead
CalamityWorld.downedBumble = true;
CalamityNetcode.SyncWorld();
}
+2 -1
View File
@@ -190,7 +190,6 @@ namespace CalamityMod.NPCs.Calamitas
DropHelper.WeightStack<Animosity>(w),
DropHelper.WeightStack<CalamitasInferno>(w),
DropHelper.WeightStack<BlightedEyeStaff>(w),
DropHelper.WeightStack<Regenator>(w),
DropHelper.WeightStack<ChaosStone>(w)
);
@@ -206,6 +205,8 @@ namespace CalamityMod.NPCs.Calamitas
}
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<Regenator>(), !Main.expertMode, 0.1f);
// Abyss awakens after killing Calamitas
string key = "Mods.CalamityMod.PlantBossText";
Color messageColor = Color.RoyalBlue;
+25 -21
View File
@@ -101,7 +101,7 @@ namespace CalamityMod.NPCs
DropHelper.DropItemSpray(npc, ItemID.Gel, minGel, maxGel, 4);
DropHelper.DropItemCondition(npc, ItemID.RoyalGel, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<CrownJewel>(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat);
DropHelper.DropItemCondition(npc, ModContent.ItemType<CrownJewel>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeKingSlime>(), true, !NPC.downedSlimeKing);
SetNewShopVariable(new int[] { NPCID.Dryad }, NPC.downedSlimeKing);
@@ -111,7 +111,7 @@ namespace CalamityMod.NPCs
{
DropHelper.DropItemCondition(npc, ItemID.EoCShield, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<TeardropCleaver>(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat);
DropHelper.DropItemCondition(npc, ModContent.ItemType<TeardropCleaver>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<DeathstareRod>(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat);
@@ -147,7 +147,7 @@ namespace CalamityMod.NPCs
DropHelper.DropItemCondition(npc, ItemID.HiveBackpack, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<TheBee>(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat);
DropHelper.DropItemCondition(npc, ModContent.ItemType<TheBee>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ItemID.Stinger, !Main.expertMode, 5, 10); // Extra stingers
DropHelper.DropItemCondition(npc, ModContent.ItemType<HardenedHoneycomb>(), !Main.expertMode, 30, 50);
@@ -178,14 +178,13 @@ namespace CalamityMod.NPCs
ModContent.ItemType<Meowthrower>(),
ItemID.LaserRifle,
ModContent.ItemType<BlackHawkRemote>(),
ModContent.ItemType<BlastBarrel>(),
ModContent.ItemType<Carnage>()
ModContent.ItemType<BlastBarrel>()
};
DropHelper.DropEntireSet(npc, DropHelper.NormalWeaponDropRateFloat, wofWeapons);
DropHelper.BlockDrops(wofWeapons);
// Drop emblems Calamity style instead of mutually exclusive -- this includes the Rogue Emblem.
int[] emblems = new int[]
// Drop emblems Calamity style instead of mutually exclusive -- this includes the Rogue Emblem.
int[] emblems = new int[]
{
ItemID.WarriorEmblem,
ItemID.RangerEmblem,
@@ -197,8 +196,10 @@ namespace CalamityMod.NPCs
DropHelper.BlockDrops(emblems);
}
// Drop Hermit's Box directly for EACH player, regardles of Expert or not. 100% chance on first kill, 10% chance afterwards.
float hermitBoxChance = Main.hardMode ? 1f : 0.1f;
DropHelper.DropItemCondition(npc, ModContent.ItemType<Carnage>(), !Main.expertMode, 0.1f);
// Drop Hermit's Box directly for EACH player, regardles of Expert or not. 100% chance on first kill, 10% chance afterwards.
float hermitBoxChance = Main.hardMode ? 1f : 0.1f;
DropHelper.DropItemChance(npc, ModContent.ItemType<IbarakiBox>(), true, hermitBoxChance);
DropHelper.DropItemFromSetChance(npc, DropHelper.BagWeaponDropRateFloat, ItemID.CorruptionKey, ItemID.CrimsonKey);
@@ -240,9 +241,9 @@ namespace CalamityMod.NPCs
DropHelper.DropItemCondition(npc, ModContent.ItemType<MysteriousCircuitry>(), Main.expertMode, DraedonMayhem, 8, 16);
DropHelper.DropItemCondition(npc, ModContent.ItemType<DubiousPlating>(), Main.expertMode, DraedonMayhem, 8, 16);
DropHelper.DropItemCondition(npc, ModContent.ItemType<Arbalest>(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat);
DropHelper.DropItemCondition(npc, ModContent.ItemType<Arbalest>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeTwins>(), true, !NPC.downedMechBoss2);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeTwins>(), true, !NPC.downedMechBoss2);
SetNewShopVariable(new int[] { NPCID.DD2Bartender, NPCID.Stylist, NPCID.Truffle, ModContent.NPCType<THIEF>() }, NPC.downedMechBossAny);
SetNewShopVariable(new int[] { NPCID.Stylist, ModContent.NPCType<DILF>(), ModContent.NPCType<FAP>(), ModContent.NPCType<THIEF>() }, !NPC.downedMechBoss1 || NPC.downedMechBoss2 || !NPC.downedMechBoss3);
SetNewBossJustDowned(npc);
@@ -302,14 +303,15 @@ namespace CalamityMod.NPCs
ItemID.LeafBlower,
ItemID.NettleBurst,
ItemID.WaspGun,
ModContent.ItemType<BlossomFlux>(),
ModContent.ItemType<BloomStone>()
};
DropHelper.DropEntireSet(npc, DropHelper.NormalWeaponDropRateFloat, planteraWeapons);
DropHelper.BlockDrops(planteraWeapons);
}
DropHelper.DropItemCondition(npc, ItemID.SporeSac, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<BlossomFlux>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ItemID.SporeSac, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<LivingShard>(), !Main.expertMode, 12, 18);
DropHelper.DropItemChance(npc, ItemID.JungleKey, 3);
@@ -360,16 +362,17 @@ namespace CalamityMod.NPCs
ItemID.HeatRay,
ItemID.StaffofEarth,
ItemID.EyeoftheGolem,
ItemID.SunStone,
ModContent.ItemType<AegisBlade>()
ItemID.SunStone
};
DropHelper.DropEntireSet(npc, DropHelper.NormalWeaponDropRateFloat, golemItems);
DropHelper.BlockDrops(golemItems);
}
// If Golem has never been killed, provide a Picksaw to all players. This only applies in Normal Mode.
// The Golem Treasure Bag is guaranteed to provide a Picksaw if one is not yet in the inventory.
DropHelper.DropItemCondition(npc, ItemID.Picksaw, true, !Main.expertMode && !NPC.downedGolemBoss);
DropHelper.DropItemCondition(npc, ModContent.ItemType<AegisBlade>(), !Main.expertMode, 0.1f);
// If Golem has never been killed, provide a Picksaw to all players. This only applies in Normal Mode.
// The Golem Treasure Bag is guaranteed to provide a Picksaw if one is not yet in the inventory.
DropHelper.DropItemCondition(npc, ItemID.Picksaw, true, !Main.expertMode && !NPC.downedGolemBoss);
DropHelper.DropItemCondition(npc, ItemID.ShinyStone, true, !Main.expertMode);
@@ -421,14 +424,15 @@ namespace CalamityMod.NPCs
ItemID.RazorbladeTyphoon,
ItemID.TempestStaff,
ItemID.FishronWings,
ModContent.ItemType<DukesDecapitator>(),
ModContent.ItemType<BrinyBaron>()
ModContent.ItemType<DukesDecapitator>()
};
DropHelper.DropEntireSet(npc, DropHelper.NormalWeaponDropRateFloat, dukeWeapons);
DropHelper.BlockDrops(dukeWeapons);
}
DropHelper.DropItemCondition(npc, ItemID.ShrimpyTruffle, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<BrinyBaron>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ItemID.ShrimpyTruffle, true, !Main.expertMode);
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeDukeFishron>(), true, !NPC.downedFishron);
SetNewBossJustDowned(npc);
+2 -1
View File
@@ -1065,7 +1065,6 @@ namespace CalamityMod.NPCs.Cryogen
DropHelper.WeightStack<SnowstormStaff>(w),
DropHelper.WeightStack<Icebreaker>(w),
DropHelper.WeightStack<CryoStone>(w),
DropHelper.WeightStack<ColdDivinity>(w),
DropHelper.WeightStack<FrostFlare>(w)
);
@@ -1076,6 +1075,8 @@ namespace CalamityMod.NPCs.Cryogen
DropHelper.DropItemChance(npc, ModContent.ItemType<CryogenMask>(), 7);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<ColdDivinity>(), !Main.expertMode, 0.1f);
// Other
DropHelper.DropItemChance(npc, ItemID.FrozenKey, 3);
+4 -3
View File
@@ -2253,9 +2253,7 @@ namespace CalamityMod.NPCs.DevourerofGods
DropHelper.WeightStack<Deathwind>(w),
DropHelper.WeightStack<DeathhailStaff>(w),
DropHelper.WeightStack<StaffoftheMechworm>(w),
DropHelper.WeightStack<Eradicator>(w),
DropHelper.WeightStack<CosmicDischarge>(w),
DropHelper.WeightStack<Norfleet>(w)
DropHelper.WeightStack<Eradicator>(w)
);
// Equipment
@@ -2265,6 +2263,9 @@ namespace CalamityMod.NPCs.DevourerofGods
DropHelper.DropItemChance(npc, ModContent.ItemType<DevourerofGodsMask>(), 7);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<Norfleet>(), !Main.expertMode, 0.1f);
DropHelper.DropItemCondition(npc, ModContent.ItemType<CosmicDischarge>(), !Main.expertMode, 0.1f);
// If DoG has not been killed yet, notify players that the holiday moons are buffed
if (!CalamityWorld.downedDoG)
{
+3 -2
View File
@@ -730,8 +730,7 @@ namespace CalamityMod.NPCs.Leviathan
DropHelper.WeightStack<GastricBelcherStaff>(w),
DropHelper.WeightStack<BrackishFlask>(w),
DropHelper.WeightStack<LeviathanTeeth>(w),
DropHelper.WeightStack<LureofEnthrallment>(w),
DropHelper.WeightStack<TheCommunity>(w)
DropHelper.WeightStack<LureofEnthrallment>(w)
);
// Equipment
@@ -750,6 +749,8 @@ namespace CalamityMod.NPCs.Leviathan
DropHelper.DropItemChance(npc, ItemID.CratePotion, 5, 5, 8);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<TheCommunity>(), !Main.expertMode, 0.1f);
// Mark Siren & Levi as dead
CalamityWorld.downedLeviathan = true;
CalamityNetcode.SyncWorld();
+4 -3
View File
@@ -397,7 +397,6 @@ namespace CalamityMod.NPCs.OldDuke
DropHelper.WeightStack<VitriolicViper>(w),
DropHelper.WeightStack<CadaverousCarrion>(w),
DropHelper.WeightStack<ToxicantTwister>(w),
DropHelper.WeightStack<TheReaper>(w),
DropHelper.WeightStack<DukeScales>(w)
);
@@ -408,8 +407,10 @@ namespace CalamityMod.NPCs.OldDuke
DropHelper.DropItemChance(npc, ModContent.ItemType<OldDukeMask>(), 7);
}
// Mark Old Duke as dead
CalamityWorld.downedBoomerDuke = true;
DropHelper.DropItemCondition(npc, ModContent.ItemType<TheReaper>(), !Main.expertMode, 0.1f);
// Mark Old Duke as dead
CalamityWorld.downedBoomerDuke = true;
// Mark first acid rain encounter as true even if he wasn't fought in the acid rain, because it makes sense
CalamityWorld.encounteredOldDuke = true;
@@ -1216,18 +1216,19 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
DropHelper.WeightStack<PlagueStaff>(w),
DropHelper.WeightStack<FuelCellBundle>(w),
DropHelper.WeightStack<InfectedRemote>(w),
DropHelper.WeightStack<TheSyringe>(w),
DropHelper.WeightStack<Malachite>(w)
DropHelper.WeightStack<TheSyringe>(w)
);
// Equipment
DropHelper.DropItem(npc, ModContent.ItemType<ToxicHeart>(), true);
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<PlaguebringerGoliathMask>(), 7);
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<PlaguebringerGoliathMask>(), 7);
DropHelper.DropItemChance(npc, ModContent.ItemType<PlagueCaller>(), 10);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<Malachite>(), !Main.expertMode, 0.1f);
// Mark PBG as dead
CalamityWorld.downedPlaguebringer = true;
CalamityNetcode.SyncWorld();
@@ -432,7 +432,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
DropHelper.DropItemChance(npc, ModContent.ItemType<ProfanedGuardianMask>(), 7);
DropHelper.DropItemChance(npc, ModContent.ItemType<ProfanedGuardianTrophy>(), 10);
DropHelper.DropItemChance(npc, ModContent.ItemType<RelicOfDeliverance>(), 4);
DropHelper.DropItem(npc, ModContent.ItemType<SamuraiBadge>(), true);
DropHelper.DropItemChance(npc, ModContent.ItemType<SamuraiBadge>(), 10);
DropHelper.DropItem(npc, ModContent.ItemType<ProfanedCoreUnlimited>());
DropHelper.DropItemCondition(npc, ModContent.ItemType<KnowledgeProfanedGuardians>(), true, !CalamityWorld.downedGuardians);
+4 -3
View File
@@ -1496,8 +1496,7 @@ namespace CalamityMod.NPCs.Providence
DropHelper.WeightStack<BlissfulBombardier>(w),
DropHelper.WeightStack<PurgeGuzzler>(w),
DropHelper.WeightStack<DazzlingStabberStaff>(w),
DropHelper.WeightStack<MoltenAmputator>(w),
DropHelper.WeightStack<PristineFury>(w)
DropHelper.WeightStack<MoltenAmputator>(w)
);
// Equipment
@@ -1507,7 +1506,9 @@ namespace CalamityMod.NPCs.Providence
DropHelper.DropItemChance(npc, ModContent.ItemType<ProvidenceMask>(), 7);
}
if (Main.netMode != NetmodeID.MultiplayerClient && npc.Top.Y >= (Main.maxTilesY - 240f) * 16f)
DropHelper.DropItemCondition(npc, ModContent.ItemType<PristineFury>(), !Main.expertMode, 0.1f);
if (Main.netMode != NetmodeID.MultiplayerClient && npc.Top.Y >= (Main.maxTilesY - 240f) * 16f)
SpawnLootBox();
// If Providence has not been killed, notify players of Uelibloom Ore
+3 -2
View File
@@ -787,8 +787,7 @@ namespace CalamityMod.NPCs.Ravager
DropHelper.WeightStack<RealmRavager>(w),
DropHelper.WeightStack<Hematemesis>(w),
DropHelper.WeightStack<SpikecragStaff>(w),
DropHelper.WeightStack<CraniumSmasher>(w),
DropHelper.WeightStack<Vesuvius>(w)
DropHelper.WeightStack<CraniumSmasher>(w)
);
// Equipment
@@ -800,6 +799,8 @@ namespace CalamityMod.NPCs.Ravager
DropHelper.DropItemChance(npc, ModContent.ItemType<RavagerMask>(), 7);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<Vesuvius>(), !Main.expertMode, 0.1f);
// Mark Ravager as dead
CalamityWorld.downedScavenger = true;
CalamityNetcode.SyncWorld();
+1 -1
View File
@@ -782,7 +782,7 @@ namespace CalamityMod.NPCs.StormWeaver
// Weapons
DropHelper.DropItemChance(npc, ModContent.ItemType<TheStorm>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<StormDragoon>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<Thunderstorm>(), 4);
DropHelper.DropItemChance(npc, ModContent.ItemType<Thunderstorm>(), 10);
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<StormWeaverMask>(), 7);
+3 -2
View File
@@ -2826,8 +2826,7 @@ namespace CalamityMod.NPCs.Yharon
DropHelper.WeightStack<PhoenixFlameBarrage>(w),
DropHelper.WeightStack<AngryChickenStaff>(w), // Yharon Kindle Staff
DropHelper.WeightStack<ProfanedTrident>(w), // Infernal Spear
DropHelper.WeightStack<FinalDawn>(w),
DropHelper.WeightStack<YharimsCrystal>(w)
DropHelper.WeightStack<FinalDawn>(w)
);
// Vanity
@@ -2845,6 +2844,8 @@ namespace CalamityMod.NPCs.Yharon
DropHelper.DropItem(npc, ModContent.ItemType<DrewsWings>(), true);
}
DropHelper.DropItemCondition(npc, ModContent.ItemType<YharimsCrystal>(), !Main.expertMode, 0.1f);
// Vanity
DropHelper.DropItemChance(npc, ModContent.ItemType<YharonTrophy>(), 10);