Merge pull request #1600 from CalamityTeam/even-more-tweaks

Even more tweaks
This commit is contained in:
CongratsIsTrash authored and GitHub committed 2026-07-30 21:35:22 -04:00
commit 11f1f58a60
54 files changed
+126 -211

No files matched your search

+7 -5
View File
@@ -113,7 +113,7 @@ namespace CalamityMod.Items
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) }, // VANILLA: 35 DMG, 7 VEL
{ ItemID.FlowerofFire, Do(DamageRatio(0.78f)) }, // VANILLA: 48 DMG. Uses ratios due to remix seed
{ ItemID.FlowerPow, Do(DamageExact(80)) }, // Displays as 160 damage. VANILLA: 65 DMG (displays as 130)
{ ItemID.FlyingKnife, Do(DamageExact(53)) }, // VANILLA: 40 DMG
{ ItemID.FlyingKnife, Do(DamageExact(45)) }, // VANILLA: 40 DMG
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(110)) }, // VANILLA: 49 DMG
{ ItemID.Gatligator, Do(UseExact(6)) }, // VANILLA: 7 UT
{ ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) }, // VANILLA: 12 DMG
@@ -208,7 +208,7 @@ namespace CalamityMod.Items
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) }, // VANILLA: 80 DMG
{ ItemID.ShadowFlameBow, Do(DamageExact(55)) }, // VANILLA: 47 DMG
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(40), ShootSpeedExact(30)) }, // VANILLA: 32 DMG, 9 VEL
{ ItemID.ShadowFlameKnife, Do(DamageExact(50)) }, // VANILLA: 38 DMG
{ ItemID.ShadowFlameKnife, Do(DamageExact(43)) }, // VANILLA: 38 DMG
{ ItemID.SharpTears, Do(DamageExact(49)) }, // Blood Thorn. VANILLA: 34 DMG
{ ItemID.Shotgun, Do(DamageExact(36)) }, // VANILLA: 24 DMG
{ ItemID.SilverBullet, Do(DamageExact(8)) }, // VANILLA: 9 DMG
@@ -231,7 +231,7 @@ namespace CalamityMod.Items
{ ItemID.TacticalShotgun, Do(DamageExact(34)) }, // VANILLA: 29 DMG
{ ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, DamageExact(80), UseExact(10)) }, // Classy Cane. VANILLA: 16 DMG, 15 UT
{ ItemID.TendonBow, Do(DamageExact(17)) }, // VANILLA: 19 DMG
{ ItemID.TerraBlade, Do(DamageExact(95)) }, // VANILLA: 85 DMG
{ ItemID.TerraBlade, Do(DamageExact(90)) }, // VANILLA: 85 DMG
{ ItemID.Terragrim, Do(TrueMeleeNoSpeed, DamageExact(13)) }, // VANILLA: 17 DMG
{ ItemID.Terrarian, Do(DamageExact(90)) }, // VANILLA: 190 DMG. Required due to fixing iframes so yoyo and shots can hit simultaneously
{ ItemID.TheEyeOfCthulhu, Do(DamageExact(80)) }, // VANILLA: 115 DMG
@@ -247,8 +247,8 @@ namespace CalamityMod.Items
{ ItemID.ToxicFlask, Do(DamageExact(62), UseExact(33)) }, // VANILLA: 52 DMG, 45 UT
{ ItemID.Toxikarp, Do(UseExact(9)) }, // VANILLA: 10 UT
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) }, // VANILLA: 72 DMG
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) }, // VANILLA: 70 DMG
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(105)) }, // VANILLA: 72 DMG
{ ItemID.TrueNightsEdge, Do(DamageExact(99)) }, // VANILLA: 70 DMG
{ ItemID.Tsunami, Do(DamageExact(45)) }, // VANILLA: 53 DMG
{ ItemID.TungstenBullet, Do(DamageExact(8)) }, // VANILLA: 9 DMG
{ ItemID.TungstenShortsword, Do(TrueMelee, DamageExact(15)) }, // VANILLA: 10 DMG
@@ -283,6 +283,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
@@ -393,6 +394,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) },
+1 -1
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Materials
AddIngredient<EssenceofHavoc>().
AddIngredient<EssenceofEleum>().
AddIngredient<AshesofCalamity>().
AddIngredient(ItemID.Ectoplasm, 3).
AddIngredient(ItemID.Ectoplasm).
AddTile(TileID.MythrilAnvil).
Register();
}
+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))
@@ -14,13 +14,14 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override string ArmorSetName => "Gladiator";
public const int HelmetRogueDamageBoostPercent = 3;
public const int HelmetRogueDamageBoostPercent = 8;
public const int ChestplateRogueCritBoostPercent = 3;
public const int LeggingRogueVelocityBoostPercent = 3;
public const int LeggingRogueVelocityBoostPercent = 10;
public const float SetBonusRogueStealth = 0.6f;
public override void UpdateSetBonusText(ref string setBonusText)
{
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusRogueStealth.ToStealth())}";
}
public override void ApplyHeadPieceEffect(Player player)
@@ -40,10 +41,8 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override void ApplyArmorSetBonus(Player player)
{
player.Calamity().rogueStealthMax += 0.6f;
player.Calamity().rogueStealthMax += SetBonusRogueStealth;
player.Calamity().wearingRogueArmor = true;
player.GetDamage<ThrowingDamageClass>() += 0.05f;
player.Calamity().rogueVelocity += 0.1f;
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 74;
Item.height = 74;
Item.damage = 123;
Item.damage = 114;
Item.knockBack = 7.5f;
Item.useTime = 65;
Item.useAnimation = 65;
+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()
{
+2 -3
View File
@@ -60,13 +60,12 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 112;
Item.height = 172;
Item.damage = 507;
Item.damage = 444;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.crit = 10;
Item.noUseGraphic = true;
Item.noMelee = true;
Item.useAnimation = 20;
Item.useTime = 20;
Item.useAnimation = Item.useTime = 20;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Shoot;
Item.knockBack = 8.5f;
+2 -3
View File
@@ -16,10 +16,9 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 56;
Item.height = 56;
Item.damage = 42;
Item.damage = 35;
Item.knockBack = 3f;
Item.useTime = 53;
Item.useAnimation = 53;
Item.useAnimation = Item.useTime = 53;
Item.shoot = ModContent.ProjectileType<BladecrestOathswordThrownBlade>();
Item.shootSpeed = 6f;
+1 -1
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 88;
Item.height = 88;
Item.damage = 65;
Item.damage = 52;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 28;
Item.useStyle = ItemUseStyleID.Swing;
+1 -2
View File
@@ -21,8 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 32;
Item.height = 32;
Item.useStyle = ItemUseStyleID.Swing;
Item.useAnimation = 20;
Item.useTime = 20;
Item.useAnimation = Item.useTime = 23;
Item.damage = BaseDamage;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.knockBack = 7f;
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 92;
Item.height = 94;
Item.damage = 48;
Item.damage = 45;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = Item.useTime = 38;
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 102;
Item.height = 102;
Item.damage = 119;
Item.damage = 111;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 28;
Item.useStyle = ItemUseStyleID.Swing;
+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()
{
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 14;
Item.height = 28;
Item.damage = 368;
Item.damage = 315;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
+1 -1
View File
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 78;
Item.height = 78;
Item.damage = 280;
Item.damage = 225;
Item.DamageType = DamageClass.Melee;
Item.useStyle = ItemUseStyleID.Swing;
Item.useAnimation = Item.useTime = 20;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 124;
Item.height = 124;
Item.damage = 760;
Item.damage = 570;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = Item.useTime = 71;
Item.useTurn = true;
+2 -3
View File
@@ -25,11 +25,10 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 114;
Item.height = 146;
Item.damage = 2900;
Item.damage = 2200;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = 45;
Item.useAnimation = Item.useTime = 45;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 45;
Item.useTurn = true;
Item.knockBack = 7.75f;
Item.autoReuse = true;
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 54;
Item.height = 54;
Item.useStyle = ItemUseStyleID.Shoot;
Item.damage = 132;
Item.damage = 124;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 34;
Item.shootSpeed = 10f;
+2 -3
View File
@@ -16,10 +16,9 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 100;
Item.height = 100;
Item.damage = 365;
Item.damage = 270;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = 50;
Item.useTime = 50;
Item.useAnimation = Item.useTime = 50;
Item.useTurn = true;
Item.knockBack = 12f;
Item.autoReuse = true;
+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)
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 66;
Item.height = 66;
Item.damage = 150;
Item.damage = 140;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.autoReuse = true;
+2 -3
View File
@@ -15,11 +15,10 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 86;
Item.height = 86;
Item.damage = 300;
Item.damage = 235;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 16;
Item.useAnimation = Item.useTime = 16;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTime = 16;
Item.useTurn = true;
Item.knockBack = 6.5f;
Item.UseSound = SoundID.Item1;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 62;
Item.height = 64;
Item.damage = 85;
Item.damage = 77;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = Item.useTime = 22;
Item.useStyle = ItemUseStyleID.Swing;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 100;
Item.height = 118;
Item.damage = 123;
Item.damage = 100;
Item.DamageType = TrueMeleeDamageClass.Instance;
Item.useAnimation = Item.useTime = 28;
+2 -3
View File
@@ -38,10 +38,9 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 60;
Item.height = 66;
Item.damage = 145;
Item.damage = 120;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 21;
Item.useTime = 21;
Item.useAnimation = Item.useTime = 21;
Item.useStyle = ItemUseStyleID.Swing;
Item.useTurn = true;
Item.knockBack = 7f;
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
Item.width = Item.height = 72;
Item.damage = 130;
Item.damage = 100;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.noUseGraphic = true;
Item.noMelee = true;
+5 -5
View File
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee
#region stats
public static int BaseDamage = 115;
public static int DefaultAttunement_BaseDamage = 90;
public static int DefaultAttunement_BaseDamage = 72;
public static int DefaultAttunement_SigilTime = 900;
public static int DefaultAttunement_BeamTime = 90;
public static float DefaultAttunement_LungeDamageMult = 2f;
@@ -48,23 +48,23 @@ namespace CalamityMod.Items.Weapons.Melee
public static float EvilAttunement_SlashDamageBoost = 3f;
public static int EvilAttunement_SlashIFrames = 60;
public static int ColdAttunement_BaseDamage = 125;
public static int ColdAttunement_BaseDamage = 115;
public static float ColdAttunement_ThirdSwingBoost = 1.25f;
public static float ColdAttunement_MistDamageReduction = 0.11f;
public static int HotAttunement_BaseDamage = 115;
public static int HotAttunement_BaseDamage = 105;
public static int HotAttunement_PlayerShredIFrames = 8;
public static float HotAttunement_ShotDamageBoost = 4.5f;
public static int HotAttunement_LocalIFrames = 24; //Be warned its got one extra update so all the iframes should be divided in 2
public static float HotAttunement_ShredDecayRate = 0.65f; //How much charge is lost per frame.
public static int TropicalAttunement_BaseDamage = 132;
public static int TropicalAttunement_BaseDamage = 120;
public static float TropicalAttunement_ChainDamageReduction = 0.6f;
public static float TropicalAttunement_VineDamageReduction = 0.3f;
public static float TropicalAttunement_SweetSpotDamageMultiplier = 1.5f; //It also crits, so be mindful of that
public static int TropicalAttunement_LocalIFrames = 60; //Be warned its got 2 extra updates so all the iframes should be divided in 3
public static int HolyAttunement_BaseDamage = 88;
public static int HolyAttunement_BaseDamage = 96;
public static float HolyAttunement_BaseSwingDamageMult = 0.5f;
public static float HolyAttunement_FullSwingDamageMult = 1f;
public static float HolyAttunement_ThrowDamageBoost = 3f;
+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++)
+1 -1
View File
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Ectoplasm, 31).
AddIngredient(ItemID.Ectoplasm, 13).
AddTile(TileID.MythrilAnvil).
Register();
}
+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)
+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Ranged
CreateRecipe().
AddIngredient(ItemID.Marrow).
AddIngredient(ItemID.AncientBattleArmorMaterial).
AddIngredient(ItemID.Ectoplasm, 10).
AddIngredient(ItemID.Ectoplasm, 5).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
player.AddBuff(Item.buffType, 2);
CalamityUtils.KillShootProjectiles(true, type, player);
float damageMult = ((float)Math.Log(slimeSlots, 8f)) + 1f;
float damageMult = 0.8f + slimeSlots * 0.2f;
var minion = Projectile.NewProjectileDirect(source, player.ClampedMouseWorld(), Vector2.Zero, type, (int)(damage * damageMult), knockback, player.whoAmI);
minion.originalDamage = (int)(Item.damage * damageMult);
minion.minionSlots = slimeSlots;
+5 -5
View File
@@ -21,9 +21,9 @@ namespace CalamityMod.Items.Weapons.Summon
public const int PlasmaCannonShootRate = 30;
public const int TeslaCannonShootRate = 36;
public const int TeslaCannonShootRate = 42;
public const int LaserCannonNormalShootRate = 15;
public const int LaserCannonNormalShootRate = 12;
public const int GaussNukeShootRate = 240;
@@ -31,13 +31,13 @@ namespace CalamityMod.Items.Weapons.Summon
public const float MinionSlotsPerCannon = 3f;
public const float PlasmaCannonBlastFactor = 0.9f;
public const float PlasmaCannonBlastFactor = 1f;
// Multiple orbs can arc together when there are 2+ tesla cannons, resulting in a LOT of hits.
// The local i-frames are also quite high to combat this problem.
public const float TeslaOrbDamageFactor = 1f;
public const float LaserDamageFactor = 1.1f;
public const float LaserDamageFactor = 1f;
public const float NukeDamageFactor = 1f;
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = Item.height = 36;
Item.mana = 80;
Item.damage = 625;
Item.damage = 550;
Item.useStyle = ItemUseStyleID.HoldUp;
Item.noUseGraphic = true;
Item.useAnimation = Item.useTime = 24;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 52;
Item.height = 52;
Item.damage = 42;
Item.damage = 38;
Item.DamageType = DamageClass.Summon;
Item.buffType = ModContent.BuffType<EntropysVigilBuff>();
Item.shoot = ModContent.ProjectileType<Calamitamini>();
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Summon
AddIngredient<LifeAlloy>(5).
AddIngredient(ItemID.ButterflyDust, 2).
AddIngredient(ItemID.Silk, 40).
AddIngredient(ItemID.Ectoplasm, 20).
AddIngredient(ItemID.Ectoplasm, 5).
AddTile(TileID.Loom).
Register();
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 48;
Item.height = 56;
Item.damage = 71;
Item.damage = 60;
Item.knockBack = 2f;
Item.mana = 10;
@@ -162,8 +162,8 @@ CombatVoucher: {
DisplayName: Combat Voucher
Tooltip:
'''
Favorite this item in your inventory to change the result of your next accessory reforge
This will always either give the targeted reforge or a unique reforge
Favorite this item in your inventory to change the result of your next weapon reforge
This will always either give the best reforge based on class or a unique reforge
'''
SalesPitch:
'''
@@ -48,11 +48,7 @@ SetBonus: {
{0}% increased damage which scales based on how far the target is from you
Closer range grants melee damage, while farther range grants ranged damage
'''
Gladiator:
'''
+60 maximum stealth
5% increased rogue damage and 10% increased velocity
'''
Gladiator: +{0} maximum stealth
Gold:
'''
All enemies have a {0}% chance to drop 1 extra gold
-7
View File
@@ -538,8 +538,6 @@ namespace CalamityMod.NPCs
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<StaffOfNecrosteocytes>(), 15, 10));
break;
// The ectoplasm extra drops got moved to the list section; just like moss hornets
// Hardmode Dungeon Melee Skeletons
// Wisp in a Bottle @ 0.5% INSTEAD OF 0.25%
case NPCID.RustyArmoredBonesAxe:
@@ -1833,11 +1831,6 @@ DukeEditFailed:
// Ancient Bone Dust @ 20% Normal, 33.33% Expert+
if (CalamityNPCTypeSets.Skeleton[npc.type])
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<AncientBoneDust>(), 5, 3));
// All Hardmode Dungeon Enemies
// Ectoplasm @ 20%
if (CalamityNPCSets.IsBuffedDungeonEnemy[npc.type])
npcLoot.Add(ItemID.Ectoplasm, 5);
#endregion
}
#endregion
+1 -1
View File
@@ -321,7 +321,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
npcLoot.Add(ModContent.ItemType<EssenceofEleum>());
npcLoot.Add(ModContent.ItemType<FrostBarrier>(), 5);
npcLoot.Add(ModContent.ItemType<AncientIceChunk>(), 3);
npcLoot.Add(ModContent.ItemType<AncientIceChunk>(), 5);
}
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
+1 -1
View File
@@ -126,7 +126,7 @@ namespace CalamityMod.Projectiles.Melee
if (Projectile.owner == Main.myPlayer)
{
Projectile.damage = (int)(Projectile.damage * 0.7f);
Projectile.damage = (int)(Projectile.damage * 0.5f);
Projectile.ExpandHitboxBy((int)(128f * Projectile.scale));
Projectile.penetrate = -1;
Projectile.Damage();
+1 -1
View File
@@ -399,7 +399,7 @@ namespace CalamityMod.Projectiles.Melee
float minMult = 0.25f;
int hitsToMinMult = 10;
float damageMult = Utils.Remap(pierceReduction, 0, hitsToMinMult, 1, minMult, true);
modifiers.SourceDamage *= (chargedSwing ? 2.9f : 1) * damageMult;
modifiers.SourceDamage *= (chargedSwing ? 2.5f : 1) * damageMult;
}
public override bool PreDraw(ref Color lightColor)
{
+6 -1
View File
@@ -66,7 +66,12 @@ namespace CalamityMod.Projectiles.Melee
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<Laceration>(), 60);
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.HitDirectionOverride = (Owner.Center.X < target.Center.X).ToDirectionInt();
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
float damageMult = MathHelper.Clamp(Utils.GetLerpValue(3, 0, Projectile.numHits), 0.1f, 1);
modifiers.SourceDamage *= damageMult;
modifiers.HitDirectionOverride = (Owner.Center.X < target.Center.X).ToDirectionInt();
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CircularHitboxCollision(Projectile.Center, Projectile.width * Projectile.scale, targetHitbox);
}
+2 -2
View File
@@ -221,7 +221,7 @@ namespace CalamityMod.Projectiles.Melee
Owner.SetScreenshake(3f);
SoundStyle sound = new("CalamityMod/Sounds/Item/SkytideBolt");
SoundEngine.PlaySound(sound with { Volume = 0.8f }, Projectile.Center);
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + new Vector2(0, -600), new Vector2(0, 10), ModContent.ProjectileType<DragoonBigBolt>(), (int)(Projectile.damage * 10), Projectile.knockBack, Projectile.owner, 0, 0.5f);
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center + new Vector2(0, -600), new Vector2(0, 10), ModContent.ProjectileType<DragoonBigBolt>(), Projectile.damage * 8, Projectile.knockBack, Projectile.owner, 0, 0.5f);
proj.timeLeft = (int)(45 / Projectile.scale);
proj.scale = Projectile.scale;
swingCount = 0;
@@ -234,7 +234,7 @@ namespace CalamityMod.Projectiles.Melee
SoundEngine.PlaySound(fire with { Volume = 1f, Pitch = -0.2f }, Projectile.Center);
SoundStyle fire2 = new("CalamityMod/Sounds/Item/AuricBulletHit");
SoundEngine.PlaySound(fire2 with { Volume = 0.5f, Pitch = 0.2f }, Projectile.Center);
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center - aimVel * 2 * Projectile.scale, aimVel.SafeNormalize(Vector2.UnitX) * -10, ModContent.ProjectileType<DragoonBigBolt>(), (int)(Projectile.damage * 10), Projectile.knockBack, Projectile.owner, 0, 1f);
Projectile proj = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Owner.Center - aimVel * 2 * Projectile.scale, aimVel.SafeNormalize(Vector2.UnitX) * -10, ModContent.ProjectileType<DragoonBigBolt>(), Projectile.damage * 8, Projectile.knockBack, Projectile.owner, 0, 1f);
proj.scale = Projectile.scale;
swingCount = -1;
attackPower = 0;
+1 -1
View File
@@ -131,7 +131,7 @@ namespace CalamityMod.Projectiles.Melee
if (Projectile.owner == Main.myPlayer)
{
Projectile.damage = (int)(Projectile.damage * 0.3f);
Projectile.damage = (int)(Projectile.damage * 0.25f);
Projectile.ExpandHitboxBy((int)(285f * Projectile.scale));
Projectile.penetrate = -1;
Projectile.Damage();
+2 -5
View File
@@ -23,11 +23,8 @@ namespace CalamityMod.Projectiles.Summon
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.alpha = 255;
Projectile.penetrate = -1;
Projectile.timeLeft = 600;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = -2;
Projectile.extraUpdates = 1;
Projectile.MaxUpdates = 4;
Projectile.timeLeft = 180 * Projectile.MaxUpdates;
Projectile.DamageType = DamageClass.Summon;
}
+20 -5
View File
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Summon
CalamityGlobalProjectile modProj = Projectile.Calamity();
//hitbox size scaling
float scale = (float)Math.Log(Projectile.minionSlots, 10f) + 1f;
float scale = 0.8f + Projectile.minionSlots * 0.2f;
if (Projectile.scale != scale)
Projectile.scale = scale;
Projectile.width = (int)(64f * Projectile.scale);
@@ -190,7 +190,7 @@ namespace CalamityMod.Projectiles.Summon
{
attackCounter += Main.rand.Next(1, 4);
}
if (attackCounter > 300)
if (attackCounter > 240)
{
attackCounter = 0;
Projectile.netUpdate = true;
@@ -202,9 +202,24 @@ namespace CalamityMod.Projectiles.Summon
attackCounter += 2;
if (Main.myPlayer == Projectile.owner)
{
Vector2 laserVel = Projectile.SafeDirectionTo(objectivepos) * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, laserVel, projType, Projectile.damage, 0f, Projectile.owner);
Projectile.netUpdate = true;
if (Main.rand.NextBool())
{
for (int i = 0; i < 8; i++)
{
Vector2 circleVel = ((MathHelper.TwoPi * i / 8f) - MathHelper.ToRadians(67.5f)).ToRotationVector2() * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, circleVel, projType, Projectile.damage, 0f, Projectile.owner);
}
}
else
{
for (int i = 0; i < 5; i++)
{
Vector2 direction = Projectile.SafeDirectionTo(objectivepos);
Vector2 spreadPos = Projectile.Center + direction * Main.rand.NextFloat(1f, 4f) + direction.RotatedBy(MathHelper.PiOver2) * Main.rand.NextFloat(-16f, 16f);
Vector2 laserVel = direction * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), spreadPos, laserVel, projType, Projectile.damage, 0f, Projectile.owner);
}
}
}
}
}
@@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms
public Projectile OwnerProjectile => CalamityUtils.FindProjectileByIdentity((int)Projectile.ai[1], Projectile.owner);
public const int LifetimeConst = 75;
public const int LifetimeConst = 90;
public override float MaxScale => 0.5f + (float)Math.Cos(Main.GlobalTimeWrappedHourly * 10f) * 0.07f;
public override float MaxLaserLength => 1560f;
public override float Lifetime => LifetimeConst;
@@ -132,7 +132,7 @@ namespace CalamityMod.Projectiles.Summon.SmallAresArms
// 15NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction
float idealRotation = Main.myPlayer != Projectile.owner ? Projectile.rotation : Projectile.AngleTo(Main.MouseWorld);
NPC potentialTarget = Projectile.Center.ClosestNPCAt(AresExoskeleton.TargetingDistance);
NPC potentialTarget = Projectile.Center.MinionHoming(AresExoskeleton.TargetingDistance, Owner);
if (potentialTarget != null)
{
Projectile.ai[1] = 1f;
+3 -4
View File
@@ -156,13 +156,12 @@ namespace CalamityMod.Systems.Collections
NPCID.ZombieElfGirl, NPCID.BloodEelHead, NPCID.GoblinShark, NPCID.EyeballFlyingFish, NPCID.ZombieMerman);
/// <summary>
/// If <see langword="true"/> for an NPC type, then that NPC is a post-Plantera Dungeon enemy. This causes two separate changes to the enemy.<br/>
/// First, it grants them a 20% chance to drop Ectoplasm upon death.<br/>
/// Second, it multiplies their max health by 2.5x and increases their damage by a flat 30 if Moon Lord has been defeated.<br/>
/// If <see langword="true"/> for an NPC type, then that NPC is a post-Plantera Dungeon enemy.<br/>
/// This will multiply their max health by 2.5x and increase their damage by a flat 30 if Moon Lord has been defeated.<br/>
/// Defaults to <see langword="false"/>.
/// </summary>
public static bool[] IsBuffedDungeonEnemy = Factory.CreateNamedSet("IsBuffedDungeonEnemy")
.Description("Makes this NPC directly drop Ectoplasm on death, and buffs its health and damage after defeating Moon Lord.")
.Description("Makes this Dungeon enemy have buffed health and damage after defeating Moon Lord.")
.RegisterBoolSet(NPCID.SkeletonSniper, NPCID.TacticalSkeleton, NPCID.SkeletonCommando, NPCID.Paladin, NPCID.GiantCursedSkull, NPCID.BoneLee, NPCID.DiabolistWhite,
NPCID.DiabolistRed, NPCID.NecromancerArmored, NPCID.Necromancer, NPCID.RaggedCasterOpenCoat, NPCID.RaggedCaster, NPCID.HellArmoredBonesSword, NPCID.HellArmoredBonesMace,
NPCID.HellArmoredBonesSpikeShield, NPCID.HellArmoredBones, NPCID.BlueArmoredBonesSword, NPCID.BlueArmoredBonesNoPants, NPCID.BlueArmoredBonesMace, NPCID.BlueArmoredBones,
+2 -2
View File
@@ -236,8 +236,8 @@ namespace CalamityMod.Tiles.Furniture
{
Item dummy = new Item();
dummy.SetDefaults(ItemType);
// 0.1% per minute of duration, multiplied by 1.5x for T2 food and 2x for T3 food
float goodPercent = dummy.buffTime * (dummy.buffType == BuffID.WellFed3 ? 2f : dummy.buffType == BuffID.WellFed2 ? 1.5f : 1f) / 3600f / 10f;
// 0.1% per minute of duration, multiplied by 2x for T2 food and 10x for T3 food
float goodPercent = dummy.buffTime * (dummy.buffType == BuffID.WellFed3 ? 10f : dummy.buffType == BuffID.WellFed2 ? 2f : 1f) / 3600f / 10f;
int itemDrop = Main.rand.NextFloat(100f) < goodPercent ? ModContent.ItemType<QualitySlop>() : ModContent.ItemType<DisgustingSlop>();
int i = Item.NewItem(Projectile.GetItemSource_DropAsItem(), Projectile.Center, itemDrop);