Calamity wood item tweaks

This commit is contained in:
Altixal committed 2026-07-28 13:42:34 +07:00
1 parent 1566a19feb
commit 4dd07fca60
10 files changed
+30 -112

No files matched your search

+2
View File
@@ -287,6 +287,7 @@ namespace CalamityMod.Items
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, DamageExact(33), TileBoostExact(+0)) }, // VANILLA: 20 DMG, -1 TILE
{ ItemID.AdamantitePickaxe, Do(TileBoostExact(+1)) }, // VANILLA: 0 TILE
{ ItemID.AdamantiteWaraxe, Do(UseTimeExact(10), AxePower(160), TileBoostExact(+1)) }, // VANILLA: 8 SPD, 100 AXE, 0 TILE
{ ItemID.AshWoodHammer, Do(UseTimeExact(7), HammerPower(25)) }, // VANILLA: 20 SPD, 45 HAM
{ ItemID.BloodLustCluster, Do(UseTimeExact(13), AxePower(100)) }, // VANILLA: 15 SPD, 75 AXE
{ ItemID.BonePickaxe, Do(UseTimeExact(6)) }, // VANILLA: 11 SPD
{ ItemID.BorealWoodHammer, Do(UseTimeExact(11), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
@@ -397,6 +398,7 @@ namespace CalamityMod.Items
#endregion
#region CATEGORY 5: UseTurn
{ ItemID.AshWoodSword, Do(UseTurn) },
{ ItemID.BeeKeeper, Do(UseTurn) },
{ ItemID.BladeofGrass, Do(UseTurn) },
{ ItemID.BloodButcherer, Do(UseTurn) },
+3 -13
View File
@@ -10,21 +10,11 @@ namespace CalamityMod.Items.Tools
public new string LocalizationCategory => "Items.Tools";
public override void SetDefaults()
{
Item.damage = 10;
Item.knockBack = 3.5f;
Item.useTime = 9;
Item.useAnimation = 20;
Item.hammer = 25;
Item.DamageType = DamageClass.Melee;
Item.CloneDefaults(ItemID.ShadewoodHammer); // Ash Wood > Acidwood > Shadewood
Item.width = 40;
Item.height = 40;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = Item.sellPrice(copper: 10);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.damage = 8;
Item.useTime = 8; // Due to vanilla tool tweaks; otherwise apply 40% hammer power
}
public override void AddRecipes()
{
+4 -15
View File
@@ -10,26 +10,15 @@ namespace CalamityMod.Items.Tools
{
public new string LocalizationCategory => "Items.Tools";
public static int NormalUseTime = 11;
public static int FasterUseTime = 8;
public static int NormalUseTime = 9; // Equals Shadewood
public static int FasterUseTime = 7;
public override void SetDefaults()
{
Item.damage = 13;
Item.knockBack = 4f;
Item.useTime = NormalUseTime;
Item.useAnimation = 31;
Item.hammer = 25;
Item.DamageType = DamageClass.Melee;
Item.CloneDefaults(ItemID.ShadewoodHammer); // Driftwood (base) = Shadewood
Item.width = 40;
Item.height = 42;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = Item.sellPrice(copper: 10);
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.useTime = NormalUseTime;
}
// The tool is mechanically faster when wet.
+5 -14
View File
@@ -12,23 +12,14 @@ namespace CalamityMod.Items.Tools
public new string LocalizationCategory => "Items.Tools";
public override void SetDefaults()
{
Item.damage = 29;
Item.knockBack = 2.5f;
Item.useTime = 5;
Item.useAnimation = 9;
Item.hammer = 35;
Item.tileBoost = 1;
Item.DamageType = DamageClass.Melee;
Item.CloneDefaults(ItemID.PearlwoodHammer); // Monolith >= Pearlwood
Item.width = 46;
Item.height = 44;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.value = Item.sellPrice(silver: 75);
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.damage = 30;
Item.useAnimation = 14;
Item.tileBoost = 1;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
+2 -8
View File
@@ -9,18 +9,12 @@ namespace CalamityMod.Items.Weapons.Melee
public new string LocalizationCategory => "Items.Weapons.Melee";
public override void SetDefaults()
{
Item.damage = 11;
Item.CloneDefaults(ItemID.ShadewoodSword); // Ash Wood > Acidwood > Shadewood
Item.width = 36;
Item.height = 40;
Item.DamageType = DamageClass.Melee;
Item.damage = 12;
Item.useAnimation = Item.useTime = 18;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 3f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.useTurn = true;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.rare = ItemRarityID.White;
}
public override void AddRecipes()
{
+3 -12
View File
@@ -12,18 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.damage = 14;
Item.CloneDefaults(ItemID.ShadewoodSword); // Driftwood (base) = Shadewood
Item.width = 42;
Item.height = 46;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 20;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 4f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.useTurn = true;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.rare = ItemRarityID.White;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
@@ -32,9 +23,9 @@ namespace CalamityMod.Items.Weapons.Melee
Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, DustID.MagnetSphere);
}
public override float UseSpeedMultiplier(Player player) => player.Calamity().countsAsAnyWet ? 1.66f : 1f;
public override float UseSpeedMultiplier(Player player) => player.Calamity().countsAsAnyWet ? 1.25f : 1f;
public override void ModifyWeaponKnockback(Player player, ref StatModifier knockback) => knockback.Base += player.Calamity().countsAsAnyWet ? 1.5f : 0f;
public override void ModifyWeaponKnockback(Player player, ref StatModifier knockback) => knockback.Base += player.Calamity().countsAsAnyWet ? 1.25f : 0f;
public override void AddRecipes()
{
+2 -9
View File
@@ -18,18 +18,11 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.damage = 30;
Item.CloneDefaults(ItemID.PearlwoodSword); // Monolith >= Pearlwood
Item.width = 40;
Item.height = 46;
Item.DamageType = DamageClass.Melee;
Item.damage = 30;
Item.useAnimation = Item.useTime = 7;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 4f;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.useTurn = true;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.ArmorPenetration = ArmorPenetration;
}
public override void UseItemHitbox(Player player, ref Rectangle hitbox, ref bool noHitbox)
+3 -14
View File
@@ -9,22 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.damage = 8;
Item.DamageType = DamageClass.Ranged;
Item.CloneDefaults(ItemID.ShadewoodBow); // Ash Wood > Acidwood > Shadewood
Item.width = 20;
Item.height = 50;
Item.useTime = 27;
Item.useAnimation = 27;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shoot = ProjectileID.WoodenArrowFriendly;
Item.shootSpeed = 6.6f;
Item.useAmmo = AmmoID.Arrow;
Item.damage = 9;
Item.useAnimation = Item.useTime = 27;
}
public override void AddRecipes()
+2 -15
View File
@@ -12,29 +12,16 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
Item.damage = 10;
Item.DamageType = DamageClass.Ranged;
Item.CloneDefaults(ItemID.ShadewoodBow); // Driftwood (base) = Shadewood
Item.width = 22;
Item.height = 42;
Item.useTime = 28;
Item.useAnimation = 28;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.RarityWhiteBuyPrice;
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shoot = ProjectileID.WoodenArrowFriendly;
Item.shootSpeed = 6.6f;
Item.useAmmo = AmmoID.Arrow;
}
public override void ModifyShootStats(Player player, ref Vector2 position, ref Vector2 velocity, ref int type, ref int damage, ref float knockback)
{
if (player.Calamity().countsAsAnyWet)
{
velocity *= 1.3f;
velocity *= 1.2f;
knockback += 1f;
for (int i = 0; i <= 18; i++)
+4 -12
View File
@@ -13,24 +13,16 @@ namespace CalamityMod.Items.Weapons.Ranged
public new string LocalizationCategory => "Items.Weapons.Ranged";
public override void SetDefaults()
{
Item.damage = 19;
Item.DamageType = DamageClass.Ranged;
Item.CloneDefaults(ItemID.PearlwoodBow); // Monolith >= Pearlwood
Item.width = 24;
Item.height = 54;
Item.damage = 19;
Item.useTime = 5;
Item.useAnimation = 20;
Item.useLimitPerAnimation = 4;
Item.reuseDelay = 25;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.UseSound = SoundID.Item5;
Item.autoReuse = true;
Item.shoot = ProjectileID.WoodenArrowFriendly;
Item.shootSpeed = 9f;
Item.useAmmo = AmmoID.Arrow;
Item.consumeAmmoOnFirstShotOnly = true;
Item.shootSpeed = 9f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)