1 - Storm Weaver, Rev+ Empress of Light and Aquatic Scourge edits.

This commit is contained in:
mountaindrew10 committed 2022-06-11 11:19:15 -05:00
1 parent 95e9a40e87
commit 77e6b9fcc4
24 files changed
+13 -79

No files matched your search

-6
View File
@@ -111,12 +111,6 @@ namespace CalamityMod.NPCs.Bumblebirb
CalamityAI.BumblebirbAI(NPC, Mod);
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void FindFrame(int frameHeight)
{
CalamityGlobalNPC calamityGlobalNPC = NPC.Calamity();
-6
View File
@@ -120,12 +120,6 @@ namespace CalamityMod.NPCs.Bumblebirb
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void HitEffect(int hitDirection, double damage)
{
for (int k = 0; k < 5; k++)
+4 -4
View File
@@ -117,17 +117,16 @@ namespace CalamityMod.NPCs
bool doSpiral = false;
if (head && calamityGlobalNPC.newAI[0] == 1f && calamityGlobalNPC.newAI[2] == 1f && revenge)
{
if (Vector2.Distance(npc.Center, player.Center) < 1000f)
doSpiral = calamityGlobalNPC.newAI[1] == 0f && calamityGlobalNPC.newAI[3] >= spiralGateValue;
if (Vector2.Distance(npc.Center, player.Center) < 1000f || doSpiral)
calamityGlobalNPC.newAI[3] += 1f;
doSpiral = calamityGlobalNPC.newAI[1] == 0f && calamityGlobalNPC.newAI[3] >= spiralGateValue;
if (doSpiral)
{
npc.localAI[3] = colorFadeTimeAfterSpiral;
float acidMistBarfDivisor = malice ? 2f : death ? 3f : 4f;
float toxicCloudBarfDivisor = malice ? 20f : death ? 30f : 40f;
// Vomit acid mist
float acidMistBarfDivisor = (float)Math.Floor(malice ? 4f : death ? 5f : 6f) * (phase3 ? 1.5f : 1f);
if (calamityGlobalNPC.newAI[3] % acidMistBarfDivisor == 0f)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
@@ -143,6 +142,7 @@ namespace CalamityMod.NPCs
}
// Vomit circular spreads of acid clouds while in phase 3
float toxicCloudBarfDivisor = malice ? 20f : death ? 30f : 40f;
if (calamityGlobalNPC.newAI[3] % toxicCloudBarfDivisor == 0f && phase3)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
-2
View File
@@ -110,8 +110,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
Rectangle targetHitbox = target.Hitbox;
float dist1 = Vector2.Distance(NPC.Center, targetHitbox.TopLeft());
-2
View File
@@ -273,8 +273,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
Rectangle targetHitbox = target.Hitbox;
float dist1 = Vector2.Distance(NPC.Center, targetHitbox.TopLeft());
-6
View File
@@ -118,12 +118,6 @@ namespace CalamityMod.NPCs.NormalNPCs
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void HitEffect(int hitDirection, double damage)
{
for (int k = 0; k < 5; k++)
@@ -466,12 +466,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void BossLoot(ref string name, ref int potionType)
{
name = "A Profaned Guardian";
@@ -365,12 +365,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<RelicOfResilience>(), 4);
public override void BossLoot(ref string name, ref int potionType)
@@ -213,12 +213,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<RelicOfConvergence>(), 4);
public override void BossLoot(ref string name, ref int potionType)
-1
View File
@@ -159,7 +159,6 @@ namespace CalamityMod.NPCs.Signus
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return NPC.alpha == 0;
}
-2
View File
@@ -846,8 +846,6 @@ namespace CalamityMod.NPCs.Signus
// Can only hit the target if within certain distance
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
Rectangle targetHitbox = target.Hitbox;
float dist1 = Vector2.Distance(NPC.Center, targetHitbox.TopLeft());
-6
View File
@@ -304,12 +304,6 @@ namespace CalamityMod.NPCs.StormWeaver
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
bool malice = CalamityWorld.malice || BossRushEvent.BossRushActive;
+7 -8
View File
@@ -256,6 +256,7 @@ namespace CalamityMod.NPCs.StormWeaver
{
NPC.localAI[1] = 0f;
calamityGlobalNPC.newAI[0] = 0f;
calamityGlobalNPC.newAI[2] = 0f;
NPC.TargetClosest(false);
NPC.velocity.Y -= 3f;
@@ -391,8 +392,10 @@ namespace CalamityMod.NPCs.StormWeaver
}
}
if (calamityGlobalNPC.newAI[2] == projectileGateValue)
if (calamityGlobalNPC.newAI[2] >= projectileGateValue)
{
calamityGlobalNPC.newAI[2] = 0f;
// Dictates whether Storm Weaver will use frost or tornadoes
if (phase4)
calamityGlobalNPC.newAI[3] += 1f;
@@ -465,8 +468,10 @@ namespace CalamityMod.NPCs.StormWeaver
// Summon tornadoes
if (useTornadoes)
{
if (calamityGlobalNPC.newAI[2] == projectileGateValue)
if (calamityGlobalNPC.newAI[2] >= projectileGateValue)
{
calamityGlobalNPC.newAI[2] = 0f;
// Dictates whether Storm Weaver will use frost or tornadoes
calamityGlobalNPC.newAI[3] += 1f;
@@ -820,12 +825,6 @@ namespace CalamityMod.NPCs.StormWeaver
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
bool malice = CalamityWorld.malice || BossRushEvent.BossRushActive;
-6
View File
@@ -304,12 +304,6 @@ namespace CalamityMod.NPCs.StormWeaver
return false;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
{
cooldownSlot = 1;
return true;
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
bool malice = CalamityWorld.malice || BossRushEvent.BossRushActive;
@@ -797,8 +797,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
npc.velocity *= 0.92f;
npc.ai[1] += 1f;
extraPhaseTime = 30f * lessTimeSpentPerPhaseMultiplier;
if (npc.ai[1] >= 90f + extraPhaseTime)
extraPhaseTime = 60f * lessTimeSpentPerPhaseMultiplier;
if (npc.ai[1] >= 180f + extraPhaseTime)
{
npc.ai[0] = 1f;
npc.ai[1] = 0f;
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.timeLeft = 600;
Projectile.penetrate = -1;
Projectile.Opacity = 0f;
CooldownSlot = 1;
}
public override void AI()
-1
View File
@@ -30,7 +30,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.timeLeft = 600;
Projectile.penetrate = -1;
Projectile.Opacity = 0f;
CooldownSlot = 1;
}
public override void AI()
-1
View File
@@ -23,7 +23,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.tileCollide = false;
Projectile.penetrate = 1;
Projectile.timeLeft = 960;
CooldownSlot = 1;
}
public override void AI()
-1
View File
@@ -31,7 +31,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.tileCollide = false;
Projectile.timeLeft = 600;
Projectile.penetrate = -1;
CooldownSlot = 1;
}
public override void SendExtraAI(BinaryWriter writer)
-2
View File
@@ -23,12 +23,10 @@ namespace CalamityMod.Projectiles.Boss
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 60;
CooldownSlot = 1;
}
public override void AI()
{
Projectile.velocity *= 0.985f;
Lighting.AddLight(Projectile.Center, 0.45f, 0f, 0.55f);
for (int num468 = 0; num468 < 5; num468++)
{
-1
View File
@@ -26,7 +26,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.penetrate = -1;
Projectile.alpha = 255;
Projectile.timeLeft = 300;
CooldownSlot = 1;
}
public override void SendExtraAI(BinaryWriter writer)
-1
View File
@@ -31,7 +31,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.tileCollide = false;
Projectile.extraUpdates = 20;
Projectile.timeLeft = 1260;
CooldownSlot = 1;
}
public override void SendExtraAI(BinaryWriter writer)
-1
View File
@@ -27,7 +27,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 1200;
CooldownSlot = 1;
}
public override void AI()
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.Projectiles.Boss
Projectile.timeLeft = 420;
Projectile.alpha = 100;
Projectile.penetrate = -1;
CooldownSlot = 1;
}
public override void SendExtraAI(BinaryWriter writer)