1 - Astral Blade makes a sound and emits cool dust on hit if the enemy has more than 50% HP left.
2 - Mutilator nerf, spawns only a single heart at a 50% chance if a boss is alive and does less damage.
This commit is contained in:
1 parent
6b3e15ff79
commit
2ea03e24a9
3 files changed
+34
-12
No files matched your search
@@ -3699,7 +3699,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.hurtCooldowns[k] = player.immuneTime;
|
||||
}
|
||||
|
||||
Main.PlaySound(SoundID.Item, (int)Main.player[Main.myPlayer].position.X, (int)Main.player[Main.myPlayer].position.Y, 68);
|
||||
Main.PlaySound(SoundID.Item68, Main.player[Main.myPlayer].position);
|
||||
int eclipseBurst = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<EclipseMirrorBurst>(), (int)(7000 * player.RogueDamage()), 0, player.whoAmI);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -74,6 +75,23 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
if (!crit)
|
||||
crit = Main.rand.NextBool((int)MathHelper.Clamp((item.crit + player.meleeCrit) * multiplier, 0f, 99f), 100);
|
||||
|
||||
if (multiplier > 1.5f)
|
||||
{
|
||||
Main.PlaySound(SoundID.Item105, Main.player[Main.myPlayer].position);
|
||||
bool blue = Main.rand.NextBool();
|
||||
float angleStart = Main.rand.NextFloat(0f, MathHelper.TwoPi);
|
||||
float var = 0.05f + (2f - multiplier);
|
||||
for (float angle = 0f; angle < MathHelper.TwoPi; angle += var)
|
||||
{
|
||||
blue = !blue;
|
||||
Vector2 velocity = angle.ToRotationVector2() * (2f + (float)(Math.Sin(angleStart + angle * 3f) + 1) * 2.5f) * Main.rand.NextFloat(0.95f, 1.05f);
|
||||
Dust d = Dust.NewDustPerfect(target.Center, blue ? ModContent.DustType<AstralBlue>() : ModContent.DustType<AstralOrange>(), velocity);
|
||||
d.customData = 0.025f;
|
||||
d.scale = multiplier - 0.75f;
|
||||
d.noLight = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -19,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 90;
|
||||
item.height = 90;
|
||||
item.damage = 950;
|
||||
item.damage = 700;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -38,16 +39,19 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
if (target.life <= (target.lifeMax * 0.2f) && target.canGhostHeal)
|
||||
{
|
||||
int heartDrop = Main.rand.Next(1, 3);
|
||||
for (int i = 0; i < heartDrop; i++)
|
||||
{
|
||||
Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, 58, 1, false, 0, false, false);
|
||||
}
|
||||
if (!CalamityPlayer.areThereAnyDamnBosses || Main.rand.NextBool(2))
|
||||
{
|
||||
int heartDrop = CalamityPlayer.areThereAnyDamnBosses ? 1 : Main.rand.Next(1, 3);
|
||||
for (int i = 0; i < heartDrop; i++)
|
||||
{
|
||||
Item.NewItem((int)target.position.X, (int)target.position.Y, target.width, target.height, 58, 1, false, 0, false, false);
|
||||
}
|
||||
}
|
||||
Main.PlaySound(SoundID.Item14, target.position);
|
||||
target.position.X += (float)(target.width / 2);
|
||||
target.position.Y += (float)(target.height / 2);
|
||||
target.position.X -= (float)(target.width / 2);
|
||||
target.position.Y -= (float)(target.height / 2);
|
||||
target.position.X += target.width / 2;
|
||||
target.position.Y += target.height / 2;
|
||||
target.position.X -= target.width / 2;
|
||||
target.position.Y -= target.height / 2;
|
||||
for (int num621 = 0; num621 < 30; num621++)
|
||||
{
|
||||
int num622 = Dust.NewDust(new Vector2(target.position.X, target.position.Y), target.width, target.height, 5, 0f, 0f, 100, default, 2f);
|
||||
@@ -55,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Main.dust[num622].scale = 0.5f;
|
||||
Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
Main.dust[num622].fadeIn = 1f + Main.rand.Next(10) * 0.1f;
|
||||
}
|
||||
}
|
||||
for (int num623 = 0; num623 < 50; num623++)
|
||||
|
||||
Reference in new issue
Block a user