diff --git a/Items/Weapons/Magic/CarnageRay.cs b/Items/Weapons/Magic/CarnageRay.cs index 65e8197023..d5952040bf 100644 --- a/Items/Weapons/Magic/CarnageRay.cs +++ b/Items/Weapons/Magic/CarnageRay.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Carnage Ray"); - Tooltip.SetDefault("Fires a blood ray that splits if enemies are near it"); + Tooltip.SetDefault("Fires a blood ray\n" + + "The farther along the ray hit enemies are, the more damage they take"); Item.staff[item.type] = true; } diff --git a/Items/Weapons/Magic/ElementalRay.cs b/Items/Weapons/Magic/ElementalRay.cs index 51a9012991..44b0758e65 100644 --- a/Items/Weapons/Magic/ElementalRay.cs +++ b/Items/Weapons/Magic/ElementalRay.cs @@ -12,7 +12,11 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Elemental Ray"); - Tooltip.SetDefault("Casts a rainbow ray that splits when enemies are near it"); + Tooltip.SetDefault("Casts four celestial beams near the player\n" + + "Solar beams explode into fire on enemy hits\n" + + "Nebula beams sweep a little bit over time\n" + + "Vortex beams act like fast lightning and electrify enemies on hit\n" + + "Stardust beams release small stars that home on enemy hits"); Item.staff[item.type] = true; } @@ -67,8 +71,13 @@ namespace CalamityMod.Items.Weapons.Magic Vector2 spawnOffset = player.DirectionTo(Main.MouseWorld).RotatedBy(offsetAngle) * -Main.rand.NextFloat(40f, 96f); Vector2 shootDirection = (Main.MouseWorld - (position + spawnOffset)).SafeNormalize(Vector2.UnitX * player.direction); int beam = Projectile.NewProjectile(position + spawnOffset, shootDirection * shootSpeed, type, damage, knockBack, player.whoAmI); + + // Define specific values for fired lightning. if (type == ModContent.ProjectileType()) + { Main.projectile[beam].ai[0] = shootDirection.ToRotation(); + Main.projectile[beam].ai[1] = Main.rand.Next(100); + } return false; } diff --git a/Items/Weapons/Magic/NightsRay.cs b/Items/Weapons/Magic/NightsRay.cs index 7b4d0d00de..dcfb7353ea 100644 --- a/Items/Weapons/Magic/NightsRay.cs +++ b/Items/Weapons/Magic/NightsRay.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Night's Ray"); - Tooltip.SetDefault("Fires a dark ray that splits if enemies are near it"); + Tooltip.SetDefault("Fires a dark ray\n" + + "When hitting enemies, they are hit by several new beams from their sides"); Item.staff[item.type] = true; } diff --git a/Items/Weapons/Magic/TerraRay.cs b/Items/Weapons/Magic/TerraRay.cs index 1affdf07ba..fba75d04ce 100644 --- a/Items/Weapons/Magic/TerraRay.cs +++ b/Items/Weapons/Magic/TerraRay.cs @@ -12,7 +12,8 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetStaticDefaults() { DisplayName.SetDefault("Terra Ray"); - Tooltip.SetDefault("Casts an energy ray that splits if enemies are near it"); + Tooltip.SetDefault("Casts an energy ray that splits into energy on enemy hits\n" + + "More energy is created the farther along the ray the hit enemy is"); Item.staff[item.type] = true; } diff --git a/Projectiles/Magic/BloodRay.cs b/Projectiles/Magic/BloodRay.cs index f82b5cf33e..c88aaefc00 100644 --- a/Projectiles/Magic/BloodRay.cs +++ b/Projectiles/Magic/BloodRay.cs @@ -48,11 +48,10 @@ namespace CalamityMod.Projectiles.Magic { int dustType = Main.rand.NextBool(4) ? 182 : (int)CalamityDusts.Brimstone; Vector2 dustSpawnPos = projectile.position - projectile.velocity * i / 2f; - Dust corruptMagic = Dust.NewDustPerfect(dustSpawnPos, dustType); - corruptMagic.scale = Main.rand.NextFloat(0.96f, 1.04f); - corruptMagic.scale *= MathHelper.Lerp(1f, 1.7f, Time / Lifetime); - corruptMagic.noGravity = true; - corruptMagic.velocity *= 0.1f; + Dust crimtameMagic = Dust.NewDustPerfect(dustSpawnPos, dustType); + crimtameMagic.scale = Main.rand.NextFloat(0.96f, 1.04f) * MathHelper.Lerp(1f, 1.7f, Time / Lifetime); + crimtameMagic.noGravity = true; + crimtameMagic.velocity *= 0.1f; } } }