Exalted Oathblade and Old Lord Claymore

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2023-01-30 15:12:21 -05:00
1 parent 844e61aca7
commit a236097da5
8 files changed
+15 -13

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddIngredient<Devastation>().
AddIngredient<TrueForbiddenOathblade>().
AddIngredient<ExaltedOathblade>().
AddIngredient<CosmiliteBar>(8).
AddIngredient<NightmareFuel>(20).
AddTile(ModContent.TileType<CosmicAnvil>()).
@@ -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;
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

+1 -1
View File
@@ -109,7 +109,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddIngredient<BladecrestOathsword>().
AddIngredient<OldLordOathsword>().
AddIngredient<OldLordClaymore>().
AddIngredient(ItemID.SoulofFright, 5).
AddTile(TileID.MythrilAnvil).
Register();
@@ -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" +
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

+1 -1
View File
@@ -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<DemonicBoneAsh>(), 3, 2));
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<OldLordOathsword>(), 12, 7));
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<OldLordClaymore>(), 12, 7));
break;
// Red Devil
@@ -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<OldLordOathsword>();
public override int IntendedProjectileType => ModContent.ProjectileType<OldLordOathswordProj>();
public override string Texture => "CalamityMod/Items/Weapons/Melee/OldLordClaymore";
public override int AssociatedItemID => ModContent.ItemType<OldLordClaymore>();
public override int IntendedProjectileType => ModContent.ProjectileType<OldLordClaymoreProj>();
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;
}