From 91fe6ff8bd46dc55a5e458a0360f4875d7bd98e7 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 28 Dec 2023 00:33:48 -0500 Subject: [PATCH] More pre-Hardmode --- Items/Weapons/Magic/HarvestStaff.cs | 4 ++-- Items/Weapons/Melee/SeashineSword.cs | 2 +- Items/Weapons/Ranged/Barinade.cs | 6 +++--- Items/Weapons/Ranged/Fungicide.cs | 4 ++-- Projectiles/Magic/FlamingPumpkin.cs | 6 +++++- Projectiles/Ranged/FungiOrb.cs | 2 +- Projectiles/Ranged/FungiOrb2.cs | 15 ++++++++------- Projectiles/Rogue/FishboneBoomerangProjectile.cs | 8 ++++---- Projectiles/Summon/BrittleStarMinion.cs | 6 +++--- 9 files changed, 29 insertions(+), 24 deletions(-) diff --git a/Items/Weapons/Magic/HarvestStaff.cs b/Items/Weapons/Magic/HarvestStaff.cs index 7655e970d4..3abc3a5778 100644 --- a/Items/Weapons/Magic/HarvestStaff.cs +++ b/Items/Weapons/Magic/HarvestStaff.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 46; Item.height = 44; - Item.damage = 26; + Item.damage = 22; Item.DamageType = DamageClass.Magic; Item.mana = 5; Item.useTime = 23; @@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.UseSound = SoundID.Item20; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 10f; + Item.shootSpeed = 13f; Item.scale = 0.9f; } diff --git a/Items/Weapons/Melee/SeashineSword.cs b/Items/Weapons/Melee/SeashineSword.cs index 22088f67a5..1e9c585efd 100644 --- a/Items/Weapons/Melee/SeashineSword.cs +++ b/Items/Weapons/Melee/SeashineSword.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 40; Item.height = 40; Item.useTime = 30; - Item.damage = 26; + Item.damage = 25; Item.DamageType = DamageClass.Melee; Item.value = CalamityGlobalItem.Rarity2BuyPrice; Item.knockBack = 2; diff --git a/Items/Weapons/Ranged/Barinade.cs b/Items/Weapons/Ranged/Barinade.cs index 6720b8b8e2..340c79883f 100644 --- a/Items/Weapons/Ranged/Barinade.cs +++ b/Items/Weapons/Ranged/Barinade.cs @@ -14,10 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 30; Item.height = 44; - Item.damage = 4; + Item.damage = 5; Item.DamageType = DamageClass.Ranged; - Item.useTime = 22; - Item.useAnimation = 22; + Item.useTime = 24; + Item.useAnimation = 24; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.2f; diff --git a/Items/Weapons/Ranged/Fungicide.cs b/Items/Weapons/Ranged/Fungicide.cs index 2e3dbed74c..137ab89898 100644 --- a/Items/Weapons/Ranged/Fungicide.cs +++ b/Items/Weapons/Ranged/Fungicide.cs @@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Ranged Item.height = 26; Item.damage = 20; Item.DamageType = DamageClass.Ranged; - Item.useTime = 20; - Item.useAnimation = 20; + Item.useTime = 22; + Item.useAnimation = 22; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 2.5f; diff --git a/Projectiles/Magic/FlamingPumpkin.cs b/Projectiles/Magic/FlamingPumpkin.cs index c60ddc12d8..1d88d89bd6 100644 --- a/Projectiles/Magic/FlamingPumpkin.cs +++ b/Projectiles/Magic/FlamingPumpkin.cs @@ -1,4 +1,4 @@ -using Terraria; +using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Projectiles.Magic @@ -15,6 +15,8 @@ namespace CalamityMod.Projectiles.Magic Projectile.timeLeft = 200; Projectile.DamageType = DamageClass.Magic; Projectile.friendly = true; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; } public override void AI() @@ -24,5 +26,7 @@ namespace CalamityMod.Projectiles.Magic Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 64, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); } } + + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int DamageDone) => target.AddBuff(BuffID.OnFire, 60); } } diff --git a/Projectiles/Ranged/FungiOrb.cs b/Projectiles/Ranged/FungiOrb.cs index 0f5fdf1a72..e0654b06a2 100644 --- a/Projectiles/Ranged/FungiOrb.cs +++ b/Projectiles/Ranged/FungiOrb.cs @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Ranged { for (int f = 0; f < 3; f++) { - Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); + Vector2 velocity = CalamityUtils.RandomVelocity(100f, 60f, 85f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.4), 0f, Projectile.owner); } } diff --git a/Projectiles/Ranged/FungiOrb2.cs b/Projectiles/Ranged/FungiOrb2.cs index 3a0ee56cec..b7cce853a9 100644 --- a/Projectiles/Ranged/FungiOrb2.cs +++ b/Projectiles/Ranged/FungiOrb2.cs @@ -1,4 +1,4 @@ -using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -17,7 +17,6 @@ namespace CalamityMod.Projectiles.Ranged Projectile.friendly = true; Projectile.DamageType = DamageClass.Ranged; Projectile.penetrate = 1; - Projectile.aiStyle = ProjAIStyleID.Arrow; Projectile.timeLeft = 180; } @@ -31,9 +30,6 @@ namespace CalamityMod.Projectiles.Ranged Lighting.AddLight(Projectile.Center, new Vector3(0, 244, 252) * (1.2f / 255)); - Projectile.velocity.Y += 0.1f; - Projectile.velocity.X *= 0.95f; - Projectile.localAI[0] += 1f; if (Projectile.localAI[0] > 4f) { @@ -42,9 +38,14 @@ namespace CalamityMod.Projectiles.Ranged Main.dust[dust].noGravity = true; Main.dust[dust].velocity = dspeed; } - + bool isHoming = false; if (Projectile.timeLeft < 150) - CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 6f, 20f); + { + isHoming = true; + CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 6.5f, 20f); + } + if (!isHoming) + Projectile.velocity.Y += 0.14f; } public override void OnKill(int timeLeft) diff --git a/Projectiles/Rogue/FishboneBoomerangProjectile.cs b/Projectiles/Rogue/FishboneBoomerangProjectile.cs index 1d248d3f0f..45c298a2b4 100644 --- a/Projectiles/Rogue/FishboneBoomerangProjectile.cs +++ b/Projectiles/Rogue/FishboneBoomerangProjectile.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue internal PrimitiveTrail TrailRenderer; public override string Texture => "CalamityMod/Items/Weapons/Rogue/FishboneBoomerang"; - public static int ChargeupTime = 20; + public static int ChargeupTime = 10; public static int Lifetime = 240; public float OverallProgress => 1 - Projectile.timeLeft / (float)Lifetime; public float ThrowProgress => 1 - Projectile.timeLeft / (float)(Lifetime); @@ -103,12 +103,12 @@ namespace CalamityMod.Projectiles.Rogue Projectile.numHits = 0; } - if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f) + if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f && Projectile.timeLeft < (205 + ChargeupTime)) { - Projectile.velocity *= 0.97f; + Projectile.velocity *= 0.88f; } - if (Returning == 1f && Projectile.velocity.Length() < 17f) + if (Returning == 1f && Projectile.velocity.Length() < 20f) { Projectile.velocity *= 1.1f; } diff --git a/Projectiles/Summon/BrittleStarMinion.cs b/Projectiles/Summon/BrittleStarMinion.cs index 52cfae8e3e..1e2568e1ea 100644 --- a/Projectiles/Summon/BrittleStarMinion.cs +++ b/Projectiles/Summon/BrittleStarMinion.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Summon if (starCount <= 1f) starCount = 1f; - return MathHelper.TwoPi * StarIndex / starCount + AITimer * 0.018f; + return MathHelper.TwoPi * StarIndex / starCount + AITimer * 0.025f; // "MathHelper.TwoPi / ProbeIndex * probeCount"s the position itself. // "AITimer * [Modifier]"s how fast it spins. } @@ -120,11 +120,11 @@ namespace CalamityMod.Projectiles.Summon Projectile.alpha = 0; HitCounter = 0; Projectile.velocity = Vector2.Zero; - Vector2 idleDestination = Owner.Center + StarPositionAngle.ToRotationVector2() * (75f * MoveWidth); + Vector2 idleDestination = Owner.Center + StarPositionAngle.ToRotationVector2() * (90f * MoveWidth); Projectile.Center = Vector2.Lerp(Projectile.Center, idleDestination, 0.15f); AITimer++; - Owner.statDefense += 3; + Owner.statDefense += 5; Projectile.rotation += MoveWidth * 0.2f; } if (!MinionBuffMode && !Reforming) // Minion when ramming