Merge branch '1.4' into sulph-sea-gen

This commit is contained in:
Dominic committed 2022-10-16 01:40:15 -05:00
commit 577131afde
37 files changed
+477 -337

No files matched your search

-9
View File
@@ -274,9 +274,6 @@ namespace CalamityMod.Balancing
// 15% resist to Enforcer projectiles.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<EssenceFlame2>()))));
// 10% resist to Seraphim lasers
// NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.AresIDs, Do(new ProjectileResistBalancingRule(0.9f, ProjectileType<SeraphimBeamLarge>()))));
#endregion Ares
#region Artemis and Apollo
@@ -293,9 +290,6 @@ namespace CalamityMod.Balancing
#region Thanatos
// 50% resist to Seraphim lasers (what the actual fuck?).
// NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<SeraphimBeamLarge>()))));
// 85% resist to Dynamic Pursuer (the whole thing lol).
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.ThanatosIDs, Do(new ProjectileResistBalancingRule(0.15f, ProjectileType<DynamicPursuerProjectile>(), ProjectileType<DynamicPursuerLaser>(), ProjectileType<DynamicPursuerElectricity>()))));
@@ -373,9 +367,6 @@ namespace CalamityMod.Balancing
// 20% resist to Executioner's Blade stealth strikes.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<BrimstoneHeart>(), new ProjectileResistBalancingRule(0.8f, ProjectileType<ExecutionersBladeStealthProj>())));
// 15% resist to Seraphim lasers.
// NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<BrimstoneHeart>(), new ProjectileResistBalancingRule(0.85f, ProjectileType<SeraphimBeamLarge>())));
#endregion
#region Supreme Calamitas / Soul Seekers
+14 -2
View File
@@ -135,7 +135,7 @@ namespace CalamityMod.Buffs
tip = "22.5% increased damage";
break;
case BuffID.BeetleMight1:
/*case BuffID.BeetleMight1:
tip = "Melee damage increased by 10%";
break;
@@ -145,7 +145,7 @@ namespace CalamityMod.Buffs
case BuffID.BeetleMight3:
tip = "Melee damage increased by 30%";
break;
break;*/
case BuffID.BeetleEndurance1:
tip = "Damage taken reduced by 10%";
@@ -188,6 +188,18 @@ namespace CalamityMod.Buffs
case BuffID.Daybreak:
tip = "Incinerated by solar rays";
break;
case BuffID.WellFed:
tip = "Minor improvements to all stats";
break;
case BuffID.WellFed2:
tip = "Medium improvements to all stats";
break;
case BuffID.WellFed3:
tip = "Major improvements to all stats";
break;
}
}
}
-1
View File
@@ -30,7 +30,6 @@ namespace CalamityMod.Buffs.StatBuffs
sb.Append("The nearby boss is:\n");
if (CalamityConfig.Instance.BossZen)
sb.Append("Greatly reducing enemy spawn rates\n");
sb.Append("Disabling teleportation effects\n");
sb.Append("Increasing Nurse healing cost by 400%\n");
sb.Append("Disabling Target and Super Dummy hitboxes");
+39 -31
View File
@@ -2188,11 +2188,6 @@ namespace CalamityMod
BossRushHPChanges = new SortedDictionary<int, int>
{
// Tier 1
{ NPCID.QueenBee, 315000 }, // 30 seconds
{ NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers
{ NPCID.Creeper, 10000 },
{ NPCID.KingSlime, 300000 }, // 30 seconds
{ NPCID.BlueSlime, 3600 },
{ NPCID.SlimeSpiked, 7200 },
@@ -2208,38 +2203,57 @@ namespace CalamityMod
{ NPCID.EyeofCthulhu, 450000 }, // 30 seconds
{ NPCID.ServantofCthulhu, 6000 },
{ NPCID.SkeletronPrime, 110000 }, // 30 seconds
{ NPCID.EaterofWorldsHead, 10000 }, // 30 seconds + immunity timer at start
{ NPCID.EaterofWorldsBody, 10000 },
{ NPCID.EaterofWorldsTail, 10000 },
{ NPCID.BrainofCthulhu, 100000 }, // 30 seconds with creepers
{ NPCID.Creeper, 10000 },
{ NPCID.QueenBee, 315000 }, // 30 seconds
{ NPCID.Deerclops, 315000 }, // 30 seconds
{ NPCID.SkeletronHead, 160000 }, // 30 seconds
{ NPCID.SkeletronHand, 60000 },
{ NPCID.WallofFlesh, 450000 }, // 30 seconds
{ NPCID.WallofFleshEye, 450000 },
// Tier 2
{ NPCID.QueenSlimeBoss, 100000 }, // 30 seconds
{ NPCID.QueenSlimeMinionBlue, 6000 },
{ NPCID.QueenSlimeMinionPink, 6000 },
{ NPCID.QueenSlimeMinionPurple, 5000 },
{ NPCID.Spazmatism, 150000 }, // 30 seconds
{ NPCID.Retinazer, 125000 },
{ NPCID.TheDestroyer, 250000 }, // 30 seconds + immunity timer at start
{ NPCID.TheDestroyerBody, 250000 },
{ NPCID.TheDestroyerTail, 250000 },
{ NPCID.Probe, 10000 },
{ NPCID.SkeletronPrime, 150000 }, // 30 seconds
{ NPCID.PrimeVice, 54000 },
{ NPCID.PrimeCannon, 45000 },
{ NPCID.PrimeSaw, 45000 },
{ NPCID.PrimeLaser, 38000 },
{ NPCID.Plantera, 160000 }, // 30 seconds
{ NPCID.PlanterasTentacle, 40000 },
// Tier 3
{ NPCID.Golem, 50000 }, // 30 seconds
{ NPCID.GolemHead, 30000 },
{ NPCID.GolemHeadFree, 30000 },
{ NPCID.GolemFistLeft, 25000 },
{ NPCID.GolemFistRight, 25000 },
{ NPCID.EaterofWorldsHead, 10000 }, // 30 seconds + immunity timer at start
{ NPCID.EaterofWorldsBody, 10000 },
{ NPCID.EaterofWorldsTail, 10000 },
{ NPCID.HallowBoss, 180000 }, // 30 seconds
// Tier 2
{ NPCID.TheDestroyer, 250000 }, // 30 seconds + immunity timer at start
{ NPCID.TheDestroyerBody, 250000 },
{ NPCID.TheDestroyerTail, 250000 },
{ NPCID.Probe, 10000 },
{ NPCID.DukeFishron, 290000 }, // 30 seconds
{ NPCID.Spazmatism, 150000 }, // 30 seconds
{ NPCID.Retinazer, 125000 },
{ NPCID.WallofFlesh, 450000 }, // 30 seconds
{ NPCID.WallofFleshEye, 450000 },
{ NPCID.SkeletronHead, 160000 }, // 30 seconds
{ NPCID.SkeletronHand, 60000 },
// Tier 3
{ NPCID.CultistBoss, 220000 }, // 30 seconds
{ NPCID.CultistDragonHead, 60000 },
{ NPCID.CultistDragonBody1, 60000 },
@@ -2249,18 +2263,12 @@ namespace CalamityMod
{ NPCID.CultistDragonTail, 60000 },
{ NPCID.AncientCultistSquidhead, 50000 },
{ NPCID.Plantera, 160000 }, // 30 seconds
{ NPCID.PlanterasTentacle, 40000 },
// Tier 4
{ NPCID.DukeFishron, 290000 }, // 30 seconds
{ NPCID.MoonLordCore, 160000 }, // 1 minute
{ NPCID.MoonLordHand, 45000 },
{ NPCID.MoonLordHead, 60000 },
{ NPCID.MoonLordLeechBlob, 800 }
// 8 minutes in total for vanilla Boss Rush bosses
// 9.5 minutes in total for vanilla Boss Rush bosses
};
BossValues = new SortedDictionary<int, int>
+198 -155
View File
@@ -1,6 +1,8 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer;
using CalamityMod.Items.SummonItems;
using CalamityMod.NPCs.Abyss;
using CalamityMod.NPCs.AdultEidolonWyrm;
using CalamityMod.NPCs.AquaticScourge;
using CalamityMod.NPCs.AstrumAureus;
using CalamityMod.NPCs.AstrumDeus;
@@ -12,6 +14,11 @@ using CalamityMod.NPCs.Crabulon;
using CalamityMod.NPCs.Cryogen;
using CalamityMod.NPCs.DesertScourge;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.NPCs.ExoMechs;
using CalamityMod.NPCs.ExoMechs.Ares;
using CalamityMod.NPCs.ExoMechs.Thanatos;
using ApolloBoss = CalamityMod.NPCs.ExoMechs.Apollo.Apollo;
using ArtemisBoss = CalamityMod.NPCs.ExoMechs.Artemis.Artemis;
using CalamityMod.NPCs.HiveMind;
using CalamityMod.NPCs.Leviathan;
using CalamityMod.NPCs.NormalNPCs;
@@ -28,17 +35,19 @@ using CalamityMod.NPCs.StormWeaver;
using CalamityMod.NPCs.SupremeCalamitas;
using CalamityMod.NPCs.Yharon;
using CalamityMod.Projectiles.Typeless;
using CalamityMod.Skies;
using CalamityMod.UI.DraedonSummoning;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent.Events;
using CalamityMod.Skies;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Events
{
@@ -134,48 +143,41 @@ namespace CalamityMod.Events
// TODO -- Multiple different lists might be ideal for this at some point instead of a god-struct? This is a lot of parameters.
Bosses = new List<Boss>()
{
new Boss(NPCID.QueenBee),
new Boss(NPCID.BrainofCthulhu, permittedNPCs: NPCID.Creeper),
new Boss(NPCID.KingSlime, permittedNPCs: new int[] { NPCID.BlueSlime, NPCID.YellowSlime, NPCID.PurpleSlime, NPCID.RedSlime, NPCID.GreenSlime, NPCID.RedSlime,
NPCID.IceSlime, NPCID.UmbrellaSlime, NPCID.Pinky, NPCID.SlimeSpiked, NPCID.RainbowSlime, ModContent.NPCType<KingSlimeJewel>() }),
new Boss(ModContent.NPCType<DesertScourgeHead>(), spawnContext: type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHead>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
}, permittedNPCs: new int[] { ModContent.NPCType<DesertScourgeBody>(), ModContent.NPCType<DesertScourgeTail>(), ModContent.NPCType<DesertNuisanceHead>(),
ModContent.NPCType<DesertNuisanceBody>(), ModContent.NPCType<DesertNuisanceTail>() }),
new Boss(NPCID.EyeofCthulhu, TimeChangeContext.Night, permittedNPCs: NPCID.ServantofCthulhu),
new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }),
new Boss(NPCID.Golem, TimeChangeContext.Day, type =>
new Boss(ModContent.NPCType<Crabulon>(), spawnContext: type =>
{
int shittyStatueBoss = NPC.NewNPC(Source, (int)(Main.player[ClosestPlayerToWorldCenter].position.X + Main.rand.Next(-100, 101)), (int)(Main.player[ClosestPlayerToWorldCenter].position.Y - 400f), type, 1);
Main.npc[shittyStatueBoss].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(shittyStatueBoss);
}, permittedNPCs: new int[] { NPCID.GolemFistLeft, NPCID.GolemFistRight, NPCID.GolemHead, NPCID.GolemHeadFree }),
new Boss(ModContent.NPCType<ProfanedGuardianCommander>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.NPCType<ProfanedGuardianHealer>() }),
Player player = Main.player[ClosestPlayerToWorldCenter];
int thePefectOne = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[thePefectOne].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(thePefectOne);
}, specialSpawnCountdown: 300, permittedNPCs: ModContent.NPCType<CrabShroom>()),
new Boss(NPCID.EaterofWorldsHead, permittedNPCs: new int[] { NPCID.EaterofWorldsBody, NPCID.EaterofWorldsTail, NPCID.VileSpit }),
new Boss(ModContent.NPCType<AstrumAureus>(), TimeChangeContext.Night, permittedNPCs: ModContent.NPCType<AureusSpawn>()),
new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }),
new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Spazmatism);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer);
}, permittedNPCs: NPCID.Retinazer),
new Boss(ModContent.NPCType<Bumblefuck>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Bumblefuck2>(), NPCID.Spazmatism, NPCID.Retinazer }),
new Boss(NPCID.WallofFlesh, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
NPC.SpawnWOF(player.position);
}, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }),
new Boss(NPCID.BrainofCthulhu, permittedNPCs: NPCID.Creeper),
new Boss(ModContent.NPCType<HiveMind>(), permittedNPCs: new int[] { ModContent.NPCType<DankCreeper>(), ModContent.NPCType<DarkHeart>(), ModContent.NPCType<HiveBlob>(), ModContent.NPCType<HiveBlob2>() }),
new Boss(ModContent.NPCType<PerforatorHive>(), permittedNPCs: new int[] { ModContent.NPCType<PerforatorHeadLarge>(), ModContent.NPCType<PerforatorBodyLarge>(), ModContent.NPCType<PerforatorTailLarge>(),
ModContent.NPCType<PerforatorHeadMedium>(), ModContent.NPCType<PerforatorBodyMedium>(), ModContent.NPCType<PerforatorTailMedium>(), ModContent.NPCType<PerforatorHeadSmall>(),
ModContent.NPCType<PerforatorBodySmall>() ,ModContent.NPCType<PerforatorTailSmall>() }),
new Boss(NPCID.QueenBee),
new Boss(NPCID.Deerclops),
new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -184,23 +186,78 @@ namespace CalamityMod.Events
CalamityUtils.BossAwakenMessage(sans);
}, permittedNPCs: NPCID.SkeletronHand),
new Boss(ModContent.NPCType<StormWeaverHead>(), TimeChangeContext.Day, type =>
new Boss(ModContent.NPCType<SlimeGodCore>(), permittedNPCs: new int[] { ModContent.NPCType<EbonianSlimeGod>(), ModContent.NPCType<CrimulanSlimeGod>(), ModContent.NPCType<SplitEbonianSlimeGod>(), ModContent.NPCType<SplitCrimulanSlimeGod>(),
ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.NPCType<CorruptSlimeSpawn2>(), ModContent.NPCType<CrimsonSlimeSpawn>(), ModContent.NPCType<CrimsonSlimeSpawn2>() }),
new Boss(NPCID.WallofFlesh, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
NPC.SpawnWOF(player.position);
}, permittedNPCs: new int[] { NPCID.WallofFleshEye, NPCID.LeechHead, NPCID.LeechBody, NPCID.LeechTail, NPCID.TheHungry, NPCID.TheHungryII }),
SoundEngine.PlaySound(RuneofKos.StormSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<StormWeaverBody>(), ModContent.NPCType<StormWeaverTail>(), }),
new Boss(NPCID.QueenSlimeBoss, permittedNPCs: new int[] { NPCID.QueenSlimeMinionBlue, NPCID.QueenSlimeMinionPink, NPCID.QueenSlimeMinionPurple }),
new Boss(ModContent.NPCType<Cryogen>(), permittedNPCs: ModContent.NPCType<CryogenShield>()),
new Boss(NPCID.Spazmatism, TimeChangeContext.Night, type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Spazmatism);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, NPCID.Retinazer);
}, permittedNPCs: NPCID.Retinazer),
new Boss(ModContent.NPCType<AquaticScourgeHead>(), permittedNPCs: new int[] { ModContent.NPCType<AquaticScourgeBody>(), ModContent.NPCType<AquaticScourgeBodyAlt>(), ModContent.NPCType<AquaticScourgeTail>() }),
new Boss(ModContent.NPCType<DesertScourgeHead>(), spawnContext: type =>
new Boss(NPCID.TheDestroyer, TimeChangeContext.Night, specialSpawnCountdown: 300, permittedNPCs: new int[] { NPCID.TheDestroyerBody, NPCID.TheDestroyerTail, NPCID.Probe }),
new Boss(ModContent.NPCType<BrimstoneElemental>(), permittedNPCs: ModContent.NPCType<Brimling>()),
new Boss(NPCID.SkeletronPrime, TimeChangeContext.Night, permittedNPCs: new int[] { NPCID.PrimeCannon, NPCID.PrimeSaw, NPCID.PrimeVice, NPCID.PrimeLaser, NPCID.Probe }),
new Boss(ModContent.NPCType<CalamitasClone>(), TimeChangeContext.Night, specialSpawnCountdown: 300, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<Cataclysm>(), ModContent.NPCType<Catastrophe>(),
ModContent.NPCType<SoulSeeker>() }),
new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }),
new Boss(ModContent.NPCType<Anahita>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Leviathan>(), ModContent.NPCType<AquaticAberration>(),
ModContent.NPCType<AnahitasIceShield>(), NPCID.DetonatingBubble}),
new Boss(ModContent.NPCType<AstrumAureus>(), TimeChangeContext.Night, permittedNPCs: ModContent.NPCType<AureusSpawn>()),
new Boss(NPCID.Golem, TimeChangeContext.Day, type =>
{
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertScourgeHead>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, ModContent.NPCType<DesertNuisanceHead>());
}, permittedNPCs: new int[] { ModContent.NPCType<DesertScourgeBody>(), ModContent.NPCType<DesertScourgeTail>(), ModContent.NPCType<DesertNuisanceHead>(),
ModContent.NPCType<DesertNuisanceBody>(), ModContent.NPCType<DesertNuisanceTail>() }),
int shittyStatueBoss = NPC.NewNPC(Source, (int)(Main.player[ClosestPlayerToWorldCenter].position.X + Main.rand.Next(-100, 101)), (int)(Main.player[ClosestPlayerToWorldCenter].position.Y - 400f), type, 1);
Main.npc[shittyStatueBoss].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(shittyStatueBoss);
}, permittedNPCs: new int[] { NPCID.GolemFistLeft, NPCID.GolemFistRight, NPCID.GolemHead, NPCID.GolemHeadFree }),
new Boss(ModContent.NPCType<PlaguebringerGoliath>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Abombination.UseSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<PlagueHomingMissile>(), ModContent.NPCType<PlagueMine>() }),
new Boss(NPCID.HallowBoss, TimeChangeContext.Night),
new Boss(NPCID.DukeFishron, TimeChangeContext.Day, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int dukeFishron = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[dukeFishron].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(dukeFishron);
}, permittedNPCs: new int[] { NPCID.DetonatingBubble, NPCID.Sharkron, NPCID.Sharkron2 }),
new Boss(ModContent.NPCType<RavagerBody>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(SoundID.ScaryScream, player.position);
int ravager = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[ravager].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(ravager);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<FlamePillar>(), ModContent.NPCType<RockPillar>(), ModContent.NPCType<RavagerLegLeft>(), ModContent.NPCType<RavagerLegRight>(),
ModContent.NPCType<RavagerClawLeft>(), ModContent.NPCType<RavagerClawRight>() }),
new Boss(NPCID.CultistBoss, spawnContext: type =>
{
@@ -212,7 +269,7 @@ namespace CalamityMod.Events
}, permittedNPCs: new int[] { NPCID.CultistBossClone, NPCID.CultistDragonHead, NPCID.CultistDragonBody1, NPCID.CultistDragonBody2, NPCID.CultistDragonBody3, NPCID.CultistDragonBody4,
NPCID.CultistDragonTail, NPCID.AncientCultistSquidhead, NPCID.AncientLight, NPCID.AncientDoom }),
new Boss(ModContent.NPCType<Crabulon>(), spawnContext: type =>
new Boss(ModContent.NPCType<AstrumDeusHead>(), TimeChangeContext.Night, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
@@ -226,103 +283,23 @@ namespace CalamityMod.Events
Main.npc[doom].netUpdate = true;
}
}
int thePefectOne = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[thePefectOne].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(thePefectOne);
}, specialSpawnCountdown: 300, permittedNPCs: ModContent.NPCType<CrabShroom>()),
new Boss(NPCID.Plantera, permittedNPCs: new int[] { NPCID.PlanterasTentacle, NPCID.PlanterasHook, NPCID.Spore }),
new Boss(ModContent.NPCType<CeaselessVoid>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(RuneofKos.CVSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: ModContent.NPCType<DarkEnergy>()),
new Boss(ModContent.NPCType<PerforatorHive>(), permittedNPCs: new int[] { ModContent.NPCType<PerforatorHeadLarge>(), ModContent.NPCType<PerforatorBodyLarge>(), ModContent.NPCType<PerforatorTailLarge>(),
ModContent.NPCType<PerforatorHeadMedium>(), ModContent.NPCType<PerforatorBodyMedium>(), ModContent.NPCType<PerforatorTailMedium>(), ModContent.NPCType<PerforatorHeadSmall>(),
ModContent.NPCType<PerforatorBodySmall>() ,ModContent.NPCType<PerforatorTailSmall>() }),
new Boss(ModContent.NPCType<Cryogen>(), permittedNPCs: ModContent.NPCType<CryogenShield>()),
new Boss(ModContent.NPCType<BrimstoneElemental>(), permittedNPCs: ModContent.NPCType<Brimling>()),
new Boss(ModContent.NPCType<Signus>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(RuneofKos.SignutSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<CosmicLantern>(), ModContent.NPCType<CosmicMine>() }),
new Boss(ModContent.NPCType<RavagerBody>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(SoundID.ScaryScream, player.position);
int ravager = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[ravager].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(ravager);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<FlamePillar>(), ModContent.NPCType<RockPillar>(), ModContent.NPCType<RavagerLegLeft>(), ModContent.NPCType<RavagerLegRight>(),
ModContent.NPCType<RavagerClawLeft>(), ModContent.NPCType<RavagerClawRight>() }),
new Boss(NPCID.DukeFishron, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int dukeFishron = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[dukeFishron].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(dukeFishron);
}, permittedNPCs: new int[] { NPCID.DetonatingBubble, NPCID.Sharkron, NPCID.Sharkron2 }),
new Boss(NPCID.MoonLordCore, spawnContext: type =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText2", XerocTextColor);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }),
new Boss(ModContent.NPCType<AstrumDeusHead>(), TimeChangeContext.Night, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<AstrumDeusBody>(), ModContent.NPCType<AstrumDeusTail>() }),
new Boss(ModContent.NPCType<Polterghast>(), TimeChangeContext.Day, type =>
new Boss(NPCID.MoonLordCore, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Polterghast.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, permittedNPCs: new int[] { NPCID.MoonLordLeechBlob, NPCID.MoonLordHand, NPCID.MoonLordHead, NPCID.MoonLordFreeEye }),
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<PhantomFuckYou>(), ModContent.NPCType<PolterghastHook>(), ModContent.NPCType<PolterPhantom>() }),
new Boss(ModContent.NPCType<PlaguebringerGoliath>(), spawnContext: type =>
new Boss(ModContent.NPCType<ProfanedGuardianCommander>(), TimeChangeContext.Day, spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Abombination.UseSound, player.Center);
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText2", XerocTextColor);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<PlagueHomingMissile>(), ModContent.NPCType<PlagueMine>() }),
}, permittedNPCs: new int[] { ModContent.NPCType<ProfanedGuardianDefender>(), ModContent.NPCType<ProfanedGuardianHealer>() }),
new Boss(ModContent.NPCType<CalamitasClone>(), TimeChangeContext.Night, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<Cataclysm>(), ModContent.NPCType<Catastrophe>(),
ModContent.NPCType<SoulSeeker>() }),
new Boss(ModContent.NPCType<Anahita>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Leviathan>(), ModContent.NPCType<AquaticAberration>(),
ModContent.NPCType<AnahitasIceShield>(), NPCID.DetonatingBubble}),
new Boss(ModContent.NPCType<OldDuke>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int boomerDuke = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[boomerDuke].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(boomerDuke);
}, permittedNPCs: new int[] { ModContent.NPCType<OldDukeToothBall>(), ModContent.NPCType<SulphurousSharkron>() }),
new Boss(ModContent.NPCType<SlimeGodCore>(), permittedNPCs: new int[] { ModContent.NPCType<EbonianSlimeGod>(), ModContent.NPCType<CrimulanSlimeGod>(), ModContent.NPCType<SplitEbonianSlimeGod>(), ModContent.NPCType<SplitCrimulanSlimeGod>(),
ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.NPCType<CorruptSlimeSpawn2>(), ModContent.NPCType<CrimsonSlimeSpawn>(), ModContent.NPCType<CrimsonSlimeSpawn2>() }),
new Boss(ModContent.NPCType<Bumblefuck>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<Bumblefuck2>() }),
new Boss(ModContent.NPCType<Providence>(), TimeChangeContext.Day, type =>
{
@@ -334,9 +311,79 @@ namespace CalamityMod.Events
CalamityUtils.BossAwakenMessage(prov);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<ProvSpawnOffense>(), ModContent.NPCType<ProvSpawnHealer>(), ModContent.NPCType<ProvSpawnDefense>() }),
new Boss(ModContent.NPCType<SupremeCalamitas>(), spawnContext: type =>
new Boss(ModContent.NPCType<CeaselessVoid>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(RuneofKos.CVSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: ModContent.NPCType<DarkEnergy>()),
new Boss(ModContent.NPCType<StormWeaverHead>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(RuneofKos.StormSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<StormWeaverBody>(), ModContent.NPCType<StormWeaverTail>(), }),
new Boss(ModContent.NPCType<Signus>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(RuneofKos.SignutSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<CosmicLantern>(), ModContent.NPCType<CosmicMine>() }),
new Boss(ModContent.NPCType<Polterghast>(), TimeChangeContext.Day, type =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText2", XerocTextColor);
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Polterghast.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<PhantomFuckYou>(), ModContent.NPCType<PolterghastHook>(), ModContent.NPCType<PolterPhantom>() }),
new Boss(ModContent.NPCType<OldDuke>(), spawnContext: type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
int boomerDuke = NPC.NewNPC(Source, (int)(player.position.X + Main.rand.Next(-100, 101)), (int)(player.position.Y - 400f), type, 1);
Main.npc[boomerDuke].timeLeft *= 20;
CalamityUtils.BossAwakenMessage(boomerDuke);
}, permittedNPCs: new int[] { ModContent.NPCType<OldDukeToothBall>(), ModContent.NPCType<SulphurousSharkron>() }),
new Boss(ModContent.NPCType<DevourerofGodsHead>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<DevourerofGodsBody>(), ModContent.NPCType<DevourerofGodsTail>(), ModContent.NPCType<CosmicGuardianHead>(), ModContent.NPCType<CosmicGuardianBody>(), ModContent.NPCType<CosmicGuardianTail>() }),
new Boss(ModContent.NPCType<Yharon>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Yharon.FireSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true),
new Boss(ModContent.NPCType<Draedon>(), TimeChangeContext.Day, type =>
{
if (!NPC.AnyNPCs(ModContent.NPCType<Draedon>()))
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(CodebreakerUI.SummonSound, player.Center);
Vector2 spawnPos = player.Center + new Vector2(-8f, -100f);
int draedon = NPC.NewNPC(Source, (int)spawnPos.X, (int)spawnPos.Y, ModContent.NPCType<Draedon>());
Main.npc[draedon].timeLeft *= 20;
}
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<ApolloBoss>(), ModContent.NPCType<AresBody>(), ModContent.NPCType<AresGaussNuke>(), ModContent.NPCType<AresLaserCannon>(), ModContent.NPCType<AresPlasmaFlamethrower>(), ModContent.NPCType<AresTeslaCannon>(), ModContent.NPCType<ArtemisBoss>(), ModContent.NPCType<ThanatosBody1>(), ModContent.NPCType<ThanatosBody2>(), ModContent.NPCType<ThanatosHead>(), ModContent.NPCType<ThanatosTail>() }),
new Boss(ModContent.NPCType<SupremeCalamitas>(), spawnContext: type =>
{
for (int playerIndex = 0; playerIndex < Main.maxPlayers; playerIndex++)
{
if (Main.player[playerIndex].active)
@@ -348,49 +395,35 @@ namespace CalamityMod.Events
}
SoundEngine.PlaySound(SupremeCalamitas.SpawnSound, Main.player[ClosestPlayerToWorldCenter].Center);
CalamityUtils.SpawnBossBetter(Main.player[ClosestPlayerToWorldCenter].Top - new Vector2(42f, 84f), type);
}, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<SepulcherArm>(), ModContent.NPCType<SepulcherHead>(), ModContent.NPCType<SepulcherBody>(), ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.NPCType<SepulcherTail>(),
}, specialSpawnCountdown: 420, dimnessFactor: 0.6f, permittedNPCs: new int[] { ModContent.NPCType<SepulcherArm>(), ModContent.NPCType<SepulcherHead>(), ModContent.NPCType<SepulcherBody>(), ModContent.NPCType<SepulcherBodyEnergyBall>(), ModContent.NPCType<SepulcherTail>(),
ModContent.NPCType<SoulSeekerSupreme>(), ModContent.NPCType<BrimstoneHeart>(), ModContent.NPCType<SupremeCataclysm>(), ModContent.NPCType<SupremeCatastrophe>() }),
new Boss(ModContent.NPCType<Yharon>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(Yharon.FireSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true),
new Boss(ModContent.NPCType<DevourerofGodsHead>(), TimeChangeContext.Day, type =>
{
Player player = Main.player[ClosestPlayerToWorldCenter];
SoundEngine.PlaySound(DevourerofGodsHead.SpawnSound, player.Center);
NPC.SpawnOnPlayer(ClosestPlayerToWorldCenter, type);
}, usesSpecialSound: true, permittedNPCs: new int[] { ModContent.NPCType<DevourerofGodsBody>(), ModContent.NPCType<DevourerofGodsTail>() })
// new Boss(ModContent.NPCType<AdultEidolonWyrmHead>(), permittedNPCs: new int[] { ModContent.NPCType<AdultEidolonWyrmBody>(), ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), ModContent.NPCType<AdultEidolonWyrmTail>(), ModContent.NPCType<EidolonWyrmBody>(), ModContent.NPCType<EidolonWyrmBodyAlt>(), ModContent.NPCType<EidolonWyrmHead>(), ModContent.NPCType<EidolonWyrmTail>(), ModContent.NPCType<Eidolist>() }),
};
BossDeathEffects = new Dictionary<int, Action<NPC>>()
{
[NPCID.TheDestroyer] = npc =>
[NPCID.WallofFlesh] = npc =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierOneEndText", XerocTextColor);
CreateTierAnimation(2);
},
[NPCID.CultistBoss] = npc =>
[NPCID.Plantera] = npc =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierTwoEndText", XerocTextColor);
CreateTierAnimation(3);
},
[NPCID.DukeFishron] = npc =>
[NPCID.MoonLordCore] = npc =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierThreeEndText", XerocTextColor);
CreateTierAnimation(4);
},
[ModContent.NPCType<Providence>()] = npc =>
[ModContent.NPCType<DevourerofGodsHead>()] = npc =>
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.BossRushTierFourEndText", XerocTextColor);
CreateTierAnimation(5);
},
[ModContent.NPCType<DevourerofGodsHead>()] = npc =>
[ModContent.NPCType<SupremeCalamitas>()] = npc =>
{
CalamityUtils.KillAllHostileProjectiles();
HostileProjectileKillCounter = 3;
@@ -414,9 +447,13 @@ namespace CalamityMod.Events
{
get
{
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.CultistBoss))
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == ModContent.NPCType<DevourerofGodsHead>()))
return 5;
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.MoonLordCore))
return 4;
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.Plantera))
return 3;
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.TheDestroyer))
if (BossRushStage > Bosses.FindIndex(boss => boss.EntityID == NPCID.WallofFlesh))
return 2;
return 1;
}
@@ -426,8 +463,14 @@ namespace CalamityMod.Events
{
get
{
int tier = CurrentTier;
if (CalamityMod.Instance.musicMod != null)
return CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{CurrentTier}") ?? 0;
{
// Boss Rush music for tiers 4 and 5 don't exist
if (tier > 3)
tier = 3;
return CalamityMod.Instance.GetMusicFromMusicMod($"BossRushTier{tier}") ?? 0;
}
switch (CurrentTier)
{
+2 -2
View File
@@ -56,9 +56,9 @@ namespace CalamityMod.Items.Accessories
{
walkTile.Get<TileWallWireStateData>().HasTile = true;
walkTile.TileType = TileID.DyePlants;
walkTile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
while (walkTile.TileFrameX == 144)
walkTile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
walkTile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
}
if (Main.netMode == NetmodeID.MultiplayerClient)
+2 -2
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
{
SacrificeTotal = 1;
DisplayName.SetDefault("Glove of Recklessness");
Tooltip.SetDefault("Increases rogue attack speed by 15% but decreases damage by 10%\n" +
Tooltip.SetDefault("Increases rogue attack speed by 15% but decreases damage by 12%\n" +
"15% increased stealth regeneration\n" +
"Adds inaccuracy to rogue weapons");
}
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.gloveOfRecklessness = true;
modPlayer.stealthGenStandstill += 0.15f;
modPlayer.stealthGenMoving += 0.15f;
player.GetDamage<RogueDamageClass>() -= 0.1f;
player.GetDamage<RogueDamageClass>() -= 0.12f;
player.GetAttackSpeed<RogueDamageClass>() += 0.15f;
}
}
@@ -56,10 +56,10 @@ namespace CalamityMod.Items.Armor.Plaguebringer
{
tile.Get<TileWallWireStateData>().HasTile = true;
tile.TileType = TileID.DyePlants;
tile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
tile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
while (tile.TileFrameX == 144)
{
tile.TileFrameX = (short)(34 * Main.rand.Next(1, 13));
tile.TileFrameX = (short)(34 * Main.rand.Next(0, 13));
}
}
if (Main.netMode == NetmodeID.MultiplayerClient)
+17
View File
@@ -2,6 +2,7 @@
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Materials;
using CalamityMod.Items.PermanentBoosters;
using CalamityMod.Items.Placeables.Furniture.DevPaintings;
using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Weapons.Melee;
@@ -37,12 +38,14 @@ namespace CalamityMod.Items
case ItemID.KingSlimeBossBag:
loot.Add(new CommonDrop(ModContent.ItemType<CrownJewel>(), 10)); // 10% Crown Jewel
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.EyeOfCthulhuBossBag:
loot.Add(ModContent.ItemType<DeathstareRod>(), DropHelper.BagWeaponDropRateInt); // 33% Deathstare Rod
loot.Add(ModContent.ItemType<TeardropCleaver>(), 10); // 10% Teardrop Cleaver
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
// On Rev+, Eater of Worlds segments don't drop partial loot. As such, the bag needs to drop all materials.
@@ -53,6 +56,7 @@ namespace CalamityMod.Items
eowRevLCR.Add(ItemID.DemoniteOre, 1, 120, 240); // 100% 120-240 Demonite Ore
eowRevLCR.Add(ItemID.ShadowScale, 1, 60, 120); // 100% 60-120 Shadow Scale
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
@@ -64,6 +68,7 @@ namespace CalamityMod.Items
bocRevLCR.Add(ItemID.CrimtaneOre, 1, 100, 180); // 100% 100-180 Crimtane Ore
bocRevLCR.Add(ItemID.TissueSample, 1, 60, 120); // 100% 60-120 Tissue Sample
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.DeerclopsBossBag:
@@ -77,6 +82,7 @@ namespace CalamityMod.Items
};
loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, deerclopsWeapons));
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.QueenBeeBossBag:
@@ -92,6 +98,7 @@ namespace CalamityMod.Items
loot.Add(ItemID.Stinger, 1, 8, 12); // 100% 8-12 Stinger
loot.Add(ModContent.ItemType<HardenedHoneycomb>(), 1, 50, 75); // 100% 50-75 Hardened Honeycomb
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.WallOfFleshBossBag:
@@ -120,17 +127,20 @@ namespace CalamityMod.Items
};
loot.Add(DropHelper.CalamityStyle(new Fraction(1, 4), emblems)); // Emblems remain 25%
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.QueenSlimeBossBag:
loot.Add(ItemID.SoulofLight, 1, 15, 20); // 100% 15-20 Soul of Light
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.DestroyerBossBag:
loot.Remove(FindHallowedBars(loot));
loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35);
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.TwinsBossBag:
@@ -138,12 +148,14 @@ namespace CalamityMod.Items
loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35);
loot.Add(ModContent.ItemType<Arbalest>(), 10); // 10% Arbalest
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.SkeletronPrimeBossBag:
loot.Remove(FindHallowedBars(loot));
loot.AddIf(DropHelper.HallowedBarsCondition, ItemID.HallowedBar, 1, 20, 35);
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.PlanteraBossBag:
@@ -163,6 +175,7 @@ namespace CalamityMod.Items
loot.Add(ModContent.ItemType<BloomStone>(), DropHelper.BagWeaponDropRateFraction);
loot.Add(ModContent.ItemType<LivingShard>(), 1, 30, 35);
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.GolemBossBag:
@@ -181,6 +194,7 @@ namespace CalamityMod.Items
loot.Add(ModContent.ItemType<AegisBlade>(), 10); // 10% Aegis Blade
loot.Add(ModContent.ItemType<EssenceofSunlight>(), 1, 8, 13); // 100% 8-13 Essence of Sunlight
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.BossBagBetsy:
@@ -210,6 +224,7 @@ namespace CalamityMod.Items
loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, dukeItems));
loot.Add(ModContent.ItemType<BrinyBaron>(), 10); // 10% Briny Baron
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.FairyQueenBossBag:
@@ -226,6 +241,7 @@ namespace CalamityMod.Items
};
loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, empressItems));
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
break;
case ItemID.MoonLordBossBag:
@@ -245,6 +261,7 @@ namespace CalamityMod.Items
};
loot.Add(DropHelper.CalamityStyle(DropHelper.BagWeaponDropRateFraction, moonLordWeapons));
loot.AddRevBagAccessories();
loot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
// The Celestial Onion only drops if the player hasn't used one.
loot.AddIf((info) => !info.player.Calamity().extraAccessoryML, ModContent.ItemType<CelestialOnion>());
+1 -1
View File
@@ -500,7 +500,7 @@ namespace CalamityMod.Items
{ ItemID.TheEyeOfCthulhu, autoReuse },
{ ItemID.TheHorsemansBlade, Do(UseTurn, ScaleRatio(1.5f), UseRatio(0.8f), DamageExact(95)) },
{ ItemID.TheRottedFork, Do(AutoReuse, TrueMelee, DamageExact(20)) },
{ ItemID.TheUndertaker, Do(AutoReuse, UseExact(21)) },
{ ItemID.TheUndertaker, Do(PointBlank, AutoReuse, UseExact(21)) },
{ ItemID.ThornChakram, Do(DamageExact(32)) },
{ ItemID.ThornWhip, autoReuse },
{ ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 56;
Item.damage = 58;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.noMelee = true;
Item.useTurn = true;
Item.noUseGraphic = true;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
Item.damage = 188;
Item.damage = 75;
Item.DamageType = DamageClass.Summon;
Item.sentry = true;
Item.mana = 10;
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Summon
[LegacyName("AngryChickenStaff")]
public class YharonsKindleStaff : ModItem
{
public const int Damage = 340;
public const int Damage = 300;
public const float ReboundRamDamageFactor = 2f;
public override void SetStaticDefaults()
{
@@ -1,5 +1,6 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Events;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Items.Placeables.Furniture.DevPaintings;
@@ -107,7 +108,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
NPC.height = 138;
NPC.defense = 100;
NPC.DR_NERD(0.4f);
NPC.LifeMaxNERB(2415000, 2898000);
NPC.LifeMaxNERB(2415000, 2898000, 800000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
@@ -197,7 +198,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
// Target variable
Player player = Main.player[NPC.target];
bool targetDownDeep = player.Calamity().ZoneAbyssLayer4;
bool targetDownDeep = player.Calamity().ZoneAbyssLayer4 || BossRushEvent.BossRushActive;
bool targetOnMount = player.mount.Active;
// Check whether enraged for the sake of the HP bar UI
+20 -9
View File
@@ -860,9 +860,10 @@ namespace CalamityMod.NPCs
break;
case NPCID.EaterofWorldsHead:
// Expert+ drops are also available on Normal
// Expert+ drops are also available on Normal, also stuff that would be in the bag otherwise
LeadingConditionRule EoWKill = new(DropHelper.If((info) => info.npc.boss));
EoWKill.Add(DropHelper.PerPlayer(ItemID.WormScarf));
EoWKill.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
npcLoot.AddNormalOnly(EoWKill);
// Would be in the bag otherwise
@@ -918,7 +919,7 @@ namespace CalamityMod.NPCs
if (notExpert is LeadingConditionRule LCR_NotExpert)
{
LCR_NotExpert.ChainedRules.RemoveAll((chainAttempt) =>
chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.LucyTheAxe);
chainAttempt is Chains.TryIfSucceeded c && c.RuleToChain is OneFromOptionsNotScaledWithLuckDropRule weapons && weapons.dropIds[0] == ItemID.PewMaticHorn);
// Define a replacement rule which drops the weapons Calamity style.
var deerWeapons = new int[]
@@ -1355,11 +1356,11 @@ namespace CalamityMod.NPCs
ItemID.FishronWings,
};
LCR_NotExpert.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, dukeItems));
}
// Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set.
dukeRootRules.RemoveAll((rule) =>
rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings);
// Remove the vanilla loot rule for Fishron Wings because it's part of the Calamity Style set.
dukeRootRules.RemoveAll((rule) =>
rule is ItemDropWithConditionRule conditionalRule && conditionalRule.condition is Conditions.NotExpert && conditionalRule.itemId == ItemID.FishronWings);
}
}
catch (ArgumentNullException) { }
@@ -1550,6 +1551,19 @@ namespace CalamityMod.NPCs
}
#endregion
#region Pre Kill
public override bool PreKill(NPC npc)
{
// Boss Rush pre-kill effects
if (BossRushEvent.BossRushActive)
{
// Block anything except the Rock from dropping
DropHelper.BlockEverything(ModContent.ItemType<Rock>());
}
return true;
}
#endregion
#region On Kill Main Hook
public override void OnKill(NPC npc)
{
@@ -1558,9 +1572,6 @@ namespace CalamityMod.NPCs
{
// Progress the Boss Rush event
BossRushEvent.OnBossKill(npc, Mod);
// Block anything except the Rock from dropping
DropHelper.BlockEverything(ModContent.ItemType<Rock>());
}
// Acid Rain on-kill effects
+1 -1
View File
@@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
NPC.height = 226;
NPC.defense = 80;
NPC.DR_NERD(0.25f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.height = 252;
NPC.defense = 100;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -84,7 +84,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.height = 120;
NPC.defense = 80;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -83,7 +83,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.height = 90;
NPC.defense = 80;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.height = 90;
NPC.defense = 80;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
NPC.height = 108;
NPC.defense = 80;
NPC.DR_NERD(0.35f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
NPC.height = 226;
NPC.defense = 80;
NPC.DR_NERD(0.25f);
NPC.LifeMaxNERB(1250000, 1495000, 500000);
NPC.LifeMaxNERB(1250000, 1495000, 650000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+135 -97
View File
@@ -1,4 +1,5 @@
using CalamityMod.NPCs.ExoMechs.Ares;
using CalamityMod.Events;
using CalamityMod.NPCs.ExoMechs.Ares;
using CalamityMod.NPCs.ExoMechs.Thanatos;
using CalamityMod.World;
using Microsoft.Xna.Framework;
@@ -64,6 +65,7 @@ namespace CalamityMod.NPCs.ExoMechs
return false;
}
}
public ref float BossRushCounter => ref NPC.Calamity().newAI[0];
public static readonly Color TextColor = new(155, 255, 255);
public static readonly Color TextColorEdgy = new(213, 4, 11);
public const int HologramFadeinTime = 45;
@@ -133,6 +135,7 @@ namespace CalamityMod.NPCs.ExoMechs
writer.Write(KillReappearDelay);
writer.Write(ShouldStartStandingUp);
writer.Write(HasBeenKilled);
writer.Write(BossRushCounter);
}
public override void ReceiveExtraAI(BinaryReader reader)
@@ -146,6 +149,7 @@ namespace CalamityMod.NPCs.ExoMechs
KillReappearDelay = reader.ReadSingle();
ShouldStartStandingUp = reader.ReadBoolean();
HasBeenKilled = reader.ReadBoolean();
BossRushCounter = reader.ReadSingle();
}
public override void AI()
@@ -161,6 +165,9 @@ namespace CalamityMod.NPCs.ExoMechs
// Prevent stupid natural despawns.
NPC.timeLeft = 3600;
// Check if Boss Rush is active
bool bossRush = BossRushEvent.BossRushActive;
// Emit music. If the battle is ongoing, Draedon emits the battle theme.
// Otherwise, he emits his trademark ambience.
// This takes priority over anything except Moon Lord's music fadeout.
@@ -231,7 +238,7 @@ namespace CalamityMod.NPCs.ExoMechs
ShouldStartStandingUp = true;
// Gloss over the arbitrary details and just get to the Exo Mech selection if Draedon has already been talked to.
if (CalamityWorld.TalkedToDraedon && TalkTimer > 70 && TalkTimer < TalkDelay * 4f - 25f)
if ((CalamityWorld.TalkedToDraedon || bossRush) && TalkTimer > 70 && TalkTimer < TalkDelay * 4f - 25f)
{
TalkTimer = TalkDelay * 4f - 25f;
NPC.netUpdate = true;
@@ -264,7 +271,7 @@ namespace CalamityMod.NPCs.ExoMechs
// Inform the player who summoned draedon they may choose the first mech and cause a selection UI to appear over their head.
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == TalkDelay + DelayPerDialogLine * 4f)
{
if (CalamityWorld.TalkedToDraedon)
if ((CalamityWorld.TalkedToDraedon || bossRush))
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonResummonText", TextColorEdgy);
else
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonIntroductionText5", TextColorEdgy);
@@ -284,6 +291,23 @@ namespace CalamityMod.NPCs.ExoMechs
{
PlayerToFollow.Calamity().AbleToSelectExoMech = true;
TalkTimer = ExoMechChooseDelay;
if (bossRush)
{
// Summon a random exo mech if you wait too long
BossRushCounter++;
if (BossRushCounter > 600 && CalamityWorld.DraedonMechToSummon == ExoMech.None)
{
CalamityWorld.DraedonMechToSummon = (ExoMech)Main.rand.Next(1,4);
if (Main.netMode != NetmodeID.SinglePlayer)
{
var netMessage = CalamityMod.Instance.GetPacket();
netMessage.Write((byte)CalamityModMessageType.ExoMechSelection);
netMessage.Write((int)CalamityWorld.DraedonMechToSummon);
netMessage.Send();
}
}
}
}
// Fly around once the exo mechs have been spawned.
@@ -313,123 +337,126 @@ namespace CalamityMod.NPCs.ExoMechs
}
}
// Dialogue lines depending on what phase the exo mechs are at.
switch ((int)DialogueType)
{
case 1:
if (!bossRush)
{
// Dialogue lines depending on what phase the exo mechs are at.
switch ((int)DialogueType)
{
case 1:
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text2", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase1Text2", TextColor);
NPC.netUpdate = true;
}
break;
break;
case 2:
case 2:
if (TalkTimer == ExoMechPhaseDialogueTime)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text1", TextColor);
NPC.netUpdate = true;
}
}
if (TalkTimer == ExoMechPhaseDialogueTime)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text1", TextColor);
NPC.netUpdate = true;
}
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text2", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase2Text2", TextColor);
NPC.netUpdate = true;
}
break;
break;
case 3:
case 3:
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text1", TextColor);
NPC.netUpdate = true;
}
if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text2", TextColor);
NPC.netUpdate = true;
}
}
if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase3Text2", TextColor);
NPC.netUpdate = true;
}
}
break;
break;
case 4:
case 4:
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text2", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase4Text2", TextColor);
NPC.netUpdate = true;
}
break;
break;
case 5:
case 5:
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text2", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase5Text2", TextColor);
NPC.netUpdate = true;
}
break;
break;
case 6:
case 6:
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text1", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text2", TextColor);
NPC.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text2", TextColor);
NPC.netUpdate = true;
}
if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine * 2f)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text3", TextColor);
NPC.netUpdate = true;
}
}
if (TalkTimer == ExoMechPhaseDialogueTime + DelayPerDialogLine * 2f)
{
SoundEngine.PlaySound(LaughSound, PlayerToFollow.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.DraedonExoPhase6Text3", TextColor);
NPC.netUpdate = true;
}
}
break;
}
break;
}
}
if (TalkTimer > ExoMechChooseDelay + 10f && !ExoMechIsPresent)
{
@@ -528,8 +555,9 @@ namespace CalamityMod.NPCs.ExoMechs
NPC.dontTakeDamage = DefeatTimer < TalkDelay * 2f + 50f || HasBeenKilled;
NPC.Calamity().CanHaveBossHealthBar = !NPC.dontTakeDamage;
NPC.Calamity().ShouldCloseHPBar = HasBeenKilled;
NPC.chaseable = BossRushEvent.BossRushActive;
bool leaving = DefeatTimer > DelayBeforeDefeatStandup + TalkDelay * 8f + 200f;
bool leaving = (DefeatTimer > DelayBeforeDefeatStandup + TalkDelay * 8f + 200f) || BossRushEvent.BossRushActive;
// Fade away and disappear when leaving.
if (leaving)
@@ -542,6 +570,13 @@ namespace CalamityMod.NPCs.ExoMechs
{
Main.BestiaryTracker.Kills.RegisterKill(NPC);
NPC.active = false;
// Die you lil piece of shit stop creating endless loop in BR
if (BossRushEvent.BossRushActive)
{
NPC.HitEffect();
NPC.NPCLoot();
NPC.netUpdate = true;
}
}
}
@@ -690,6 +725,9 @@ namespace CalamityMod.NPCs.ExoMechs
public override bool CheckDead()
{
if (BossRushEvent.BossRushActive)
return true;
if (!HasBeenKilled)
{
HologramEffectTimer = 0f;
+1 -1
View File
@@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.defense = 100;
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 500000);
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.defense = 100;
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 500000);
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -143,7 +143,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.defense = 80;
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 500000);
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -64,7 +64,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
NPC.defense = 120;
NPC.DR_NERD(0.9999f);
NPC.Calamity().unbreakableDR = true;
NPC.LifeMaxNERB(960000, 1150000, 500000);
NPC.LifeMaxNERB(960000, 1150000, 600000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
+1 -1
View File
@@ -61,7 +61,7 @@ namespace CalamityMod.NPCs.Signus
NPC.width = 130;
NPC.height = 130;
NPC.defense = 60;
NPC.LifeMaxNERB(297000, 356400, 240000);
NPC.LifeMaxNERB(297000, 356400, 320000);
NPC.value = Item.buyPrice(2, 0, 0, 0);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.NPCs.StormWeaver
NPC.width = 40;
NPC.height = 40;
NPC.lifeMax = 825500;
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000);
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000);
// Phase one settings
CalamityGlobalNPC global = NPC.Calamity();
+2 -2
View File
@@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.StormWeaver
NPC.width = 74;
NPC.height = 74;
NPC.lifeMax = 825500;
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000);
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000);
NPC.value = Item.buyPrice(2, 0, 0, 0);
// Phase one settings
@@ -167,7 +167,7 @@ namespace CalamityMod.NPCs.StormWeaver
bool revenge = CalamityWorld.revenge || bossRush;
bool expertMode = Main.expertMode || bossRush;
if (!Main.raining)
if (!Main.raining && !bossRush)
CalamityUtils.StartRain();
float lifeRatio = NPC.life / (float)NPC.lifeMax;
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.StormWeaver
NPC.width = 48;
NPC.height = 80;
NPC.lifeMax = 825500;
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 475000);
NPC.LifeMaxNERB(NPC.lifeMax, NPC.lifeMax, 500000);
// Phase one settings
NPC.takenDamageMultiplier = 2f;
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.width = 24;
NPC.height = 24;
NPC.defense = 0;
NPC.LifeMaxNERB(24550, 29440, 10000);
NPC.LifeMaxNERB(24550, 29440, 20000);
NPC.aiStyle = -1;
AIType = -1;
NPC.knockBackResist = 0f;
@@ -148,6 +148,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
int type = ModContent.ProjectileType<BrimstoneBarrage>();
int damage = NPC.GetProjectileDamage(type);
if (BossRushEvent.BossRushActive)
damage /= 2;
Vector2 shootVelocity = (Target.Center - EyePosition).SafeNormalize(Vector2.UnitY) * 9f;
Projectile.NewProjectile(NPC.GetSource_FromAI(), EyePosition, shootVelocity, type, damage, 1f, Main.myPlayer);
}
+11 -1
View File
@@ -208,7 +208,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.defense = 100;
NPC.DR_NERD(normalDR);
NPC.value = Item.buyPrice(30, 0, 0, 0);
NPC.LifeMaxNERB(960000, 1150000, 500000);
NPC.LifeMaxNERB(960000, 1150000, 900000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
@@ -399,6 +399,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas
int monsterDamage = NPC.GetProjectileDamage(ModContent.ProjectileType<BrimstoneMonster>());
int waveDamage = NPC.GetProjectileDamage(ModContent.ProjectileType<BrimstoneWave>());
int hellblastDamage = NPC.GetProjectileDamage(ModContent.ProjectileType<BrimstoneHellblast>());
if (bossRush)
{
bulletHellblastDamage /= 2;
barrageDamage /= 2;
gigablastDamage /= 2;
fireblastDamage /= 2;
monsterDamage /= 2;
waveDamage /= 2;
hellblastDamage /= 2;
}
int bodyWidth = 44;
int bodyHeight = 42;
int baseBulletHellProjectileGateValue = revenge ? 8 : expertMode ? 9 : 10;
+5 -1
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.height = 120;
NPC.defense = 80;
NPC.DR_NERD(NormalBrothersDR);
NPC.LifeMaxNERB(230000, 276000, 100000);
NPC.LifeMaxNERB(230000, 276000, 200000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
@@ -215,6 +215,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
SoundEngine.PlaySound(SupremeCalamitas.HellblastSound, NPC.Center);
int type = ModContent.ProjectileType<SupremeCataclysmFist>();
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Vector2 fistSpawnPosition = NPC.Center + Vector2.UnitX * -74f;
@@ -234,6 +236,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
int type = ModContent.ProjectileType<BrimstoneBarrage>();
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8;
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = 7f;
+5 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.height = 120;
NPC.defense = 80;
NPC.DR_NERD(SupremeCataclysm.NormalBrothersDR);
NPC.LifeMaxNERB(230000, 276000, 100000);
NPC.LifeMaxNERB(230000, 276000, 200000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.aiStyle = -1;
@@ -212,6 +212,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
int type = ModContent.ProjectileType<SupremeCatastropheSlash>();
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
Vector2 slashSpawnPosition = NPC.Center + Vector2.UnitX * 125f;
if (Main.netMode != NetmodeID.MultiplayerClient)
Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition, Vector2.UnitX * 4f, type, damage, 0f, Main.myPlayer, 0f, SlashingFromRight.ToInt());
@@ -229,6 +231,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
int type = ModContent.ProjectileType<BrimstoneBarrage>();
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8;
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = 7f;
+1 -1
View File
@@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.Yharon
NPC.width = 200;
NPC.height = 200;
NPC.defense = 90;
NPC.LifeMaxNERB(1302000, 1562400, 370000);
NPC.LifeMaxNERB(1302000, 1562400, 740000);
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
NPC.knockBackResist = 0f;