Tooltip adjustment for rays

This commit is contained in:
Dominic committed 2020-11-06 15:11:26 -06:00
1 parent dc6d0495ec
commit ef5a8254ab
5 files changed
+20 -9

No files matched your search

+2 -1
View File
@@ -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;
}
+10 -1
View File
@@ -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<VortexElementalBeam>())
{
Main.projectile[beam].ai[0] = shootDirection.ToRotation();
Main.projectile[beam].ai[1] = Main.rand.Next(100);
}
return false;
}
+2 -1
View File
@@ -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;
}
+2 -1
View File
@@ -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;
}
+4 -5
View File
@@ -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;
}
}
}