diff --git a/Buffs/StatBuffs/Mushy.png b/Buffs/StatBuffs/Mushy.png index e31619540b..bb9f259f53 100644 Binary files a/Buffs/StatBuffs/Mushy.png and b/Buffs/StatBuffs/Mushy.png differ diff --git a/Buffs/StatBuffs/TyrantsFury.png b/Buffs/StatBuffs/TyrantsFury.png index 9096c33cf5..9b3ce4f18a 100644 Binary files a/Buffs/StatBuffs/TyrantsFury.png and b/Buffs/StatBuffs/TyrantsFury.png differ diff --git a/Items/Accessories/ArchaicPowder.png b/Items/Accessories/ArchaicPowder.png index ec6874a708..aacf76a64a 100644 Binary files a/Items/Accessories/ArchaicPowder.png and b/Items/Accessories/ArchaicPowder.png differ diff --git a/Items/Weapons/Melee/YateveoBloom.png b/Items/Weapons/Melee/YateveoBloom.png index d4e4f3bb47..7b03f080cf 100644 Binary files a/Items/Weapons/Melee/YateveoBloom.png and b/Items/Weapons/Melee/YateveoBloom.png differ diff --git a/Items/Weapons/Ranged/Drataliornus.png b/Items/Weapons/Ranged/Drataliornus.png index 35dab92fcd..2f44baf58e 100644 Binary files a/Items/Weapons/Ranged/Drataliornus.png and b/Items/Weapons/Ranged/Drataliornus.png differ diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 1eee5e5eb4..1a1403ba5c 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.NormalNPCs { num823 = 2f; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.death) + if ((double)npc.life < (double)npc.lifeMax * 0.1) { num823 = 4f; } @@ -81,7 +81,7 @@ namespace CalamityMod.NPCs.NormalNPCs { npc.ai[1] += 1f; } - if ((double)npc.life < (double)npc.lifeMax * 0.1 || CalamityWorld.death) + if ((double)npc.life < (double)npc.lifeMax * 0.1) { npc.ai[1] += 1f; } diff --git a/Projectiles/Melee/Spears/YateveoBloomSpear.png b/Projectiles/Melee/Spears/YateveoBloomSpear.png index 97424fe339..a842ad6d69 100644 Binary files a/Projectiles/Melee/Spears/YateveoBloomSpear.png and b/Projectiles/Melee/Spears/YateveoBloomSpear.png differ diff --git a/Projectiles/Ranged/DrataliornusBow.png b/Projectiles/Ranged/DrataliornusBow.png index 35dab92fcd..2f44baf58e 100644 Binary files a/Projectiles/Ranged/DrataliornusBow.png and b/Projectiles/Ranged/DrataliornusBow.png differ diff --git a/Projectiles/Ranged/DrataliornusFlame.cs b/Projectiles/Ranged/DrataliornusFlame.cs index 66ac0bf7ac..f81c2487f5 100644 --- a/Projectiles/Ranged/DrataliornusFlame.cs +++ b/Projectiles/Ranged/DrataliornusFlame.cs @@ -12,8 +12,7 @@ namespace CalamityMod.Projectiles.Ranged { public override void SetStaticDefaults() { - DisplayName.SetDefault("Drataliornus Flame"); - Main.projFrames[projectile.type] = 5; + DisplayName.SetDefault("Drataliornus Arrow"); } public override void SetDefaults() @@ -32,7 +31,7 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - projectile.rotation = projectile.velocity.ToRotation() + 1.5708f; + projectile.rotation = projectile.velocity.ToRotation(); if (projectile.hide) //called on first AI tick only - more initializations { @@ -51,16 +50,6 @@ namespace CalamityMod.Projectiles.Ranged projectile.netUpdate = true; } - projectile.frameCounter++; - if (projectile.frameCounter > 4) - { - projectile.frameCounter = 0; - projectile.frame++; - } - - if (projectile.frame > 4) - projectile.frame = 0; - //intangible until it's in completely open space if (!projectile.tileCollide && !Collision.SolidCollision(projectile.position, projectile.width, projectile.height)) { @@ -160,9 +149,7 @@ namespace CalamityMod.Projectiles.Ranged public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { Texture2D texture2D13 = Main.projectileTexture[projectile.type]; - int num214 = Main.projectileTexture[projectile.type].Height / Main.projFrames[projectile.type]; - int y6 = num214 * projectile.frame; - Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, y6, texture2D13.Width, num214)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)num214 / 2f), projectile.scale, SpriteEffects.None, 0f); + Main.spriteBatch.Draw(texture2D13, projectile.Center - Main.screenPosition + new Vector2(0f, projectile.gfxOffY), new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, 0, texture2D13.Width, texture2D13.Height)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2((float)texture2D13.Width / 2f, (float)texture2D13.Height / 2f), projectile.scale, SpriteEffects.None, 0f); return false; } @@ -217,15 +204,36 @@ namespace CalamityMod.Projectiles.Ranged projectile.timeLeft = 0; //should avoid infinite loop if a hit npc calls proj.Kill() projectile.penetrate = -1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; projectile.damage /= 3; projectile.Damage(); } } - public override void OnHitPlayer(Player target, int damage, bool crit) + public override void OnHitPvp(Player target, int damage, bool crit) { target.AddBuff(BuffID.Ichor, 540); target.AddBuff(ModContent.BuffType(), 540); + + if (projectile.ai[0] != 0f && projectile.owner == Main.myPlayer) //if empowered + { + if (projectile.timeLeft != 0) //will not be called on npcs hit by explosion (only direct hits) + { + //make exo arrow, make meteor + Vector2 vector3 = target.Center + new Vector2(600, 0).RotatedBy(MathHelper.ToRadians(Main.rand.Next(360))); + Vector2 speed = target.Center - vector3; + speed /= 30f; + Projectile.NewProjectile(vector3.X, vector3.Y, speed.X, speed.Y, ModContent.ProjectileType(), projectile.damage / 2, projectile.knockBack, projectile.owner); + + Vector2 vel = new Vector2(Main.rand.Next(-400, 401), Main.rand.Next(500, 801)); + Vector2 pos = target.Center - vel; + vel.X += Main.rand.Next(-100, 101); + vel.Normalize(); + vel *= 30f; + Projectile.NewProjectile(pos, vel + target.velocity, ModContent.ProjectileType(), projectile.damage * 3, projectile.knockBack * 5f, projectile.owner); + } + } } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) diff --git a/Projectiles/Ranged/DrataliornusFlame.png b/Projectiles/Ranged/DrataliornusFlame.png index a6f7327dc7..1366002f78 100644 Binary files a/Projectiles/Ranged/DrataliornusFlame.png and b/Projectiles/Ranged/DrataliornusFlame.png differ