1 - Thanos sprites.

2 - Polter and Clone now look in the direction they're about to charge in.
3 - Slowed down Provi's stars that go directly at the player.
This commit is contained in:
Andrew Marheine committed 2021-06-14 07:50:10 -05:00
1 parent 91a43075b8
commit 47e36af4c1
12 files changed
+30 -31

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 12 KiB

+5 -6
View File
@@ -1,5 +1,3 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Dusts;
using CalamityMod.Events;
using CalamityMod.World;
@@ -144,13 +142,14 @@ namespace CalamityMod.NPCs.Polterghast
}
// Predictiveness
float chargePredictionAmt = 10f + 40f * (tileEnrageMult - 1f);
Vector2 lookAt = player.Center + (chargePhase && revenge ? (player.velocity * chargePredictionAmt) : Vector2.Zero);
float chargePredictionAmt = 10f + 20f * (tileEnrageMult - 1f);
Vector2 predictionVector = chargePhase && revenge ? player.velocity * chargePredictionAmt : Vector2.Zero;
Vector2 lookAt = player.Center + predictionVector;
Vector2 rotationVector = lookAt - vector;
// Rotation
float num740 = player.Center.X - vector.X;
float num741 = player.Center.Y - vector.Y;
float num740 = player.Center.X + predictionVector.X - vector.X;
float num741 = player.Center.Y + predictionVector.Y - vector.Y;
npc.rotation = (float)Math.Atan2(num741, num740) + MathHelper.PiOver2;
npc.damage = npc.defDamage;
+5 -4
View File
@@ -332,13 +332,14 @@ namespace CalamityMod.NPCs.Polterghast
baseProjectileVelocity *= 1.25f;
// Predictiveness
float chargePredictionAmt = 10f + 40f * (tileEnrageMult - 1f);
Vector2 lookAt = player.Center + (chargePhase && revenge ? (player.velocity * chargePredictionAmt) : Vector2.Zero);
float chargePredictionAmt = 10f + 20f * (tileEnrageMult - 1f);
Vector2 predictionVector = chargePhase && revenge ? player.velocity * chargePredictionAmt : Vector2.Zero;
Vector2 lookAt = player.Center + predictionVector;
Vector2 rotationVector = lookAt - vector;
// Rotation
float num740 = player.Center.X - vector.X;
float num741 = player.Center.Y - vector.Y;
float num740 = player.Center.X + predictionVector.X - vector.X;
float num741 = player.Center.Y + predictionVector.Y - vector.Y;
npc.rotation = (float)Math.Atan2(num741, num740) + MathHelper.PiOver2;
if (!chargePhase)
+2 -3
View File
@@ -934,10 +934,9 @@ namespace CalamityMod.NPCs.Providence
}
foreach (int t in targets)
{
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - fireFrom) * cocoonProjVelocity;
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - fireFrom) * cocoonProjVelocity * 1.5f;
int type = ModContent.ProjectileType<HolyBurnOrb>();
int proj = Projectile.NewProjectile(fireFrom, velocity2, type, 0, 0f, Main.myPlayer, 0f, nightTime ? -300 : npc.GetProjectileDamageNoScaling(type));
Main.projectile[proj].extraUpdates += 1;
Projectile.NewProjectile(fireFrom, velocity2, type, 0, 0f, Main.myPlayer, 0f, nightTime ? -300 : npc.GetProjectileDamageNoScaling(type));
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+18 -18
View File
@@ -53,37 +53,37 @@ namespace CalamityMod.World
public static int Reforges;
public static Dictionary<int, ScreenShakeSpot> ScreenShakeSpots = new Dictionary<int, ScreenShakeSpot>();
//Boss Rush
// Boss Rush
public static int bossRushHostileProjKillCounter = 0;
//Death Mode natural boss spawns
public static int bossSpawnCountdown = 0; //Death Mode natural boss spawn countdown
public static int bossType = 0; //Death Mode natural boss spawn type
public static int deathBossSpawnCooldown = 0; //Cooldown between Death Mode natural boss spawns
// Death Mode natural boss spawns
public static int bossSpawnCountdown = 0; // Death Mode natural boss spawn countdown
public static int bossType = 0; // Death Mode natural boss spawn type
public static int deathBossSpawnCooldown = 0; // Cooldown between Death Mode natural boss spawns
//Modes
public static bool demonMode = false; //Spawn rate boost
public static bool onionMode = false; //Extra accessory from Moon Lord
public static bool revenge = false; //Revengeance Mode
public static bool death = false; //Death Mode
public static bool armageddon = false; //Armageddon Mode
public static bool ironHeart = false; //Iron Heart Mode
// Modes
public static bool demonMode = false; // Spawn rate boost
public static bool onionMode = false; // Extra accessory from Moon Lord
public static bool revenge = false; // Revengeance Mode
public static bool death = false; // Death Mode
public static bool armageddon = false; // Armageddon Mode
public static bool ironHeart = false; // Iron Heart Mode
public static bool malice = false; // Malice Mode, enrages all bosses and makes them drop good shit
// New Temple Altar
public static int newAltarX = 0;
public static int newAltarY = 0;
//Evil Islands
// Evil Islands
public static int fehX = 0;
public static int fehY = 0;
//Brimstone Crag
// Brimstone Crag
public static int fuhX = 0;
public static int fuhY = 0;
public static int calamityTiles = 0;
//Abyss & Sulphur
// Abyss & Sulphur
public static int numAbyssIslands = 0;
public static int[] AbyssIslandX = new int[20];
public static int[] AbyssIslandY = new int[20];
@@ -110,14 +110,14 @@ namespace CalamityMod.World
}
}
//Astral
// Astral
public static int astralTiles = 0;
//Sunken Sea
// Sunken Sea
public static int sunkenSeaTiles = 0;
public static Rectangle SunkenSeaLocation = Rectangle.Empty;
//Shrines
// Shrines
public static int[] SChestX = new int[10];
public static int[] SChestY = new int[10];
public static bool roxShrinePlaced = false;