From a236097da5da4a5faeca53e37eeae14a88b62303 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Sat, 28 Jan 2023 23:57:37 -0800 Subject: [PATCH] Exalted Oathblade and Old Lord Claymore --- Items/Weapons/Melee/DevilsDevastation.cs | 2 +- ...rueForbiddenOathblade.cs => ExaltedOathblade.cs} | 5 +++-- ...eForbiddenOathblade.png => ExaltedOathblade.png} | Bin Items/Weapons/Melee/ForbiddenOathblade.cs | 2 +- .../{OldLordOathsword.cs => OldLordClaymore.cs} | 5 +++-- .../{OldLordOathsword.png => OldLordClaymore.png} | Bin NPCs/CalamityGlobalNPCLoot.cs | 2 +- ...dLordOathswordProj.cs => OldLordClaymoreProj.cs} | 12 ++++++------ 8 files changed, 15 insertions(+), 13 deletions(-) rename Items/Weapons/Melee/{TrueForbiddenOathblade.cs => ExaltedOathblade.cs} (97%) rename Items/Weapons/Melee/{TrueForbiddenOathblade.png => ExaltedOathblade.png} (100%) rename Items/Weapons/Melee/{OldLordOathsword.cs => OldLordClaymore.cs} (92%) rename Items/Weapons/Melee/{OldLordOathsword.png => OldLordClaymore.png} (100%) rename Projectiles/Melee/{OldLordOathswordProj.cs => OldLordClaymoreProj.cs} (98%) diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 169b785ede..0db4f8e122 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -177,7 +177,7 @@ namespace CalamityMod.Items.Weapons.Melee { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(8). AddIngredient(20). AddTile(ModContent.TileType()). diff --git a/Items/Weapons/Melee/TrueForbiddenOathblade.cs b/Items/Weapons/Melee/ExaltedOathblade.cs similarity index 97% rename from Items/Weapons/Melee/TrueForbiddenOathblade.cs rename to Items/Weapons/Melee/ExaltedOathblade.cs index d820ea8c02..2408f16e06 100644 --- a/Items/Weapons/Melee/TrueForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ExaltedOathblade.cs @@ -11,11 +11,12 @@ using Terraria.Audio; namespace CalamityMod.Items.Weapons.Melee { - public class TrueForbiddenOathblade : ModItem + [LegacyName("TrueForbiddenOathblade")] + public class ExaltedOathblade : ModItem { public override void SetStaticDefaults() { - DisplayName.SetDefault("True Forbidden Oathblade"); + DisplayName.SetDefault("Exalted Oathblade"); Tooltip.SetDefault("Fires a spread of demonic scythes and critical hits cause shadowflame explosions"); SacrificeTotal = 1; } diff --git a/Items/Weapons/Melee/TrueForbiddenOathblade.png b/Items/Weapons/Melee/ExaltedOathblade.png similarity index 100% rename from Items/Weapons/Melee/TrueForbiddenOathblade.png rename to Items/Weapons/Melee/ExaltedOathblade.png diff --git a/Items/Weapons/Melee/ForbiddenOathblade.cs b/Items/Weapons/Melee/ForbiddenOathblade.cs index 1ae8cc8704..18055f70f8 100644 --- a/Items/Weapons/Melee/ForbiddenOathblade.cs +++ b/Items/Weapons/Melee/ForbiddenOathblade.cs @@ -109,7 +109,7 @@ namespace CalamityMod.Items.Weapons.Melee { CreateRecipe(). AddIngredient(). - AddIngredient(). + AddIngredient(). AddIngredient(ItemID.SoulofFright, 5). AddTile(TileID.MythrilAnvil). Register(); diff --git a/Items/Weapons/Melee/OldLordOathsword.cs b/Items/Weapons/Melee/OldLordClaymore.cs similarity index 92% rename from Items/Weapons/Melee/OldLordOathsword.cs rename to Items/Weapons/Melee/OldLordClaymore.cs index 92b0df6dbe..4abeaf5cfe 100644 --- a/Items/Weapons/Melee/OldLordOathsword.cs +++ b/Items/Weapons/Melee/OldLordClaymore.cs @@ -4,13 +4,14 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Weapons.Melee { - public class OldLordOathsword : ModItem + [LegacyName("OldLordOathsword")] + public class OldLordClaymore : ModItem { public bool RMBchannel = false; public override void SetStaticDefaults() { - DisplayName.SetDefault("Old Lord Oathsword"); + DisplayName.SetDefault("Old Lord Claymore"); Tooltip.SetDefault("A relic of the ancient underworld\n" + "Holding right click rapidly absorbs energy into the blade until it is sufficiently charged\n" + "Left clicking will either swing the blade as usual or cause you to fly in the direction of the cursor, depending on if the blade was fully charged\n" + diff --git a/Items/Weapons/Melee/OldLordOathsword.png b/Items/Weapons/Melee/OldLordClaymore.png similarity index 100% rename from Items/Weapons/Melee/OldLordOathsword.png rename to Items/Weapons/Melee/OldLordClaymore.png diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 499428dede..0896299e10 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -450,7 +450,7 @@ namespace CalamityMod.NPCs // Old Lord Oathsword @ 8.33% Normal, 14.29% Expert+ case NPCID.BoneSerpentHead: npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 3, 2)); - npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 12, 7)); + npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType(), 12, 7)); break; // Red Devil diff --git a/Projectiles/Melee/OldLordOathswordProj.cs b/Projectiles/Melee/OldLordClaymoreProj.cs similarity index 98% rename from Projectiles/Melee/OldLordOathswordProj.cs rename to Projectiles/Melee/OldLordClaymoreProj.cs index e421d27324..b73425d057 100644 --- a/Projectiles/Melee/OldLordOathswordProj.cs +++ b/Projectiles/Melee/OldLordClaymoreProj.cs @@ -12,7 +12,7 @@ using Terraria.Audio; namespace CalamityMod.Projectiles.Melee { - public class OldLordOathswordProj : BaseIdleHoldoutProjectile + public class OldLordClaymoreProj : BaseIdleHoldoutProjectile { public enum SwingState { @@ -27,19 +27,19 @@ namespace CalamityMod.Projectiles.Melee public ref float ChargeTime => ref Projectile.ai[0]; public ref float GeneralTime => ref Projectile.ai[1]; public ref float PostSwingRepositionDelay => ref Projectile.localAI[0]; - public ref bool RMBChannel => ref (Owner.HeldItem.ModItem as OldLordOathsword).RMBchannel; + public ref bool RMBChannel => ref (Owner.HeldItem.ModItem as OldLordClaymore).RMBchannel; public bool LMBUse => Owner.altFunctionUse != 2 && !RMBChannel && Owner.itemAnimation > 0; public ref float ChargePower => ref Projectile.localAI[1]; public const int MaxChargeTime = 60; - public override string Texture => "CalamityMod/Items/Weapons/Melee/OldLordOathsword"; - public override int AssociatedItemID => ModContent.ItemType(); - public override int IntendedProjectileType => ModContent.ProjectileType(); + public override string Texture => "CalamityMod/Items/Weapons/Melee/OldLordClaymore"; + public override int AssociatedItemID => ModContent.ItemType(); + public override int IntendedProjectileType => ModContent.ProjectileType(); public override bool? CanDamage() => CurrentState != 0; //Could also disable the damage during the channel state, public override void SetStaticDefaults() { - DisplayName.SetDefault("Old Lord Oathsword"); + DisplayName.SetDefault("Old Lord Claymore"); ProjectileID.Sets.TrailingMode[Projectile.type] = 2; ProjectileID.Sets.TrailCacheLength[Projectile.type] = 3; }