various balancing tweaks
This commit is contained in:
1 parent
feb3baa47b
commit
62e3ee4b93
15 files changed
+42
-32
No files matched your search
@@ -40,6 +40,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 4;
|
||||
|
||||
public override float StealthDamageMultiplier => 3.5f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 3f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 3f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
|
||||
@@ -13,14 +13,14 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Iron Francisca");
|
||||
Tooltip.SetDefault("The franciscas do more damage for a short time when initially thrown\n" +
|
||||
"Stealth strikes pierce infinitely");
|
||||
"Stealth strikes pierce up to 5 times");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.damage = 7;
|
||||
Item.damage = 14;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -45,7 +45,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
int p = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI, 0f, 1f);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
Main.projectile[p].Calamity().penetrate = 5;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -13,14 +13,14 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Lead Tomahawk");
|
||||
Tooltip.SetDefault("The tomahawks have more damage for a short time when initially thrown\n" +
|
||||
"Stealth strikes pierce infinitely");
|
||||
"Stealth strikes pierce up to 5 times");
|
||||
SacrificeTotal = 99;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.damage = 7;
|
||||
Item.damage = 14;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -45,7 +45,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
int p = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, type, damage, knockback, player.whoAmI, 0f, 1f);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[p].Calamity().stealthStrike = true;
|
||||
Main.projectile[p].Calamity().penetrate = 5;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class NastyCholla : RogueWeapon
|
||||
{
|
||||
public static int BaseDamage = 9;
|
||||
public static int BaseDamage = 15;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -42,6 +42,8 @@ Stealth strikes throw five at once");
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 1.4f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
|
||||
|
||||
@@ -18,12 +18,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 14;
|
||||
Item.damage = 17;
|
||||
Item.shootSpeed = 12f;
|
||||
Item.shoot = ModContent.ProjectileType<Brick>();
|
||||
Item.width = 26;
|
||||
Item.height = 20;
|
||||
Item.useTime = Item.useAnimation = 40;
|
||||
Item.useTime = Item.useAnimation = 35;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 5f;
|
||||
Item.value = Item.buyPrice(0, 0, 0, 50);
|
||||
@@ -39,6 +39,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20;
|
||||
|
||||
public override float StealthDamageMultiplier => 1.2f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
//Check if stealth is full
|
||||
|
||||
@@ -20,7 +20,7 @@ Stealth strikes slow enemies down longer");
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
Item.damage = 8;
|
||||
Item.damage = 12;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.maxStack = 999;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.damage = 11;
|
||||
Item.damage = 9;
|
||||
Item.noMelee = true;
|
||||
Item.consumable = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -124,7 +124,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.UseSound = Throw1Sound;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 3.2f;
|
||||
public override float StealthDamageMultiplier => 0.64f;
|
||||
public override bool AdditionalStealthCheck() => stealthStrikeStarted;
|
||||
|
||||
public override void ModifyStatsExtra(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
|
||||
@@ -157,7 +157,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(100).
|
||||
CreateRecipe(50).
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -32,11 +32,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (Projectile.ai[1] == 1f)
|
||||
{
|
||||
Projectile.penetrate = -1;
|
||||
}
|
||||
|
||||
float rotateratio = 0.019f;
|
||||
float rotation = (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * rotateratio;
|
||||
Projectile.rotation += rotation * Projectile.direction;
|
||||
|
||||
@@ -32,11 +32,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (Projectile.ai[1] == 1f)
|
||||
{
|
||||
Projectile.penetrate = -1;
|
||||
}
|
||||
|
||||
float rotateratio = 0.019f;
|
||||
float rotation = (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * rotateratio;
|
||||
Projectile.rotation += rotation * Projectile.direction;
|
||||
|
||||
@@ -24,6 +24,8 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
Projectile.timeLeft = 200;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = RogueDamageClass.Instance;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = -2;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -58,7 +60,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
Projectile.ModifyHitNPCSticky(20, false);
|
||||
Projectile.ModifyHitNPCSticky(3, false);
|
||||
}
|
||||
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox)
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (Projectile.localAI[0] % 40 == 0 && Projectile.ai[0] == 1f)
|
||||
{
|
||||
Vector2 projspeed = new Vector2(Main.rand.NextFloat(-4f, 4f), Main.rand.NextFloat(-4f, 4f));
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, projspeed, ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), (int)(projdmg * 0.5f), 1f, Projectile.owner);
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, projspeed, ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), (int)(projdmg * 0.5f), 1f, Projectile.owner, 2f);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
@@ -85,12 +85,12 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.Venom, 180);
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
}
|
||||
|
||||
public override void OnHitPvp(Player target, int damage, bool crit)
|
||||
{
|
||||
target.AddBuff(BuffID.Venom, 180);
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
|
||||
@@ -36,11 +36,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
target.AddBuff(BuffID.Webbed, 120);
|
||||
target.AddBuff(BuffID.Webbed, 60);
|
||||
}
|
||||
else
|
||||
{
|
||||
target.AddBuff(BuffID.Webbed, 60);
|
||||
target.AddBuff(BuffID.Webbed, 30);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
target.AddBuff(BuffID.Webbed, 120);
|
||||
target.AddBuff(BuffID.Webbed, 60);
|
||||
}
|
||||
else
|
||||
{
|
||||
target.AddBuff(BuffID.Webbed, 60);
|
||||
target.AddBuff(BuffID.Webbed, 30);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
@@ -113,7 +114,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
return;
|
||||
}
|
||||
target.AddBuff(BuffID.Venom, fromArmour ? 150 : 120);
|
||||
int buffType = Projectile.ai[0] == 2f ModContent.BuffType<Irradiated>() : BuffID.Venom;
|
||||
target.AddBuff(buffType, fromArmour ? 150 : 120);
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
@@ -123,7 +125,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
return;
|
||||
}
|
||||
target.AddBuff(BuffID.Venom, fromArmour ? 150 : 120);
|
||||
int buffType = Projectile.ai[0] == 2f ModContent.BuffType<Irradiated>() : BuffID.Venom;
|
||||
target.AddBuff(buffType, fromArmour ? 150 : 120);
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user