Cryogen no longer insta-charges starting phase 6
Small Death Valley Duster nerf too
This commit is contained in:
1 parent
3998491056
commit
1dcdfceb2a
2 files changed
+11
-6
No files matched your search
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.height = 40;
|
||||
Item.damage = 87;
|
||||
Item.damage = 83;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 9;
|
||||
Item.useTime = 25;
|
||||
|
||||
+10
-5
@@ -942,7 +942,7 @@ Block:
|
||||
{
|
||||
NPC.TargetClosest();
|
||||
NPC.ai[0] = 4f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[1] = 120f;
|
||||
NPC.ai[3] = 0f;
|
||||
NPC.localAI[0] = 0f;
|
||||
NPC.localAI[2] = 0f;
|
||||
@@ -972,7 +972,7 @@ Block:
|
||||
|
||||
if (phase6)
|
||||
{
|
||||
if (NPC.ai[1] == 60f)
|
||||
if (NPC.ai[1] == 60f) // Spawn homing ice blasts on charge
|
||||
{
|
||||
NPC.velocity = Vector2.Normalize(player.Center - NPC.Center) * (18f + enrageScale * 2f);
|
||||
|
||||
@@ -1011,7 +1011,7 @@ Block:
|
||||
}
|
||||
|
||||
NPC.ai[1] -= 1f;
|
||||
if (NPC.ai[1] <= 0f)
|
||||
if (NPC.ai[1] <= 0f) // Set the next charge, or switch back to floating above the player
|
||||
{
|
||||
NPC.ai[3] += 1f;
|
||||
NPC.TargetClosest();
|
||||
@@ -1027,12 +1027,17 @@ Block:
|
||||
|
||||
NPC.rotation = NPC.velocity.X * 0.1f;
|
||||
}
|
||||
else if (NPC.ai[1] <= 15f)
|
||||
else if (NPC.ai[1] <= 15f) // Slow down in preparation for the next charge
|
||||
{
|
||||
NPC.velocity *= 0.95f;
|
||||
NPC.rotation = NPC.velocity.X * 0.15f;
|
||||
}
|
||||
else
|
||||
else if (NPC.ai[1] > 60f) // Only used for when phase 6 first starts to prevent insta-charges
|
||||
{
|
||||
NPC.velocity *= 0.98f;
|
||||
NPC.rotation = NPC.velocity.X * 0.15f;
|
||||
}
|
||||
else // Charge
|
||||
{
|
||||
// Set damage
|
||||
NPC.damage = NPC.defDamage;
|
||||
|
||||
Reference in new issue
Block a user