Beam adjust and balancing

This commit is contained in:
Xyk committed 2024-08-05 14:07:35 -07:00
1 parent abb5b6dbc7
commit 45b904565c
3 files changed
+20 -14

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 78;
Item.height = 78;
Item.damage = 100;
Item.damage = 155;
Item.DamageType = DamageClass.Melee;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = Item.useAnimation = useTime;
+17 -12
View File
@@ -12,6 +12,7 @@ using Terraria;
using Terraria.DataStructures;
using Basic.Reference.Assemblies;
using System;
using Mono.Cecil;
namespace CalamityMod.Items.Weapons.Melee
{
@@ -30,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = Item.height = 108;
Item.damage = 210;
Item.damage = 400;
Item.DamageType = DamageClass.Melee;
Item.useTime = Item.useAnimation = useTime;
Item.useStyle = ItemUseStyleID.Swing;
@@ -52,17 +53,6 @@ namespace CalamityMod.Items.Weapons.Melee
Vector2 vel = (velocity * 2.5f).RotatedByRandom(0.6f);
Projectile.NewProjectile(source, Main.MouseWorld - (velocity * 40) + Main.rand.NextVector2Circular(130, 130), vel * Main.rand.NextFloat(0.8f, 1.2f), ModContent.ProjectileType<StarofJudgement>(), (int)(damage * 0.25f), knockback * 0.2f, player.whoAmI, 0, 0, 1);
}
for (int i = 0; i < 2; i++)
{
Vector2 targetPos = Main.MouseWorld;
NPC target = Main.MouseWorld.ClosestNPCAt(650);
if (target != null)
targetPos = target.Center + target.velocity * 14;
Vector2 spawnPos = Main.MouseWorld + new Vector2(Main.rand.NextFloat(-300, 300), -900);
Vector2 vel = (targetPos - spawnPos).SafeNormalize(Vector2.UnitY) * 10;
Projectile.NewProjectile(source, spawnPos, vel, ModContent.ProjectileType<OrderbringerBeam>(), damage, knockback * 0.5f, player.whoAmI);
}
return false;
}
public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
@@ -110,6 +100,21 @@ namespace CalamityMod.Items.Weapons.Melee
dust.noGravity = true;
}
}
public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone)
{
int beamDamage = player.CalcIntDamage<MeleeDamageClass>(Item.damage * 1.5f);
for (int i = 0; i < 2; i++)
{
Vector2 targetPos = Main.MouseWorld;
NPC target2 = Main.MouseWorld.ClosestNPCAt(650);
if (target2 != null)
targetPos = target2.Center + target2.velocity * 14;
Vector2 spawnPos = Main.MouseWorld + new Vector2(Main.rand.NextFloat(-300, 300), -900);
Vector2 vel = (targetPos - spawnPos).SafeNormalize(Vector2.UnitY) * 10;
Projectile.NewProjectile(player.GetSource_ItemUse(Item), spawnPos, vel, ModContent.ProjectileType<OrderbringerBeam>(), beamDamage, 0, player.whoAmI);
}
}
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
{
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Weapons/Melee/GreatswordofJudgementGlow").Value);
@@ -910,8 +910,9 @@ Orderbringer: {
DisplayName: Orderbringer
Tooltip:
'''
Fires a piercing energy wave along with two blades from the sky and four homing stars that are created near your cursor
Fires a piercing energy wave along and four homing stars that are created near your cursor
Energy waves deal more damage as they pierce enemies
Striking with the blade summons two beams from the sky
'No matter where you may be you are never alone'
'''
}