Renamed melee weapons

This commit is contained in:
Ozzatron committed 2022-06-11 15:16:31 -04:00
1 parent 202dcf4869
commit dcd97b7921
62 files changed
+111 -93

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ namespace CalamityMod.CalPlayer
// This must be done here instead of in the item logic because these sets are not properly instanced
// in the global classes. Attempting to update them there will cause multiple updates to one set for multiple items.
CalamityGlobalItem.UpdateAllParticleSets();
BiomeBlade.UpdateAllParticleSets();
BrokenBiomeBlade.UpdateAllParticleSets();
TrueBiomeBlade.UpdateAllParticleSets();
OmegaBiomeBlade.UpdateAllParticleSets();
+5 -5
View File
@@ -94,7 +94,7 @@ namespace CalamityMod.DataStructures
energyParticleCenterColor = new Color(200, 184, 136);
}
public override float DamageMultiplier => BiomeBlade.DefaultAttunement_BaseDamage / (float)BiomeBlade.BaseDamage;
public override float DamageMultiplier => BrokenBiomeBlade.DefaultAttunement_BaseDamage / (float)BrokenBiomeBlade.BaseDamage;
public override void ApplyStats(Item item)
{
@@ -120,7 +120,7 @@ namespace CalamityMod.DataStructures
energyParticleCenterColor = new Color(209, 154, 0);
}
public override float DamageMultiplier => BiomeBlade.HotAttunement_BaseDamage / (float)BiomeBlade.BaseDamage;
public override float DamageMultiplier => BrokenBiomeBlade.HotAttunement_BaseDamage / (float)BrokenBiomeBlade.BaseDamage;
public override void ApplyStats(Item item)
{
@@ -146,7 +146,7 @@ namespace CalamityMod.DataStructures
energyParticleCenterColor = new Color(58, 110, 141);
}
public override float DamageMultiplier => BiomeBlade.ColdAttunement_BaseDamage / (float)BiomeBlade.BaseDamage;
public override float DamageMultiplier => BrokenBiomeBlade.ColdAttunement_BaseDamage / (float)BrokenBiomeBlade.BaseDamage;
public override void ApplyStats(Item item)
{
@@ -195,7 +195,7 @@ namespace CalamityMod.DataStructures
energyParticleCenterColor = new Color(131, 173, 39);
}
public override float DamageMultiplier => BiomeBlade.TropicalAttunement_BaseDamage / (float)BiomeBlade.BaseDamage;
public override float DamageMultiplier => BrokenBiomeBlade.TropicalAttunement_BaseDamage / (float)BrokenBiomeBlade.BaseDamage;
public override void ApplyStats(Item item)
{
@@ -222,7 +222,7 @@ namespace CalamityMod.DataStructures
energyParticleCenterColor = new Color(195, 42, 200);
}
public override float DamageMultiplier => BiomeBlade.EvilAttunement_BaseDamage / (float)BiomeBlade.BaseDamage;
public override float DamageMultiplier => BrokenBiomeBlade.EvilAttunement_BaseDamage / (float)BrokenBiomeBlade.BaseDamage;
public override void ApplyStats(Item item)
{
+1 -1
View File
@@ -125,7 +125,7 @@ namespace CalamityMod.Items
nameLine.OverrideColor = new Color(207, 17, 117);
if (item.type == ModContent.ItemType<TriactisTruePaladinianMageHammerofMightMelee>())
nameLine.OverrideColor = new Color(227, 226, 180);
if (item.type == ModContent.ItemType<RoyalKnivesMelee>())
if (item.type == ModContent.ItemType<IllustriousKnives>())
nameLine.OverrideColor = CalamityUtils.ColorSwap(new Color(154, 255, 151), new Color(228, 151, 255), 4f);
if (item.type == ModContent.ItemType<DemonshadeHelm>() || item.type == ModContent.ItemType<DemonshadeBreastplate>() || item.type == ModContent.ItemType<DemonshadeGreaves>())
nameLine.OverrideColor = CalamityUtils.ColorSwap(new Color(255, 132, 22), new Color(221, 85, 7), 4f);
+1 -1
View File
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.TreasureBags
// Weapons
float w = DropHelper.BagWeaponDropRateFloat;
DropHelper.DropEntireWeightedSet(s, player,
DropHelper.WeightStack<TheEyeofCalamitas>(w),
DropHelper.WeightStack<Oblivion>(w),
DropHelper.WeightStack<Animosity>(w),
DropHelper.WeightStack<LashesofChaos>(w),
DropHelper.WeightStack<BlightedEyeStaff>(w),
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.TreasureBags
// Weapons
float w = DropHelper.BagWeaponDropRateFloat;
DropHelper.DropEntireWeightedSet(s, player,
DropHelper.WeightStack<VirulentKatana>(w), // Virulence
DropHelper.WeightStack<Virulence>(w), // Virulence
DropHelper.WeightStack<DiseasedPike>(w),
DropHelper.WeightStack<ThePlaguebringer>(w), // Pandemic
DropHelper.WeightStack<Malevolence>(w),
+1 -1
View File
@@ -67,7 +67,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<DepthBlade>().
AddIngredient<DepthCrusher>().
AddIngredient(ItemID.BrokenHeroSword).
AddIngredient<DepthCells>(15).
AddIngredient<Lumenyl>(10).
@@ -10,7 +10,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class ProfanedSword : ModItem
[LegacyName("ProfanedSword")]
public class BrimstoneSword : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 991 B

After

Width:  |  Height:  |  Size: 991 B

@@ -18,7 +18,8 @@ using Terraria.GameContent;
namespace CalamityMod.Items.Weapons.Melee
{
public class BiomeBlade : ModItem
[LegacyName("BiomeBlade")]
public class BrokenBiomeBlade : ModItem
{
public Attunement mainAttunement = null;
public Attunement secondaryAttunement = null;
@@ -143,10 +144,10 @@ namespace CalamityMod.Items.Weapons.Melee
{
var clone = base.Clone(item);
if (Main.mouseItem.type == ItemType<BiomeBlade>())
if (Main.mouseItem.type == ItemType<BrokenBiomeBlade>())
item.ModItem?.HoldItem(Main.player[Main.myPlayer]);
if (clone is BiomeBlade a && item.ModItem is BiomeBlade a2)
if (clone is BrokenBiomeBlade a && item.ModItem is BrokenBiomeBlade a2)
{
a.mainAttunement = a2.mainAttunement;
a.secondaryAttunement = a2.secondaryAttunement;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 975 B

After

Width:  |  Height:  |  Size: 975 B

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class DepthBlade : ModItem
[LegacyName("DepthBlade")]
public class DepthCrusher : ModItem
{
private const int HammerPower = 70;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+1 -1
View File
@@ -165,7 +165,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddIngredient<GrandGuardian>().
AddIngredient<GalacticaBlade>().
AddIngredient<GalactusBlade>().
AddIngredient<ShadowspecBar>(5).
AddTile<DraedonsForge>().
Register();
@@ -8,7 +8,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class XerocsGreatsword : ModItem
[LegacyName("XerocsGreatsword")]
public class EntropicClaymore : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

@@ -9,7 +9,8 @@ using Terraria.Audio;
namespace CalamityMod.Items.Weapons.Melee
{
public class DraedonsExoblade : ModItem
[LegacyName("DraedonsExoblade")]
public class Exoblade : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class TruePaladinsHammerMelee : ModItem
[LegacyName("TruePaladinsHammer", "TruePaladinsHammerMelee", "TruePaladinsHammerRogue")]
public class FallenPaladinsHammer : ModItem
{
public override void SetStaticDefaults()
{
@@ -39,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
CreateRecipe().
AddIngredient(ItemID.PaladinsHammer).
AddIngredient<PwnagehammerMelee>().
AddIngredient<Pwnagehammer>().
AddIngredient<AshesofCalamity>(5).
AddIngredient<CoreofChaos>(5).
AddIngredient<ScoriaBar>(5).
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Chaotrix : ModItem
[LegacyName("Chaotrix")]
public class FaultLine : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 867 B

After

Width:  |  Height:  |  Size: 867 B

@@ -14,7 +14,8 @@ using System.Collections.Generic;
namespace CalamityMod.Items.Weapons.Melee
{
public class ArkoftheAncients : ModItem
[LegacyName("ArkoftheAncients")]
public class FracturedArk : ModItem
{
public float Combo = 1f;
public float Charge = 0f;
@@ -111,7 +112,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
var clone = base.Clone(item);
if (clone is ArkoftheAncients a && item.ModItem is ArkoftheAncients a2)
if (clone is FracturedArk a && item.ModItem is FracturedArk a2)
a.Charge = a2.Charge;
return clone;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 603 B

After

Width:  |  Height:  |  Size: 603 B

@@ -10,7 +10,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class GalacticaBlade : ModItem
[LegacyName("GalacticaBlade")]
public class GalactusBlade : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -9,7 +9,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class GalaxySmasherMelee : ModItem
[LegacyName("GalaxySmasherMelee", "GalaxySmasherRogue")]
public class GalaxySmasher : ModItem
{
public static int BaseDamage = 264;
public static float Speed = 18f;
@@ -54,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<StellarContemptMelee>().
AddIngredient<StellarContempt>().
AddIngredient<CosmiliteBar>(10).
AddTile<CosmicAnvil>().
Register();
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

@@ -10,7 +10,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class RoyalKnivesMelee : ModItem
[LegacyName("RoyalKnives", "RoyalKnivesMelee", "RoyalKnivesRogue")]
public class IllustriousKnives : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -5,7 +5,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class TheEyeofCalamitas : ModItem
[LegacyName("TheEyeofCalamitas")]
public class Oblivion : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 923 B

After

Width:  |  Height:  |  Size: 923 B

+1
View File
@@ -18,6 +18,7 @@ using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Weapons.Melee
{
// TODO -- CANNOT RENAME this and True Biome Blade to "TrueBiomeBlade" and "BiomeBlade" internally without corrupting existing items
public class OmegaBiomeBlade : ModItem
{
public Attunement mainAttunement = null;
+1 -1
View File
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<VirulentKatana>().
AddIngredient<Virulence>().
AddIngredient(ItemID.BeeKeeper).
AddIngredient(ItemID.FragmentSolar, 10).
AddIngredient<InfectedArmorPlating>(5).
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class PwnagehammerMelee : ModItem
[LegacyName("PwnagehammerMelee", "PwnagehammerRogue")]
public class Pwnagehammer : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 919 B

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class Whirlpool : ModItem
[LegacyName("Whirlpool")]
public class Riptide : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -5,7 +5,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class DivineHatchet : ModItem
[LegacyName("DivineHatchet")]
public class SeekingScorcher : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

@@ -4,10 +4,9 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class StellarContemptMelee : ModItem
[LegacyName("StellarContemptMelee", "StellarContemptRogue")]
public class StellarContempt : ModItem
{
public override string Texture => "CalamityMod/Items/Weapons/Melee/StellarContempt";
public static int BaseDamage = 300;
public static float Speed = 18f;
@@ -44,7 +43,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<TruePaladinsHammerMelee>().
AddIngredient<FallenPaladinsHammer>().
AddIngredient(ItemID.LunarBar, 5).
AddIngredient(ItemID.FragmentSolar, 10).
AddIngredient(ItemID.FragmentNebula, 10).
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<GalaxySmasherMelee>().
AddIngredient<GalaxySmasher>().
AddIngredient(ItemID.SoulofMight, 30).
AddIngredient<ShadowspecBar>(5).
AddTile<DraedonsForge>().
+2 -1
View File
@@ -14,6 +14,7 @@ using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Items.Weapons.Melee
{
// TODO -- CANNOT RENAME THIS to ArkoftheAncients without corrupting existing items
public class TrueArkoftheAncients : ModItem
{
public float Combo = 1f;
@@ -180,7 +181,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<ArkoftheAncients>().
AddIngredient<FracturedArk>().
AddIngredient(ItemID.TrueExcalibur).
AddIngredient<CoreofCalamity>().
AddIngredient<LivingShard>(3).
+1 -1
View File
@@ -384,7 +384,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<BiomeBlade>().
AddIngredient<BrokenBiomeBlade>().
AddIngredient(ItemID.SoulofFright, 1).
AddIngredient(ItemID.SoulofMight, 1).
AddIngredient(ItemID.SoulofSight, 1).
@@ -8,7 +8,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class VirulentKatana : ModItem
[LegacyName("VirulentKatana")]
public class Virulence : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class ExsanguinationLance : ModItem
[LegacyName("ExsanguinationLance")]
public class VulcaniteLance : ModItem
{
public override void SetStaticDefaults()
{
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

+2 -2
View File
@@ -379,7 +379,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("Calamitas", out float order);
int type = NPCType<CalamitasRun3>();
int summon = ItemType<EyeofDesolation>();
List<int> loot = new List<int>() { ItemType<CalamitasBag>(), ItemType<EssenceofChaos>(), ItemType<AshesofCalamity>(), ItemType<Bloodstone>(), ItemType<LashesofChaos>(), ItemType<TheEyeofCalamitas>(), ItemType<BlightedEyeStaff>(), ItemType<Animosity>(), ItemType<BrimstoneFlamesprayer>(), ItemType<BrimstoneFlameblaster>(), ItemType<CrushsawCrasher>(), ItemType<ChaosStone>(), ItemType<VoidofCalamity>(), ItemType<Regenator>(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion };
List<int> loot = new List<int>() { ItemType<CalamitasBag>(), ItemType<EssenceofChaos>(), ItemType<AshesofCalamity>(), ItemType<Bloodstone>(), ItemType<LashesofChaos>(), ItemType<Oblivion>(), ItemType<BlightedEyeStaff>(), ItemType<Animosity>(), ItemType<BrimstoneFlamesprayer>(), ItemType<BrimstoneFlameblaster>(), ItemType<CrushsawCrasher>(), ItemType<ChaosStone>(), ItemType<VoidofCalamity>(), ItemType<Regenator>(), ItemID.BrokenHeroSword, ItemID.GreaterHealingPotion };
List<int> collection = new List<int>() { ItemType<CalamitasTrophy>(), ItemType<CataclysmTrophy>(), ItemType<CatastropheTrophy>(), ItemType<CalamitasMask>(), ItemType<HoodOfCalamity>(), ItemType<RobesOfCalamity>(), ItemType<KnowledgeCalamitasClone>() };
string instructions = $"Use an [i:{summon}] at Night";
string despawn = CalamityUtils.ColorMessage("If you wanted a fight, you should've came more prepared.", new Color(0xFF, 0xA5, 0x00));
@@ -428,7 +428,7 @@ namespace CalamityMod
BossDifficulty.TryGetValue("PlaguebringerGoliath", out float order);
int type = NPCType<PlaguebringerGoliath>();
int summon = ItemType<Abombination>();
List<int> loot = new List<int>() { ItemType<PlaguebringerGoliathBag>(), ItemType<PlagueCellCanister>(), ItemType<InfectedArmorPlating>(), ItemID.Stinger, ItemType<VirulentKatana>(), ItemType<DiseasedPike>(), ItemType<ThePlaguebringer>(), ItemType<Malevolence>(), ItemType<PestilentDefiler>(), ItemType<TheHive>(), ItemType<BlightSpewer>(), ItemType<PlagueStaff>(), ItemType<TheSyringe>(), ItemType<FuelCellBundle>(), ItemType<InfectedRemote>(), ItemType<Malachite>(), ItemType<ToxicHeart>(), ItemID.GreaterHealingPotion };
List<int> loot = new List<int>() { ItemType<PlaguebringerGoliathBag>(), ItemType<PlagueCellCanister>(), ItemType<InfectedArmorPlating>(), ItemID.Stinger, ItemType<Virulence>(), ItemType<DiseasedPike>(), ItemType<ThePlaguebringer>(), ItemType<Malevolence>(), ItemType<PestilentDefiler>(), ItemType<TheHive>(), ItemType<BlightSpewer>(), ItemType<PlagueStaff>(), ItemType<TheSyringe>(), ItemType<FuelCellBundle>(), ItemType<InfectedRemote>(), ItemType<Malachite>(), ItemType<ToxicHeart>(), ItemID.GreaterHealingPotion };
List<int> collection = new List<int>() { ItemType<PlaguebringerGoliathTrophy>(), ItemType<PlaguebringerGoliathMask>(), ItemType<KnowledgePlaguebringerGoliath>(), ItemType<PlagueCaller>() };
string instructions = $"Use an [i:{summon}] in the Jungle Biome";
string despawn = CalamityUtils.ColorMessage("HOSTILE SPECIMENS TERMINATED. INITIATE RECALL TO HOME BASE.", new Color(0x00, 0xFF, 0x00));
+1 -1
View File
@@ -105,7 +105,7 @@ namespace CalamityMod.NPCs.Abyss
public override void ModifyNPCLoot(NPCLoot npcLoot)
{
npcLoot.Add(ItemID.Flipper, 20);
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<DepthBlade>(), 15, 10));
npcLoot.Add(ItemDropRule.NormalvsExpert(ModContent.ItemType<DepthCrusher>(), 15, 10));
}
public override void HitEffect(int hitDirection, double damage)
+1 -1
View File
@@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.Calamitas
// Items
int[] items = new int[]
{
ModContent.ItemType<TheEyeofCalamitas>(),
ModContent.ItemType<Oblivion>(),
ModContent.ItemType<Animosity>(),
ModContent.ItemType<LashesofChaos>(),
ModContent.ItemType<BlightedEyeStaff>(),
@@ -1238,7 +1238,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
// Weapons
int[] weapons = new int[]
{
ModContent.ItemType<VirulentKatana>(), // Virulence
ModContent.ItemType<Virulence>(), // Virulence
ModContent.ItemType<DiseasedPike>(),
ModContent.ItemType<ThePlaguebringer>(), // Pandemic
ModContent.ItemType<Malevolence>(),
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Melee
{
public class AncientBeam : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Melee/ArkoftheAncientsGlow";
public override string Texture => "CalamityMod/Items/Weapons/Melee/FracturedArkGlow";
public override void SetStaticDefaults()
{
@@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Melee
{
public class ArkoftheAncientsParryHoldout : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Melee/ArkoftheAncients";
public override string Texture => "CalamityMod/Items/Weapons/Melee/FracturedArk";
private bool initialized = false;
const float MaxTime = 340;
@@ -51,7 +51,7 @@ namespace CalamityMod.Projectiles.Melee
public void GeneralParryEffects()
{
ArkoftheAncients sword = (Owner.HeldItem.ModItem as ArkoftheAncients);
FracturedArk sword = (Owner.HeldItem.ModItem as FracturedArk);
if (sword != null)
sword.Charge = 10f;
@@ -173,8 +173,8 @@ namespace CalamityMod.Projectiles.Melee
}
return false;
}
Texture2D sword = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ArkoftheAncients").Value;
Texture2D glowmask = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ArkoftheAncientsGlow").Value;
Texture2D sword = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/FracturedArk").Value;
Texture2D glowmask = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/FracturedArkGlow").Value;
float drawRotation = Projectile.rotation + MathHelper.PiOver4;
Vector2 drawOrigin = new Vector2(0f, sword.Height);
@@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Melee
{
public class ArkoftheAncientsSwungBlade : ModProjectile
{
public override string Texture => "CalamityMod/Items/Weapons/Melee/ArkoftheAncients";
public override string Texture => "CalamityMod/Items/Weapons/Melee/FracturedArk";
private bool initialized = false;
Vector2 direction = Vector2.Zero;
@@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Melee
if (Owner.whoAmI == Main.myPlayer && SwingRatio() > 0.5f && HasFired == 0f && Charge > 0)
{
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, Projectile.velocity * 1.25f, ProjectileType<AncientBeam>(), (int)(Projectile.damage * ArkoftheAncients.beamDamageMultiplier), 2f, Owner.whoAmI) ;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Owner.Center + direction * 30f, Projectile.velocity * 1.25f, ProjectileType<AncientBeam>(), (int)(Projectile.damage * FracturedArk.beamDamageMultiplier), 2f, Owner.whoAmI) ;
HasFired = 1f;
}
@@ -119,8 +119,8 @@ namespace CalamityMod.Projectiles.Melee
public override bool PreDraw(ref Color lightColor)
{
Texture2D sword = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ArkoftheAncients").Value;
Texture2D glowmask = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/ArkoftheAncientsGlow").Value;
Texture2D sword = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/FracturedArk").Value;
Texture2D glowmask = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/FracturedArkGlow").Value;
SpriteEffects flip = Owner.direction < 0 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
float extraAngle = Owner.direction < 0 ? MathHelper.PiOver2 : 0f;
+12 -12
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Projectiles.Melee
{
private Player Owner => Main.player[Projectile.owner];
public bool OwnerCanUseItem => Owner.HeldItem == associatedItem ? (Owner.HeldItem.ModItem as BiomeBlade).CanUseItem(Owner) : false;
public bool OwnerCanUseItem => Owner.HeldItem == associatedItem ? (Owner.HeldItem.ModItem as BrokenBiomeBlade).CanUseItem(Owner) : false;
public bool OwnerMayChannel => Owner.itemAnimation == 0 && OwnerCanUseItem && Owner.Calamity().mouseRight && Owner.active && !Owner.dead && Owner.StandingStill() && !Owner.mount.Active && Owner.CheckSolidGround(1, 3);
public ref float ChanneledState => ref Projectile.ai[0];
public ref float ChannelTimer => ref Projectile.ai[1];
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee
{
DisplayName.SetDefault("Broken Biome Blade");
}
public override string Texture => "CalamityMod/Items/Weapons/Melee/BiomeBlade";
public override string Texture => "CalamityMod/Items/Weapons/Melee/BrokenBiomeBlade";
public bool drawIndrawHeldProjInFrontOfHeldItemAndArms = true;
public override void SetDefaults()
{
@@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Melee
if (Initialized == 0f)
{
//If dropped, kill it instantly
if (Owner.HeldItem.type != ItemType<BiomeBlade>())
if (Owner.HeldItem.type != ItemType<BrokenBiomeBlade>())
{
Projectile.Kill();
return;
@@ -67,9 +67,9 @@ namespace CalamityMod.Projectiles.Melee
associatedItem = Owner.HeldItem;
//Switch up the attunements
Attunement temporaryAttunementStorage = (associatedItem.ModItem as BiomeBlade).mainAttunement;
(associatedItem.ModItem as BiomeBlade).mainAttunement = (associatedItem.ModItem as BiomeBlade).secondaryAttunement;
(associatedItem.ModItem as BiomeBlade).secondaryAttunement = temporaryAttunementStorage;
Attunement temporaryAttunementStorage = (associatedItem.ModItem as BrokenBiomeBlade).mainAttunement;
(associatedItem.ModItem as BrokenBiomeBlade).mainAttunement = (associatedItem.ModItem as BrokenBiomeBlade).secondaryAttunement;
(associatedItem.ModItem as BrokenBiomeBlade).secondaryAttunement = temporaryAttunementStorage;
Initialized = 1f;
}
@@ -92,11 +92,11 @@ namespace CalamityMod.Projectiles.Melee
if (ChannelTimer >= ChannelTime)
{
Attune((BiomeBlade)associatedItem.ModItem);
Attune((BrokenBiomeBlade)associatedItem.ModItem);
Projectile.timeLeft = 120;
ChanneledState = 2f; //State where it stays invisible doing nothing. Acts as a cooldown
Color particleColor = (associatedItem.ModItem as BiomeBlade).mainAttunement.tooltipColor;
Color particleColor = (associatedItem.ModItem as BrokenBiomeBlade).mainAttunement.tooltipColor;
for (int i = 0; i <= 5; i++)
{
@@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.position += Vector2.UnitY * -0.3f * (1f + Projectile.timeLeft / 60f);
}
public void Attune(BiomeBlade item)
public void Attune(BrokenBiomeBlade item)
{
bool jungle = Owner.ZoneJungle;
bool snow = Owner.ZoneSnow;
@@ -166,10 +166,10 @@ namespace CalamityMod.Projectiles.Melee
}
//If we swapped out the main attunement for the second one despite the second attunement being empty at the time, unswap them.
if ((associatedItem.ModItem as BiomeBlade).mainAttunement == null && (associatedItem.ModItem as BiomeBlade).secondaryAttunement != null)
if ((associatedItem.ModItem as BrokenBiomeBlade).mainAttunement == null && (associatedItem.ModItem as BrokenBiomeBlade).secondaryAttunement != null)
{
(associatedItem.ModItem as BiomeBlade).mainAttunement = (associatedItem.ModItem as BiomeBlade).secondaryAttunement;
(associatedItem.ModItem as BiomeBlade).secondaryAttunement = null;
(associatedItem.ModItem as BrokenBiomeBlade).mainAttunement = (associatedItem.ModItem as BrokenBiomeBlade).secondaryAttunement;
(associatedItem.ModItem as BrokenBiomeBlade).secondaryAttunement = null;
}
//Cool particles
@@ -41,8 +41,8 @@ namespace CalamityMod.Projectiles.Melee
Projectile.penetrate = -1;
Projectile.extraUpdates = 1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = BiomeBlade.HotAttunement_LocalIFrames;
Projectile.timeLeft = BiomeBlade.HotAttunement_LocalIFrames;
Projectile.localNPCHitCooldown = BrokenBiomeBlade.HotAttunement_LocalIFrames;
Projectile.timeLeft = BrokenBiomeBlade.HotAttunement_LocalIFrames;
}
public override bool? CanDamage()
@@ -89,8 +89,8 @@ namespace CalamityMod.Projectiles.Melee
GeneralParticleHandler.SpawnParticle(Rock);
}
if (Owner.HeldItem.type == ItemType<BiomeBlade>())
(Owner.HeldItem.ModItem as BiomeBlade).CanLunge = 1; // Reset the lunge counter on pogo. This should make for more interesting and fun synergies
if (Owner.HeldItem.type == ItemType<BrokenBiomeBlade>())
(Owner.HeldItem.ModItem as BrokenBiomeBlade).CanLunge = 1; // Reset the lunge counter on pogo. This should make for more interesting and fun synergies
}
}
@@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.Center = Owner.Center + (direction * 60);
//Scaling based on shred
Projectile.localNPCHitCooldown = BiomeBlade.HotAttunement_LocalIFrames - (int)(MathHelper.Lerp(0, BiomeBlade.HotAttunement_LocalIFrames - BiomeBlade.HotAttunement_LocalIFramesCharged, ShredRatio)); //Increase the hit frequency
Projectile.localNPCHitCooldown = BrokenBiomeBlade.HotAttunement_LocalIFrames - (int)(MathHelper.Lerp(0, BrokenBiomeBlade.HotAttunement_LocalIFrames - BrokenBiomeBlade.HotAttunement_LocalIFramesCharged, ShredRatio)); //Increase the hit frequency
Projectile.scale = 1f + (ShredRatio * 1f); //SWAGGER
@@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Melee
Owner.itemTime = 2;
Owner.itemAnimation = 2;
Shred -= BiomeBlade.HotAttunement_ShredDecayRate;
Shred -= BrokenBiomeBlade.HotAttunement_ShredDecayRate;
PogoCooldown--;
if (Projectile.timeLeft <= 2)
Projectile.timeLeft = 2;
@@ -154,22 +154,22 @@ namespace CalamityMod.Projectiles.Melee
//Since the iframes vary, adjust the damage to be consistent no matter the iframes. The true scaling happens between the BaseDamage and the FulLChargeDamage
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
{
float deviationFromBaseDamage = damage / (float)BiomeBlade.HotAttunement_BaseDamage;
float currentDamage = (int)(MathHelper.Lerp(BiomeBlade.HotAttunement_BaseDamage * deviationFromBaseDamage, BiomeBlade.HotAttunement_FullChargeDamage * deviationFromBaseDamage, ShredRatio));
float deviationFromBaseDamage = damage / (float)BrokenBiomeBlade.HotAttunement_BaseDamage;
float currentDamage = (int)(MathHelper.Lerp(BrokenBiomeBlade.HotAttunement_BaseDamage * deviationFromBaseDamage, BrokenBiomeBlade.HotAttunement_FullChargeDamage * deviationFromBaseDamage, ShredRatio));
//Adjust the damage to make it constant based on the local iframes
float damageReduction = Projectile.localNPCHitCooldown / (float)BiomeBlade.HotAttunement_LocalIFrames;
float damageReduction = Projectile.localNPCHitCooldown / (float)BrokenBiomeBlade.HotAttunement_LocalIFrames;
damage = (int)(currentDamage * damageReduction);
}
public override void ModifyHitPlayer(Player target, ref int damage, ref bool crit)
{
float deviationFromBaseDamage = damage / (float)BiomeBlade.HotAttunement_BaseDamage;
float currentDamage = (int)(MathHelper.Lerp(BiomeBlade.HotAttunement_BaseDamage * deviationFromBaseDamage, BiomeBlade.HotAttunement_FullChargeDamage * deviationFromBaseDamage, ShredRatio));
float deviationFromBaseDamage = damage / (float)BrokenBiomeBlade.HotAttunement_BaseDamage;
float currentDamage = (int)(MathHelper.Lerp(BrokenBiomeBlade.HotAttunement_BaseDamage * deviationFromBaseDamage, BrokenBiomeBlade.HotAttunement_FullChargeDamage * deviationFromBaseDamage, ShredRatio));
//Adjust the damage to make it constant based on the local iframes
float damageReduction = Projectile.localNPCHitCooldown / (float)BiomeBlade.HotAttunement_LocalIFrames;
float damageReduction = Projectile.localNPCHitCooldown / (float)BrokenBiomeBlade.HotAttunement_LocalIFrames;
damage = (int)(currentDamage * damageReduction);
}
@@ -188,7 +188,7 @@ namespace CalamityMod.Projectiles.Melee
Shred += 62; //Augment the shredspeed
if (Owner.velocity.Y > 0)
Owner.velocity.Y = -2f; //Get "stuck" into the enemy partly
Owner.GiveIFrames(BiomeBlade.HotAttunement_ShredIFrames); // i framez.
Owner.GiveIFrames(BrokenBiomeBlade.HotAttunement_ShredIFrames); // i framez.
PogoCooldown = 20;
}
}
@@ -200,7 +200,7 @@ namespace CalamityMod.Projectiles.Melee
public override bool PreDraw(ref Color lightColor)
{
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BiomeBlade").Value;
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BrokenBiomeBlade").Value;
Texture2D blade = Request<Texture2D>("CalamityMod/Projectiles/Melee/BrokenBiomeBlade_AridGrandeur").Value;
int bladeAmount = 4;
@@ -119,12 +119,12 @@ namespace CalamityMod.Projectiles.Melee
case 1:
Projectile.width = Projectile.height = 140;
SoundEngine.PlaySound(SoundID.DD2_OgreSpit, Projectile.Center);
Projectile.damage = (int)(Projectile.damage * BiomeBlade.ColdAttunement_SecondSwingBoost);
Projectile.damage = (int)(Projectile.damage * BrokenBiomeBlade.ColdAttunement_SecondSwingBoost);
break;
case 2:
Projectile.width = Projectile.height = 130;
SoundEngine.PlaySound(SoundID.DD2_PhantomPhoenixShot, Projectile.Center);
Projectile.damage = (int)(Projectile.damage * BiomeBlade.ColdAttunement_ThirdSwingBoost);
Projectile.damage = (int)(Projectile.damage * BrokenBiomeBlade.ColdAttunement_ThirdSwingBoost);
break;
}
@@ -199,7 +199,7 @@ namespace CalamityMod.Projectiles.Melee
public override bool PreDraw(ref Color lightColor)
{
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BiomeBlade").Value;
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BrokenBiomeBlade").Value;
if (SwingMode != 2)
{
@@ -104,8 +104,8 @@ namespace CalamityMod.Projectiles.Melee
if (!cannotLifesteal) //trolled
{
Owner.statLife += BiomeBlade.EvilAttunement_Lifesteal;
Owner.HealEffect(BiomeBlade.EvilAttunement_Lifesteal); //Idk if its too much or what but at the same time its close range as fuck
Owner.statLife += BrokenBiomeBlade.EvilAttunement_Lifesteal;
Owner.HealEffect(BrokenBiomeBlade.EvilAttunement_Lifesteal); //Idk if its too much or what but at the same time its close range as fuck
}
// Bounce off
@@ -113,12 +113,12 @@ namespace CalamityMod.Projectiles.Melee
bounceStrength *= Owner.velocity.Y == 0 ? 0.2f : 1f; //Reduce the bounce if the player is on the ground
Owner.velocity = -direction.SafeNormalize(Vector2.Zero) * MathHelper.Clamp(bounceStrength, 0f, 22f);
CanBounce = 0f;
Owner.GiveIFrames(BiomeBlade.EvilAttunement_BounceIFrames); // i frames for free!
Owner.GiveIFrames(BrokenBiomeBlade.EvilAttunement_BounceIFrames); // i frames for free!
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BiomeBlade").Value;
Texture2D handle = Request<Texture2D>("CalamityMod/Items/Weapons/Melee/BrokenBiomeBlade").Value;
Texture2D tex = Request<Texture2D>("CalamityMod/Projectiles/Melee/BrokenBiomeBlade_DecaysRetort").Value;
float drawAngle = direction.ToRotation();
@@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Melee
Projectile.penetrate = -1;
Projectile.extraUpdates = 2;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = BiomeBlade.TropicalAttunement_LocalIFrames;
Projectile.localNPCHitCooldown = BrokenBiomeBlade.TropicalAttunement_LocalIFrames;
}
public override bool? CanCutTiles() => false; //Itd be quite counterproductive to make the whip cut the tiles it just grew
@@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Melee
{
if (SnapCoyoteTime > 0f)
{
damage = (int)(damage * BiomeBlade.TropicalAttunement_SweetSpotDamageMultiplier);
damage = (int)(damage * BrokenBiomeBlade.TropicalAttunement_SweetSpotDamageMultiplier);
crit = true;
for (int i = 0; i < 3; i++)
{
@@ -93,7 +93,7 @@ namespace CalamityMod.Projectiles.Melee
}
}
else
damage = (int)(damage * BiomeBlade.TropicalAttunement_ChainDamageReduction); //If the enemy is hit with the chain of the whip, the damage gets reduced
damage = (int)(damage * BrokenBiomeBlade.TropicalAttunement_ChainDamageReduction); //If the enemy is hit with the chain of the whip, the damage gets reduced
}
public override void AI()
+1 -1
View File
@@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Melee
else
{
Projectile.tileCollide = false;
float returnSpeed = GalaxySmasherMelee.Speed;
float returnSpeed = GalaxySmasher.Speed;
float acceleration = 3.2f;
Player owner = Main.player[Projectile.owner];
+1 -1
View File
@@ -66,7 +66,7 @@ namespace CalamityMod.Projectiles.Melee
else
{
Projectile.tileCollide = false;
float returnSpeed = StellarContemptMelee.Speed;
float returnSpeed = StellarContempt.Speed;
float acceleration = 3.2f;
Player owner = Main.player[Projectile.owner];