From 0508796b417161e04d2fb167b8305930a8189fca Mon Sep 17 00:00:00 2001 From: Xyk Date: Fri, 15 Mar 2024 19:26:28 -0700 Subject: [PATCH] Cluster Rockets new size Made cluster rockets get a size in between rocket 3's and nukes. (They used to have the same AoE size as nukes, a post ML ammo) increased spread of uncharged Hive shots a bit --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 4 ++-- Projectiles/Ranged/TheHiveHoldout.cs | 4 ++-- Utilities/ProjectileUtils.cs | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 4660b2cf9b..6755615873 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -1251,8 +1251,8 @@ TheHive: { Tooltip: ''' Launches a wide spread of 4 missiles that explode on contact with enemies and tiles - Charging the launcher decreases the spread and increases the velocity of the missile barrage - Fully charging the launcher will cause it to fire a nuke to decimate a massive area on impact + Charging the launcher decreases the spread and increases the velocity of the missile barrage + Fully charging the launcher will cause it to fire a nuke to decimate a massive area on impact ''' } diff --git a/Projectiles/Ranged/TheHiveHoldout.cs b/Projectiles/Ranged/TheHiveHoldout.cs index 4660c1c6d5..ee3d9577fa 100644 --- a/Projectiles/Ranged/TheHiveHoldout.cs +++ b/Projectiles/Ranged/TheHiveHoldout.cs @@ -222,7 +222,7 @@ namespace CalamityMod.Projectiles.Ranged SoundEngine.PlaySound(fire with { Volume = 0.4f, Pitch = 0.7f }, Projectile.Center); int numProj = 4; - float rotation = MathHelper.ToRadians(MathHelper.Clamp(25 - VelocityMultiplier * 20, 3, 25)); + float rotation = MathHelper.ToRadians(MathHelper.Clamp(35 - VelocityMultiplier * 26, 2, 25)); for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = (shootDirection).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); @@ -236,7 +236,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.owner, rocketType); } - PostFireCooldown = 35; + PostFireCooldown = 30; } NetUpdate(); diff --git a/Utilities/ProjectileUtils.cs b/Utilities/ProjectileUtils.cs index c2119dbe3a..0a34629ef5 100644 --- a/Utilities/ProjectileUtils.cs +++ b/Utilities/ProjectileUtils.cs @@ -440,7 +440,8 @@ namespace CalamityMod // Explosion radii for various rocket ammos. Defaults to the sizes used in vanilla launchers. public int smallRadius = 3; // Rocket I and II public int mediumRadius = 6; // Rocket III and IV - public int largeRadius = 9; // Mini Nuke and Cluster Rockets + public int bigRadius = 7; // Cluster Rockets + public int largeRadius = 9; // Mini Nukes public bool respectStandardBlastImmunity = true; public List tilesToCheck = null; @@ -523,12 +524,12 @@ namespace CalamityMod break; case ItemID.ClusterRocketI: - explosionRadius = info.largeRadius; + explosionRadius = info.bigRadius; SpawnClusterFragments(false); break; case ItemID.ClusterRocketII: - explosionRadius = info.largeRadius; + explosionRadius = info.bigRadius; SpawnClusterFragments(true); break;