Death Mode AI insanity.

Abyss enemies, Jellyfish, Blazing Wheel, Swimming-type enemies, Demon Eye-type enemies, Flying-type enemies, Bat-type enemies.
Polterghast phase 1 and 2 charges.
Death Mode Jungle leech-infested water.
This commit is contained in:
Andrew Marheine committed 2020-01-26 08:42:06 -06:00
1 parent 677cd4704c
commit d7212cb964
20 files changed
+2724 -125

No files matched your search

+6
View File
@@ -373,6 +373,12 @@ namespace CalamityMod.CalPlayer
}
}
// Leech bleed
if (player.ZoneJungle && player.wet && !player.lavaWet && !player.honeyWet)
{
player.AddBuff(BuffID.Bleeding, 300, false);
}
// Ice shards and lightning
if (Main.raining && player.ZoneOverworldHeight && !CalamityPlayer.areThereAnyDamnBosses)
{
+2 -2
View File
@@ -1,5 +1,6 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using Terraria;
@@ -96,7 +97,7 @@ namespace CalamityMod.NPCs.Abyss
if (npc.velocity.X > -num263 && npc.velocity.X < num263 && npc.velocity.Y > -num263 && npc.velocity.Y < num263)
{
npc.TargetClosest(true);
float num264 = 8f;
float num264 = CalamityWorld.death ? 12f : 8f;
Vector2 vector31 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
float num265 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector31.X;
float num266 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector31.Y;
@@ -106,7 +107,6 @@ namespace CalamityMod.NPCs.Abyss
num266 *= num267;
npc.velocity.X = num265;
npc.velocity.Y = num266;
return;
}
}
else
+11 -11
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using System;
using System.IO;
using Terraria;
@@ -106,23 +107,23 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.25f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f;
if (npc.velocity.X > 8f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.5f : 0.25f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.3f : 0.15f);
if (npc.velocity.X > (CalamityWorld.death ? 16f : 8f))
{
npc.velocity.X = 8f;
npc.velocity.X = (CalamityWorld.death ? 16f : 8f);
}
if (npc.velocity.X < -8f)
if (npc.velocity.X < (CalamityWorld.death ? -16f : -8f))
{
npc.velocity.X = -8f;
npc.velocity.X = (CalamityWorld.death ? -16f : -8f);
}
if (npc.velocity.Y > 6f)
if (npc.velocity.Y > (CalamityWorld.death ? 12f : 6f))
{
npc.velocity.Y = 6f;
npc.velocity.Y = (CalamityWorld.death ? 12f : 6f);
}
if (npc.velocity.Y < -6f)
if (npc.velocity.Y < (CalamityWorld.death ? -12f : -6f))
{
npc.velocity.Y = -6f;
npc.velocity.Y = (CalamityWorld.death ? -12f : -6f);
}
}
else
@@ -204,7 +205,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
+11 -11
View File
@@ -122,23 +122,24 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.25f * speedBoost;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f * speedBoost;
if (npc.velocity.X > 6f * speedBoost)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.5f : 0.25f) * speedBoost;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.3f : 0.15f) * speedBoost;
float velocity = CalamityWorld.death ? 12f : 6f;
if (npc.velocity.X > velocity * speedBoost)
{
npc.velocity.X = 6f * speedBoost;
npc.velocity.X = velocity * speedBoost;
}
if (npc.velocity.X < -6f * speedBoost)
if (npc.velocity.X < -velocity * speedBoost)
{
npc.velocity.X = -6f * speedBoost;
npc.velocity.X = -velocity * speedBoost;
}
if (npc.velocity.Y > 6f * speedBoost)
if (npc.velocity.Y > velocity * speedBoost)
{
npc.velocity.Y = 6f * speedBoost;
npc.velocity.Y = velocity * speedBoost;
}
if (npc.velocity.Y < -6f * speedBoost)
if (npc.velocity.Y < -velocity * speedBoost)
{
npc.velocity.Y = -6f * speedBoost;
npc.velocity.Y = -velocity * speedBoost;
}
}
else
@@ -220,7 +221,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
+2 -2
View File
@@ -1,6 +1,7 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.Projectiles.Enemy;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using Terraria;
@@ -141,7 +142,7 @@ namespace CalamityMod.NPCs.Abyss
}
if ((Main.player[npc.target].Center - npc.Center).Length() < 350f)
{
npc.localAI[0] += 1f;
npc.localAI[0] += (CalamityWorld.death ? 3f : 1f);
if (Main.netMode != NetmodeID.MultiplayerClient && npc.localAI[0] >= 180f)
{
npc.localAI[0] = 0f;
@@ -244,7 +245,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
}
+13 -11
View File
@@ -1,6 +1,7 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using System;
using Terraria;
using Terraria.ID;
@@ -117,23 +118,25 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.15f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f;
if (npc.velocity.X > 3.5f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.3f : 0.15f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.3f : 0.15f);
float velocityX = CalamityWorld.death ? 7f : 3.5f;
float velocityY = CalamityWorld.death ? 3f : 1.5f;
if (npc.velocity.X > velocityX)
{
npc.velocity.X = 3.5f;
npc.velocity.X = velocityX;
}
if (npc.velocity.X < -3.5f)
if (npc.velocity.X < -velocityX)
{
npc.velocity.X = -3.5f;
npc.velocity.X = -velocityX;
}
if (npc.velocity.Y > 1.5f)
if (npc.velocity.Y > velocityY)
{
npc.velocity.Y = 1.5f;
npc.velocity.Y = velocityY;
}
if (npc.velocity.Y < -1.5f)
if (npc.velocity.Y < -velocityY)
{
npc.velocity.Y = -1.5f;
npc.velocity.Y = -velocityY;
}
}
else
@@ -215,7 +218,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
}
+1 -2
View File
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Abyss
if (npc.velocity.X > -num263 && npc.velocity.X < num263 && npc.velocity.Y > -num263 && npc.velocity.Y < num263)
{
npc.TargetClosest(true);
float num264 = 16f;
float num264 = CalamityWorld.death ? 24f : 16f;
Vector2 vector31 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
float num265 = Main.player[npc.target].position.X + (float)(Main.player[npc.target].width / 2) - vector31.X;
float num266 = Main.player[npc.target].position.Y + (float)(Main.player[npc.target].height / 2) - vector31.Y;
@@ -188,7 +188,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.velocity.Y > 1.2 || (double)npc.velocity.Y < -1.2)
{
npc.velocity.Y = npc.velocity.Y * 0.99f;
return;
}
}
}
+2 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -53,7 +54,7 @@ namespace CalamityMod.NPCs.Abyss
{
num78 = 2.25f - num79;
}
num78 *= 0.8f;
num78 *= (CalamityWorld.death ? 1.2f : 0.8f);
if (npc.velocity.X < -num78 || npc.velocity.X > num78)
{
if (npc.velocity.Y == 0f)
+12 -12
View File
@@ -112,25 +112,26 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.15f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f;
if (npc.velocity.X > 4f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.3f : 0.15f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.3f : 0.15f);
float velocity = CalamityWorld.death ? 8f : 4f;
if (npc.velocity.X > velocity)
{
npc.velocity.X = 4f;
npc.velocity.X = velocity;
}
if (npc.velocity.X < -4f)
if (npc.velocity.X < -velocity)
{
npc.velocity.X = -4f;
npc.velocity.X = -velocity;
}
if (npc.velocity.Y > 4f)
if (npc.velocity.Y > velocity)
{
npc.velocity.Y = 4f;
npc.velocity.Y = velocity;
}
if (npc.velocity.Y < -4f)
if (npc.velocity.Y < -velocity)
{
npc.velocity.Y = -4f;
npc.velocity.Y = -velocity;
}
npc.localAI[0] += 1f;
npc.localAI[0] += (CalamityWorld.death ? 2f : 1f);
if (Main.netMode != NetmodeID.MultiplayerClient && npc.localAI[0] >= 120f)
{
npc.localAI[0] = 0f;
@@ -233,7 +234,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.1)
{
npc.rotation = 0.1f;
return;
}
}
+4 -4
View File
@@ -84,9 +84,10 @@ namespace CalamityMod.NPCs.Abyss
{
++screamTimer;
if (screamTimer >= 300)
int screamLimit = CalamityWorld.death ? 150 : 300;
if (screamTimer >= screamLimit)
{
if (screamTimer == 300)
if (screamTimer == screamLimit)
{
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/CorvinaScream"), (int)npc.position.X, (int)npc.position.Y);
if (Main.netMode != NetmodeID.Server)
@@ -97,7 +98,7 @@ namespace CalamityMod.NPCs.Abyss
}
}
}
if (screamTimer >= 360)
if (screamTimer >= screamLimit + 60)
{
screamTimer = 0;
}
@@ -205,7 +206,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.World;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -50,7 +51,7 @@ namespace CalamityMod.NPCs.Abyss
{
num78 = 2.5f - num79;
}
num78 *= 0.8f;
num78 *= (CalamityWorld.death ? 1.2f : 0.8f);
if (npc.velocity.X < -num78 || npc.velocity.X > num78)
{
if (npc.velocity.Y == 0f)
+13 -11
View File
@@ -1,5 +1,6 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
@@ -109,23 +110,25 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.15f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.1f;
if (npc.velocity.X > 6f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.3f : 0.15f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.2f : 0.1f);
float velocityX = CalamityWorld.death ? 12f : 6f;
float velocityY = CalamityWorld.death ? 8f : 4f;
if (npc.velocity.X > velocityX)
{
npc.velocity.X = 6f;
npc.velocity.X = velocityX;
}
if (npc.velocity.X < -6f)
if (npc.velocity.X < -velocityX)
{
npc.velocity.X = -6f;
npc.velocity.X = -velocityX;
}
if (npc.velocity.Y > 4f)
if (npc.velocity.Y > velocityY)
{
npc.velocity.Y = 4f;
npc.velocity.Y = velocityY;
}
if (npc.velocity.Y < -4f)
if (npc.velocity.Y < -velocityY)
{
npc.velocity.Y = -4f;
npc.velocity.Y = -velocityY;
}
}
else
@@ -207,7 +210,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
+15 -13
View File
@@ -1,5 +1,6 @@
using CalamityMod.Items.Pets;
using CalamityMod.Items.Placeables.Banners;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
using System.IO;
@@ -108,23 +109,25 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.3f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.1f;
if (npc.velocity.X > 10f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.6f : 0.3f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.2f : 0.1f);
float velocityX = CalamityWorld.death ? 20f : 10f;
float velocityY = CalamityWorld.death ? 10f : 5f;
if (npc.velocity.X > velocityX)
{
npc.velocity.X = 10f;
npc.velocity.X = velocityX;
}
if (npc.velocity.X < -10f)
if (npc.velocity.X < -velocityX)
{
npc.velocity.X = -10f;
npc.velocity.X = -velocityX;
}
if (npc.velocity.Y > 5f)
if (npc.velocity.Y > velocityY)
{
npc.velocity.Y = 5f;
npc.velocity.Y = velocityY;
}
if (npc.velocity.Y < -5f)
if (npc.velocity.Y < -velocityY)
{
npc.velocity.Y = -5f;
npc.velocity.Y = -velocityY;
}
}
else
@@ -193,11 +196,11 @@ namespace CalamityMod.NPCs.Abyss
float num823 = 1f;
npc.TargetClosest(true);
bool flag51 = false;
if ((double)npc.life < (double)npc.lifeMax * 0.5)
if ((double)npc.life < (double)npc.lifeMax * 0.5 || CalamityWorld.death)
{
num823 = 1.5f;
}
if ((double)npc.life < (double)npc.lifeMax * 0.25)
if ((double)npc.life < (double)npc.lifeMax * 0.25 || CalamityWorld.death)
{
num823 = 2.5f;
}
@@ -283,7 +286,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.1)
{
npc.rotation = 0.1f;
return;
}
}
+11 -11
View File
@@ -115,23 +115,24 @@ namespace CalamityMod.NPCs.Abyss
if (flag14)
{
npc.TargetClosest(true);
npc.velocity.X = npc.velocity.X + (float)npc.direction * 0.25f;
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * 0.15f;
if (npc.velocity.X > 6f)
npc.velocity.X = npc.velocity.X + (float)npc.direction * (CalamityWorld.death ? 0.5f : 0.25f);
npc.velocity.Y = npc.velocity.Y + (float)npc.directionY * (CalamityWorld.death ? 0.3f : 0.15f);
float velocity = CalamityWorld.death ? 12f : 6f;
if (npc.velocity.X > velocity)
{
npc.velocity.X = 6f;
npc.velocity.X = velocity;
}
if (npc.velocity.X < -6f)
if (npc.velocity.X < -velocity)
{
npc.velocity.X = -6f;
npc.velocity.X = -velocity;
}
if (npc.velocity.Y > 6f)
if (npc.velocity.Y > velocity)
{
npc.velocity.Y = 6f;
npc.velocity.Y = velocity;
}
if (npc.velocity.Y < -6f)
if (npc.velocity.Y < -velocity)
{
npc.velocity.Y = -6f;
npc.velocity.Y = -velocity;
}
}
else
@@ -213,7 +214,6 @@ namespace CalamityMod.NPCs.Abyss
if ((double)npc.rotation > 0.2)
{
npc.rotation = 0.2f;
return;
}
}
+2478 -22
View File
File diff suppressed because it is too large. Load diff
+111
View File
@@ -1592,6 +1592,32 @@ namespace CalamityMod.NPCs
}
}
break;
case 2:
if (npc.type == ModContent.NPCType<BlightedEye>() || npc.type == ModContent.NPCType<CalamityEye>())
{
return CalamityGlobalAI.BuffedDemonEyeAI(npc, mod);
}
else
{
switch (npc.type)
{
case NPCID.DemonEye:
case NPCID.TheHungryII:
case NPCID.WanderingEye:
case NPCID.PigronCorruption:
case NPCID.PigronHallow:
case NPCID.PigronCrimson:
case NPCID.CataractEye:
case NPCID.SleepyEye:
case NPCID.DialatedEye:
case NPCID.GreenEye:
case NPCID.PurpleEye:
case NPCID.DemonEyeOwl:
case NPCID.DemonEyeSpaceship:
return CalamityGlobalAI.BuffedDemonEyeAI(npc, mod);
}
}
break;
case 3:
if (npc.type == ModContent.NPCType<StormlionCharger>() || npc.type == ModContent.NPCType<WulfrumDrone>())
{
@@ -1785,6 +1811,91 @@ namespace CalamityMod.NPCs
}
}
break;
case 5:
switch (npc.type)
{
case NPCID.ServantofCthulhu:
case NPCID.EaterofSouls:
case NPCID.MeteorHead:
case NPCID.Corruptor:
case NPCID.Probe:
case NPCID.Crimera:
case NPCID.Moth:
case NPCID.Parrot:
return CalamityGlobalAI.BuffedFlyingAI(npc, mod);
}
break;
case 8:
switch (npc.type)
{
case NPCID.FireImp:
case NPCID.DarkCaster:
case NPCID.Tim:
case NPCID.RuneWizard:
case NPCID.RaggedCaster:
case NPCID.RaggedCasterOpenCoat:
case NPCID.Necromancer:
case NPCID.NecromancerArmored:
case NPCID.DiabolistRed:
case NPCID.DiabolistWhite:
case NPCID.DesertDjinn:
case NPCID.GoblinSorcerer:
return CalamityGlobalAI.BuffedCasterAI(npc, mod);
}
break;
case 14:
switch (npc.type)
{
case NPCID.Harpy:
case NPCID.CaveBat:
case NPCID.JungleBat:
case NPCID.Hellbat:
case NPCID.Demon:
case NPCID.VoodooDemon:
case NPCID.GiantBat:
case NPCID.Slimer:
case NPCID.IlluminantBat:
case NPCID.IceBat:
case NPCID.Lavabat:
case NPCID.GiantFlyingFox:
case NPCID.RedDevil:
case NPCID.FlyingSnake:
case NPCID.VampireBat:
return CalamityGlobalAI.BuffedBatAI(npc, mod);
}
break;
case 16:
switch (npc.type)
{
case NPCID.CorruptGoldfish:
case NPCID.Piranha:
case NPCID.Shark:
case NPCID.AnglerFish:
case NPCID.Arapaima:
case NPCID.BloodFeeder:
case NPCID.CrimsonGoldfish:
return CalamityGlobalAI.BuffedSwimmingAI(npc, mod);
}
break;
case 18:
switch (npc.type)
{
case NPCID.BlueJellyfish:
case NPCID.PinkJellyfish:
case NPCID.GreenJellyfish:
case NPCID.Squid:
case NPCID.BloodJelly:
case NPCID.FungoFish:
return CalamityGlobalAI.BuffedJellyfishAI(npc, mod);
}
break;
case 21:
switch (npc.type)
{
case NPCID.BlazingWheel:
return CalamityGlobalAI.BuffedBlazingWheelAI(npc, mod);
}
break;
default:
break;
}
+1
View File
@@ -16,6 +16,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void SetDefaults()
{
npc.aiStyle = 2;
aiType = 116;
npc.damage = 32;
npc.width = 30;
npc.height = 32;
+1
View File
@@ -18,6 +18,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
npc.lavaImmune = true;
npc.aiStyle = 2;
aiType = 133;
npc.damage = 40;
npc.width = 30;
npc.height = 30;
+2 -2
View File
@@ -134,14 +134,14 @@ namespace CalamityMod.NPCs.Polterghast
if (Main.npc[CalamityGlobalNPC.ghostBoss].ai[2] < 300f)
{
num734 = 18f;
num734 = 18.5f;
num735 = 0.12f;
}
if (expertMode)
{
num734 += revenge ? 1.5f : 1f;
num734 *= revenge ? 1.25f : 1.1f;
num734 *= revenge ? 1.2f : 1.1f;
num735 += revenge ? 0.015f : 0.01f;
num735 *= revenge ? 1.2f : 1.1f;
}
+26 -9
View File
@@ -165,8 +165,10 @@ namespace CalamityMod.NPCs.Polterghast
num730 /= (float)num732;
num731 /= (float)num732;
// Velocity and acceleration
float num734 = 2.5f;
// Velocity and acceleration
bool charging = npc.ai[2] >= 300f;
bool reset = npc.ai[2] >= 600f;
float num734 = 2.5f;
float num735 = 0.025f;
if (!Main.player[npc.target].ZoneDungeon && !CalamityWorld.bossRushActive && (double)Main.player[npc.target].position.Y < Main.worldSurface * 16.0)
{
@@ -189,18 +191,33 @@ namespace CalamityMod.NPCs.Polterghast
{
num734 += 1.5f;
num735 += 0.01f;
}
}
if (phase3)
if (!phase3)
{
if (charging)
{
num734 += phase2 ? 9.5f : 8.5f;
num735 += phase2 ? 0.05f : 0.045f;
}
npc.ai[2] += 1f;
if (reset)
{
npc.ai[2] = 0f;
npc.netUpdate = true;
}
}
else
{
if (cloneAlive)
{
boostDR = true;
if (npc.ai[2] >= 300f)
if (charging)
{
num734 += phase5 ? 14.5f : 8.5f;
num735 += phase5 ? 0.085f : 0.045f;
num734 += phase5 ? 14.5f : 10.5f;
num735 += phase5 ? 0.085f : 0.055f;
}
else
{
@@ -222,7 +239,7 @@ namespace CalamityMod.NPCs.Polterghast
}
npc.ai[2] += 1f;
if (npc.ai[2] >= 600f)
if (reset)
{
npc.ai[2] = 0f;
npc.netUpdate = true;
@@ -276,7 +293,7 @@ namespace CalamityMod.NPCs.Polterghast
if (expertMode)
{
num734 += revenge ? 1.5f : 1f;
num734 *= revenge ? 1.25f : 1.1f;
num734 *= revenge ? 1.2f : 1.1f;
num735 += revenge ? 0.015f : 0.01f;
num735 *= revenge ? 1.2f : 1.1f;
}