1 - Yharon bullet hell individual projectiles are no longer predictive.
2 - Fixed an issue with Yharon where he wasn't idling for longer after one of his bullet hells.
This commit is contained in:
1 parent
2a1460ef91
commit
1aeadbe35d
1 file changed
+5
-5
@@ -976,7 +976,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
}
|
||||
foreach (int t in targets)
|
||||
{
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center + Main.player[t].velocity * 20f - flareDustBulletHellSpawn) * 8f;
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - flareDustBulletHellSpawn) * 8f;
|
||||
int type = ModContent.ProjectileType<FlareDust>();
|
||||
int proj = Projectile.NewProjectile(flareDustBulletHellSpawn, velocity2, type, NPC.GetProjectileDamage(ModContent.ProjectileType<FlareDust>()), 0f, Main.myPlayer, 2f, 0f);
|
||||
Main.projectile[proj].extraUpdates += 1;
|
||||
@@ -1338,7 +1338,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
}
|
||||
foreach (int t in targets)
|
||||
{
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center + Main.player[t].velocity * 20f - flareDustBulletHellSpawn) * 8f;
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - flareDustBulletHellSpawn) * 8f;
|
||||
int type = ModContent.ProjectileType<FlareDust>();
|
||||
int proj = Projectile.NewProjectile(flareDustBulletHellSpawn, velocity2, type, NPC.GetProjectileDamage(ModContent.ProjectileType<FlareDust>()), 0f, Main.myPlayer, 2f, 0f);
|
||||
Main.projectile[proj].extraUpdates += 1;
|
||||
@@ -1354,7 +1354,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
{
|
||||
NPC.ai[0] = 13f;
|
||||
NPC.ai[1] = 0f;
|
||||
NPC.ai[2] = 0f;
|
||||
NPC.ai[2] = increasedIdleTimeAfterBulletHell;
|
||||
NPC.localAI[2] = 0f;
|
||||
NPC.TargetClosest();
|
||||
NPC.netUpdate = true;
|
||||
@@ -2202,7 +2202,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
}
|
||||
foreach (int t in targets)
|
||||
{
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center + Main.player[t].velocity * 20f - flareDustBulletHellSpawn) * (projectileVelocity * 0.7f);
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - flareDustBulletHellSpawn) * (projectileVelocity * 0.7f);
|
||||
int type = ModContent.ProjectileType<FlareDust>();
|
||||
int proj = Projectile.NewProjectile(flareDustBulletHellSpawn, velocity2, type, NPC.GetProjectileDamage(ModContent.ProjectileType<FlareDust>()), 0f, Main.myPlayer, 2f, 0f);
|
||||
Main.projectile[proj].extraUpdates += 1;
|
||||
@@ -2232,7 +2232,7 @@ namespace CalamityMod.NPCs.Yharon
|
||||
}
|
||||
foreach (int t in targets)
|
||||
{
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center + Main.player[t].velocity * 20f - flareDustBulletHellSpawn) * 8f;
|
||||
Vector2 velocity2 = Vector2.Normalize(Main.player[t].Center - flareDustBulletHellSpawn) * 8f;
|
||||
int type = ModContent.ProjectileType<FlareDust>();
|
||||
int proj = Projectile.NewProjectile(flareDustBulletHellSpawn, velocity2, type, NPC.GetProjectileDamage(ModContent.ProjectileType<FlareDust>()), 0f, Main.myPlayer, 2f, 0f);
|
||||
Main.projectile[proj].extraUpdates += 1;
|
||||
|
||||
Reference in new issue
Block a user