This commit is contained in:
doze-zoze committed 2026-04-11 12:32:12 -05:00
commit 2caa41865a
346 files changed
+4170 -2236

No files matched your search

+3
View File
@@ -222,6 +222,9 @@ namespace CalamityMod.Balancing
// 30% resist to Flak Kraken.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.7f, ProjectileType<FlakKrakenProjectile>()))));
// 25% resist to Solar Eruption.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.75f, ProjectileID.SolarWhipSword, ProjectileID.SolarWhipSwordExplosion))));
// 20% resist to Ballistic Poison Bomb's clouds.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<BallisticPoisonCloud>()))));
+3 -4
View File
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -10,10 +11,8 @@ namespace CalamityMod.Buffs.Alcohol
Main.debuff[Type] = true;
Main.buffNoSave[Type] = true;
Main.buffNoTimeDisplay[Type] = true;
// The nurse technically cannot get rid of this debuff by herself, as it reapplies immediately after if you have alcohol left
// But she also cleanses excess alcohol if you have Alcohol Poisoning (see CalamityPlayer.PostNurseHeal)
// Removing this set means she costs 1 debuff worth of cost to remove excess alcohol
// BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
// The nurse can remove all alcohol debuffs individually, thus removing this by proxy.
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-3
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,14 +12,12 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
var cplayer = player.Calamity();
cplayer.grapeBeer = true;
cplayer.critDamage -= GrapeBeer.CritLoss * 0.01f;
}
}
}
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,6 +1,5 @@
using CalamityMod.Items.Potions.Alcohol;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -13,7 +12,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
-2
View File
@@ -1,5 +1,4 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Alcohol
@@ -12,7 +11,6 @@ namespace CalamityMod.Buffs.Alcohol
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
Main.persistentBuff[Type] = true;
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
+4 -2
View File
@@ -156,11 +156,13 @@ namespace CalamityMod.Buffs
}
}
if (type == BuffID.Frozen)
{
npc.Calamity().frozen = true;
}
if (type == BuffID.Webbed)
{
npc.Calamity().webbed = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
if (type == BuffID.Electrified)
{
+15 -4
View File
@@ -1,4 +1,5 @@
using CalamityMod.DataStructures;
using CalamityMod.Projectiles.Summon;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ModLoader;
@@ -17,8 +18,17 @@ namespace CalamityMod.Buffs.DamageOverTime
public static float ViridVanguardPoisonMultiplier => 2;
public static void SagePoisonPower(NPC npc, int buffType, ref int buffIndex, ref int damage)
{
// The base DoT is multiplied by the amount of Viral Sprouts you have when applied
// See SageNeedle.cs for details
int viralCount = 0;
int viridCount = 0;
foreach (var item in Main.ActiveProjectiles)
{
if (item.type == ModContent.ProjectileType<SageSpirit>())
viralCount++;
if (item.type == ModContent.ProjectileType<ViridVanguardBlade>())
viridCount++;
}
if ((viralCount + viridCount) <= 0)
return;
//Reduce power of weakness/resistances but leave sickness debuff boosters at full power
//We first need to apply Irradiated as that isn't included in SicknessDebuffMultiplier due to needing to dynamically update if Irradiated is applied
@@ -39,8 +49,9 @@ namespace CalamityMod.Buffs.DamageOverTime
multiplier *= NewResistanceEffectiveness;
//Apply the DOT
int baseSagePoisonDoTValue = (int)multiplier.ApplyTo(npc.Calamity().sagePoisonDamage);
npc.Calamity().ApplyDPSDebuff(baseSagePoisonDoTValue, baseSagePoisonDoTValue / 5, ref npc.lifeRegen, ref damage);
float SagePoisonRegen = (viralCount + ViridVanguardPoisonMultiplier * viridCount) * debuffData.EnemyLostRegen;
int totalDoT = (int)multiplier.ApplyTo(SagePoisonRegen);
npc.Calamity().ApplyDPSDebuff(totalDoT, totalDoT/(2*(viridCount+viralCount)), ref npc.lifeRegen, ref damage);
}
public override void SetStaticDefaults()
{
@@ -41,9 +41,6 @@ namespace CalamityMod.Buffs.DamageOverTime
cgn.trueVulnerabilityHex = true;
if (cgn.VulnerabilityHexFireDrawer != null)
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
internal static void DrawEffects(NPC npc, ref Color drawColor)
-2
View File
@@ -34,8 +34,6 @@ namespace CalamityMod.Buffs.DamageOverTime
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().vaporfied = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin +npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
-4
View File
@@ -46,10 +46,6 @@ namespace CalamityMod.Buffs.DamageOverTime
// Set the remaining time of the fire drawer to be exactly right.
if (cgn.VulnerabilityHexFireDrawer != null)
cgn.VulnerabilityHexFireDrawer.SetLifetime = cgn.VulnerabilityHexFireDrawer.LocalTimer + npc.buffTime[buffIndex];
// Apply immunity timer.
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && cgn.debuffResistanceTimer <= 0)
cgn.debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + +npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
{
+4 -2
View File
@@ -1,4 +1,5 @@
using Terraria;
using CalamityMod.Items.Potions.Food;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Potions
@@ -7,7 +8,7 @@ namespace CalamityMod.Buffs.Potions
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = false;
}
@@ -15,6 +16,7 @@ namespace CalamityMod.Buffs.Potions
public override void Update(Player player, ref int buffIndex)
{
player.Calamity().baguette = true;
player.lifeRegen -= Baguette.RedWineRegenLoss;
}
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
{
public class Mushy : ModBuff
{
public static int DefenseBoost = 5;
public static int DefenseBoost = 3;
public static int RegenBoost = 2;
public override LocalizedText Description => base.Description.WithFormatArgs(DefenseBoost, RegenBoost.ToRegenPerSecond());
-2
View File
@@ -26,8 +26,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().eutrophication = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
internal static void DrawEffects(PlayerDrawSet drawInfo)
-2
View File
@@ -26,8 +26,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().galvanicCorrosion = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
public override void Update(Player player, ref int buffIndex)
-28
View File
@@ -1,28 +0,0 @@
using CalamityMod.NPCs;
using CalamityMod.Systems.Collections;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatDebuffs
{
public class GlacialState : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = true;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
BuffID.Sets.LongerExpertDebuff[Type] = true;
}
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().glacialState = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
npc.DelBuff(buffIndex);
buffIndex--;
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 611 B

-2
View File
@@ -17,8 +17,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().temporalSadness = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
}
}
-2
View File
@@ -19,8 +19,6 @@ namespace CalamityMod.Buffs.StatDebuffs
public override void Update(NPC npc, ref int buffIndex)
{
npc.Calamity().timeDistortion = true;
if ((CalamityNPCSets.ResistSlowingDebuffsAndOtherSpecialEffects[npc.type] || npc.boss) && npc.Calamity().debuffResistanceTimer <= 0)
npc.Calamity().debuffResistanceTimer = CalamityGlobalNPC.slowingDebuffResistanceMin + npc.buffTime[buffIndex];
}
}
}
+62 -36
View File
@@ -187,11 +187,11 @@ namespace CalamityMod.CalPlayer
public enum FishingMinigames
{
None,
ScrapBobber,
NavystoneBobber,
SkylineBobber,
PerennialBobber,
ScoriaBobber,
WulfrumBobber,
SunkenSinker,
AcrobaticBobber,
FeralBobber,
VolcanicSinker,
DevourerofCods //Not a fishing minigame but uses the same code as the rest
}
public FishingMinigames SelectedFishingMinigame = FishingMinigames.None;
@@ -948,8 +948,12 @@ namespace CalamityMod.CalPlayer
public bool seraphTracers = false;
public bool frostFlare = false;
public bool evolution = false;
public bool procDodgeEffects = true;
public bool v8Engine = false;
public bool v8000Engine = false;
public bool v8EngineFXPlayed = false;
public bool procDodgeEffects = false;
public bool nanotech = false;
public int nanotechHitCooldown = 0;
public bool deadshotBrooch = false;
public bool shadowMinions = false;
public bool holyMinions = false;
@@ -970,6 +974,9 @@ namespace CalamityMod.CalPlayer
public bool community = false;
public bool shatteredCommunity = false;
public bool fleshTotem = false;
public bool fleshTotemMinion = false;
public bool fleshTotemVisual = false;
public int fleshTotemManaStorage = 0;
public bool bloodPact = false;
public bool bloodflareCore = false;
public int bloodflareCoreRemainingHealOverTime = 0;
@@ -1091,7 +1098,9 @@ namespace CalamityMod.CalPlayer
public bool eclipseMirror = false;
public bool featherCrown = false;
public bool moonCrown = false;
public int rogueCrownCooldown = 0;
public bool mageCrownVisibility = false;
public int mageCrownTimer = 0;
public int mageCrownCount = 0;
public bool dragonScales = false;
public bool gloveOfPrecision = false;
public bool gloveOfRecklessness = false;
@@ -1106,6 +1115,7 @@ namespace CalamityMod.CalPlayer
public int spectralVeilImmunity = 0;
/// <summary> Check for if the player has Plagued Fuel Pack OR Blunder Booster equipped. </summary>
public bool hasJetpack = false;
public bool hasEngineDash = false;
public bool plaguedFuelPack = false;
public bool blunderBooster = false;
public bool blunderBoosterVisibility = true;
@@ -2400,7 +2410,10 @@ namespace CalamityMod.CalPlayer
amalgam = false;
frostFlare = false;
evolution = false;
v8Engine = false;
v8000Engine = false;
nanotech = false;
nanotechHitCooldown = 0;
deadshotBrooch = false;
tesla = false;
teslaVisuals = true;
@@ -2436,6 +2449,8 @@ namespace CalamityMod.CalPlayer
stressPills = false;
laudanum = false;
fleshTotem = false;
fleshTotemVisual = false;
fleshTotemMinion = false;
bloodPact = false;
bloodflareCore = false;
chaliceOfTheBloodGod = false;
@@ -2621,6 +2636,7 @@ namespace CalamityMod.CalPlayer
eclipseMirror = false;
featherCrown = false;
moonCrown = false;
mageCrownVisibility = false;
dragonScales = false;
gloveOfPrecision = false;
gloveOfRecklessness = false;
@@ -2631,6 +2647,7 @@ namespace CalamityMod.CalPlayer
sandCloak = false;
spectralVeil = false;
hasJetpack = false;
hasEngineDash = false;
plaguedFuelPack = false;
blunderBooster = false;
blunderBoosterVisibility = true;
@@ -3114,7 +3131,7 @@ namespace CalamityMod.CalPlayer
andromedaCripple = 0;
theBeeCooldown = 0;
scuttlerCooldown = 0;
rogueCrownCooldown = 0;
mageCrownTimer = 0;
wingProjectileCooldown = 0;
hallowedRuneCooldown = 0;
sulphurBubbleCooldown = 0;
@@ -4837,6 +4854,29 @@ namespace CalamityMod.CalPlayer
}
#endregion
#region PreItemChecks
public override bool PreItemCheck()
{
//For use when the player runs out of mana. Currently only used for Feather and Moonstone Crown
if (Player.HeldItem.mana > 0 && Player.controlUseItem && Player.itemAnimation == 0)
{
if (!Player.CheckMana(Player.HeldItem, -1, false, true))
{
if (moonCrown || featherCrown)
{
if (mageCrownCount > 0)
{
mageCrownCount = 0;
mageCrownTimer = 300;
}
if (mageCrownCount < 0) mageCrownCount = 0;
}
}
}
return true;
}
#endregion
#region PostUpdateEquips
public override void PostUpdateEquips()
{
@@ -5147,7 +5187,7 @@ namespace CalamityMod.CalPlayer
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
(aquaticHeartWaterBuff ? AquaticHeart.WaterSpeedBoost : 0f) +
(laudanum && Player.HasBuff(BuffID.VortexDebuff) ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * FrostFlare.HealthRatioThreshold)) ? FrostFlare.AccelerationBoost : 0f) +
(dragonScales ? 0.1f : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
(silvaSet ? SilvaArmor.AccelerationBoost : 0f) +
@@ -5167,7 +5207,7 @@ namespace CalamityMod.CalPlayer
(stressPills ? 0.05f : 0f) +
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
(aquaticHeartWaterBuff ? AquaticHeart.WaterSpeedBoost : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * FrostFlare.HealthRatioThreshold)) ? FrostFlare.AccelerationBoost : 0f) +
(dragonScales ? 0.1f : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
(silvaSet ? SilvaArmor.AccelerationBoost : 0f) +
@@ -5880,32 +5920,6 @@ namespace CalamityMod.CalPlayer
price /= vanillaPriceMult;
}
}
public override void PostNurseHeal(NPC nurse, int health, bool removeDebuffs, int price)
{
// Remove excess alcohol
if (removeDebuffs && alcoholPoisonLevel > 3)
{
List<int[]> Alcohol = new List<int[]>();
for (int i = 0; i < Player.MaxBuffs; i++)
{
int buff = Player.buffType[i];
if (CalamityBuffSets.AlcoholStrength.TryGetValue(buff, out int level))
Alcohol.Insert(0, new int[] { i, level });
}
int poison = alcoholPoisonLevel;
do
{
// Obtain the index:level relationship
int[] relation = Alcohol[0];
Player.DelBuff(relation[0]); // Remove the alcohol
poison -= relation[1]; // Cancel the poison level
Alcohol.RemoveAt(0);
}
while (poison > 3);
}
}
#endregion
#region Rogue Stealth
@@ -6287,6 +6301,18 @@ namespace CalamityMod.CalPlayer
life.noGravity = true;
}
}
if (modPlayer.fleshTotem)
{
if (Main.myPlayer == Player.whoAmI)
{
fleshTotemManaStorage += manaConsumed;
if (fleshTotemManaStorage >= FleshTotem.manaStorageMax)
{
fleshTotemManaStorage = FleshTotem.manaStorageMax;
}
}
}
}
#endregion
+8 -7
View File
@@ -3,6 +3,7 @@ using CalamityMod.Balancing;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.EntitySources;
using CalamityMod.Enums;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Mounts;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
@@ -132,6 +133,10 @@ namespace CalamityMod.CalPlayer
dashDelayToApply = BalancingConstants.UniversalShieldBonkCooldown;
if (DashID == DeepDiverDash.ID || (evasionScarf && DashID == CounterScarfDash.ID))
dashDelayToApply = (int)(dashDelayToApply * 0.75f);
if (DashID == V8EngineDash.ID)
dashDelayToApply = (int)(dashDelayToApply * V8Engine.DashDelayModifier);
if (DashID == V8000EngineDash.ID)
dashDelayToApply = (int)(dashDelayToApply * V8000Engine.DashDelayModifier);
if (DashID == StatisNinjaBeltDash.ID || DashID == StatisVoidSashDash.ID || Player.dashType == 1)
dashDelayToApply = BalancingConstants.UniversalSashDashCooldown;
@@ -144,15 +149,11 @@ namespace CalamityMod.CalPlayer
// Handle mid-dash effects.
UsedDash.MidDashEffects(Player, ref dashSpeed, ref dashSpeedDecelerationFactor, ref runSpeedDecelerationFactor);
int VerticalOmnidashCap = DashID == GodslayerArmorDash.ID ? 75 : 25;
if (UsedDash.IsOmnidirectional && VerticalOmnidashTimer < VerticalOmnidashCap)
if (UsedDash.ForceEndAt > 0)
{
VerticalOmnidashTimer++;
if (VerticalOmnidashTimer >= VerticalOmnidashCap)
if (UsedDash.dashTime >= UsedDash.ForceEndAt)
{
Player.dashDelay = dashDelayToApply;
// Stop the player from going flying
Player.velocity *= 0.2f;
}
}
@@ -231,7 +232,7 @@ namespace CalamityMod.CalPlayer
}
// Handle first-frame effects.
else if (HasCustomDash && !Player.mount.Active)
else if (HasCustomDash && (!Player.mount.Active || DashID == V8EngineDash.ID || DashID == V8000EngineDash.ID))
{
UsedDash.dashTime = 0;
if (DoADash(UsedDash.CalculateDashSpeed(Player)))
+33 -12
View File
@@ -41,6 +41,7 @@ using CalamityMod.NPCs.Providence;
using CalamityMod.NPCs.SupremeCalamitas;
using CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
@@ -790,10 +791,6 @@ namespace CalamityMod.CalPlayer
// The amount of damage that will be dealt is yet to be determined.
//
// Can't have any cooldowns here because dodges grrrrr....
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && TotalEnergyShielding <= 0)
modifiers.FinalDamage *= 0.5f;
if (tarragonCloak && tarraMelee && !Player.HasCooldown(Cooldowns.TarragonCloak.ID))
modifiers.FinalDamage *= (1f - TarragonHeadMelee.CloakContactDamageReduction);
@@ -1083,10 +1080,9 @@ namespace CalamityMod.CalPlayer
if (!hasIFrames && !Player.creativeGodMode)
nextHitDealsDefenseDamage |= npc.Calamity().canBreakPlayerDefense;
// ModifyHit (Flesh Totem effect happens here) -> Hurt (includes dodges) -> OnHit
// ModifyHit -> Hurt (includes dodges) -> OnHit
// As such, to avoid cooldowns proccing from dodge hits, do it here
if (fleshTotem && !Player.HasCooldown(Cooldowns.FleshTotem.ID) && hurtInfo.Damage > 0)
Player.AddCooldown(Cooldowns.FleshTotem.ID, CalamityUtils.SecondsToFrames(20));
if (NPC.AnyNPCs(ModContent.NPCType<THELORDE>()))
Player.AddBuff(ModContent.BuffType<NOU>(), 15, true);
@@ -2229,7 +2225,7 @@ namespace CalamityMod.CalPlayer
SoundEngine.PlaySound(SoundID.Item96, Player.Center);
}
if (gShell) //3 seconds of no dash reduction and reduced defense
if (gShell)
{
if (giantShellPostHit == 0)
{
@@ -2246,10 +2242,10 @@ namespace CalamityMod.CalPlayer
dust.scale = Main.rand.NextFloat(1.5f, 1.2f);
}
}
giantShellPostHit = 180;
giantShellPostHit = GiantShell.PostHitCancelDuration;
}
if (tortShell) //3 seconds of no dash reduction and reduced defense
if (tortShell)
{
if (tortShellPostHit == 0)
{
@@ -2266,7 +2262,7 @@ namespace CalamityMod.CalPlayer
dust.scale = Main.rand.NextFloat(1.6f, 2.2f);
}
}
tortShellPostHit = 180;
tortShellPostHit = GiantTortoiseShell.PostHitCancelDuration;
}
if (aquaticHeartIce)
@@ -2326,11 +2322,36 @@ namespace CalamityMod.CalPlayer
if (duration > 120)
duration = 120;
npc.AddBuff(ModContent.BuffType<GlacialState>(), (int)duration, false);
npc.AddBuff(BuffID.Frozen, (int)duration, false);
}
}
}
if (fleshTotem && hurtInfo.Damage > 0)
{
SoundStyle Counter = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Shield_Down");
if (fleshTotemManaStorage >= 100 && fleshTotemVisual)
SoundEngine.PlaySound(Counter with { Volume = 0.75f}, Player.Center);
int lostSoulAmount = fleshTotemManaStorage / 25;
if (Player.ownedProjectileCounts[ModContent.ProjectileType<FleshTotemMinion>()] != 0)
{
for (int i = 0; i < Main.maxProjectiles; i++)
{
Projectile proj = Main.projectile[i];
if (proj.active && proj.owner == Player.whoAmI && proj.type == ModContent.ProjectileType<FleshTotemMinion>())
{
for (int k = 0; k < lostSoulAmount; k++)
{
Projectile.NewProjectile(Player.GetSource_Accessory_OnHurt(FindAccessory<FleshTotem>(), hurtInfo.DamageSource), proj.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.4f, 0.55f), ModContent.ProjectileType<FleshTotemSoul>(), FleshTotem.lostSoulDamage, 0f, Main.myPlayer, 0f, 0f, 3f);
}
break;
}
}
}
fleshTotemManaStorage = 0;
}
// By setting brainOfConfusionItem, these accessories have this code already,
// but doing it again allows for increased duration + The Amalgam's other buffs,
// and also doesn't have random chance (why does Brain of Confusion not guarantee confusion on hit)
+1 -2
View File
@@ -218,9 +218,8 @@ namespace CalamityMod.CalPlayer
// Independently of Calamity's nerfs to Nebula life regen, it is disabled entirely by alcohol poisoning.
Player.nebulaLevelLife = 0;
// This has to last over 60 frames for the nurse to count the debuff, so...
if (Player.whoAmI == Main.myPlayer)
Player.AddBuff(ModContent.BuffType<AlcoholPoisoning>(), 61, false);
Player.AddBuff(ModContent.BuffType<AlcoholPoisoning>(), 2, false);
if (Player.lifeRegen > 0)
Player.lifeRegen = 0;
+88 -28
View File
@@ -211,22 +211,22 @@ namespace CalamityMod.CalPlayer
if (Player.HeldItem.type == ModContent.ItemType<Starfleet>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<StarfleetHoldout>()] == 0))
{
int damage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(Player.HeldItem.damage);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarfleetHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarfleetHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
}
if (Player.HeldItem.type == ModContent.ItemType<Starmada>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<StarmadaHoldout>()] == 0))
{
int damage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(Player.HeldItem.damage);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarmadaHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<StarmadaHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
}
if (Player.HeldItem.type == ModContent.ItemType<Basher>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<BasherHoldout>()] == 0))
{
int damage = (int)Player.GetTotalDamage<TrueMeleeDamageClass>().ApplyTo(Player.HeldItem.damage);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<BasherHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<BasherHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
}
if (Player.HeldItem.type == ModContent.ItemType<GrandDad>() && (Player.ownedProjectileCounts[ModContent.ProjectileType<GrandDadHoldout>()] == 0))
{
int damage = (int)Player.GetTotalDamage<TrueMeleeDamageClass>().ApplyTo(Player.HeldItem.damage);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<GrandDadHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
Projectile.NewProjectile(Player.GetProjectileSource_Item_WithPotentialAmmo(Player.HeldItem, 0), Player.Center, Player.Center.DirectionTo(Player.Calamity().mouseWorld), ModContent.ProjectileType<GrandDadHoldout>(), damage, Player.HeldItem.knockBack, Player.whoAmI);
}
}
@@ -305,17 +305,17 @@ namespace CalamityMod.CalPlayer
}
// First Frame dash effects
bool dashStart = (Player.dashDelay == -1 && ((!HasCustomDash && IsFirstDashFrame) || (HasCustomDash && UsedDash.DashTimeAdjustedForStartup == 1)));
bool dashStart = (Player.Calamity().DashID == DefaultDash.ID && Player.timeSinceLastDashStarted == 1 && Player.dashDelay != 0 ) || (Player.dashDelay == -1 && ((!HasCustomDash && IsFirstDashFrame) || (HasCustomDash && UsedDash.DashTimeAdjustedForStartup == 1)));
int dir = MathF.Sign(Player.velocity.X);
if (dashStart)
{
lastDashWasTabi = false;
}
if (((gShell && giantShellPostHit == 0) || (tortShell && tortShellPostHit == 0)) && dashStart)
{
Player.velocity.X *= 0.9f;
if ((tortShell && tortShellPostHit == 0))
Player.velocity.X *= GiantTortoiseShell.DashVelocityMult;
if ((gShell && giantShellPostHit == 0))
Player.velocity.X *= GiantShell.DashVelocityMult;
}
// Tabi/Master Ninja Gear dash change
@@ -350,9 +350,9 @@ namespace CalamityMod.CalPlayer
if (Player.miscCounter % 4 == 0)
Player.HealPlayer(1, HealTextType.None);
if (Player.dashDelay > 0) // Reduced dash cooldown
if (Player.dashDelay > 1) // Reduced dash cooldown
{
Player.dashDelay = 0;
Player.dashDelay = 1;
}
if (Player.dashDelay == -1)
{
@@ -367,9 +367,9 @@ namespace CalamityMod.CalPlayer
if (Player.miscCounter % 5 == 0)
Player.HealPlayer(2, HealTextType.None);
if (Player.dashDelay > 0) // Reduced dash cooldown
if (Player.dashDelay > 1) // Reduced dash cooldown
{
Player.dashDelay = 0;
Player.dashDelay = 1;
}
if (Player.dashDelay == -1)
{
@@ -458,6 +458,30 @@ namespace CalamityMod.CalPlayer
}
if (v8Engine || v8000Engine)
{
if (Player.dashDelay == 1 && !v8EngineFXPlayed)
{
SoundStyle maxEnergyReached = new("CalamityMod/Sounds/Custom/ScornJump");
SoundEngine.PlaySound(maxEnergyReached with { Volume = 0.7f }, Player.Center);
for (int i = 0; i < 10; i++) // Circular ring of particles burst from player
{
float angle = MathHelper.TwoPi * (i / 10f);
Vector2 spawnDirection = angle.ToRotationVector2();
Vector2 velocity = spawnDirection * 18f;
CritSpark spark = new CritSpark(Player.Center + spawnDirection * 3f, velocity, Color.Lerp(Player.Calamity().DashID == V8EngineDash.ID ? Color.OrangeRed : Color.Cyan, Color.White, Main.rand.NextFloat(1f)), Color.White * 0.5f, 1.2f, 12, 0.3f, 1.2f);
GeneralParticleHandler.SpawnParticle(spark);
}
v8EngineFXPlayed = true;
}
if (Player.dashDelay == -1)
v8EngineFXPlayed = false;
}
if (XykVisualsBlue || XykVisualsOrange)
{
bool Orange = XykVisualsOrange;
@@ -529,7 +553,7 @@ namespace CalamityMod.CalPlayer
// Spawn sand veil when dashing if it does not exist and you do not have the cooldown
if (!(CalamityUtils.AnyProjectiles(ModContent.ProjectileType<SandCloakVeil>()) || Player.HasCooldown(Cooldowns.SandCloak.ID)))
{
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), 13, 2.5f, Player.whoAmI);
Projectile.NewProjectile(Player.GetSource_FromThis(), Player.Center, Vector2.Zero, ModContent.ProjectileType<SandCloakVeil>(), 10, 2.5f, Player.whoAmI);
SoundEngine.PlaySound(SoundID.Item45, Player.Center);
}
}
@@ -1829,7 +1853,7 @@ namespace CalamityMod.CalPlayer
{
if (numOfEnergy < energyCap)
{
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(8);
int energyDamage = (int)Player.GetBestClassDamage().ApplyTo(12);
Projectile energy = Projectile.NewProjectileDirect(Player.GetSource_FromThis(), Player.Center, (Vector2.One * 4).RotatedByRandom(MathHelper.TwoPi), ModContent.ProjectileType<AmuletEnergy>(), energyDamage, 0f, Player.whoAmI, 0, numOfEnergy);
if (numOfEnergy + 1 == energyCap && Player.Calamity().sSpiritAmuletVisual)
{
@@ -2006,6 +2030,42 @@ namespace CalamityMod.CalPlayer
if (Player.velocity.Length() < 6)
hookPullVisuals = 0;
}
if (featherCrown)
{
int MaxSigils = 4; //Starts at 0, so cap is 5
if (mageCrownTimer == 0)
{
if (mageCrownCount <= MaxSigils && Main.myPlayer == Player.whoAmI)
{
mageCrownCount += 1;
float start = 360f / mageCrownCount;
Projectile.NewProjectile(Player.GetSource_Accessory(FindAccessory<FeatherCrown>()), new Vector2((int)(Player.Center.X + (Math.Sin(0 * start) * 300)), (int)(Player.Center.Y + (Math.Cos(0 * start) * 300))), Vector2.Zero, ModContent.ProjectileType<SpectralFeather>(), 0, 0, Player.whoAmI, 0, mageCrownCount);
}
mageCrownTimer = 120;
}
else if (!Player.dead)
{
mageCrownTimer--;
}
}
if (moonCrown)
{
int MaxSigils = 9; //Starts at 0, so cap is 10
if (mageCrownTimer == 0)
{
if (mageCrownCount <= MaxSigils && Main.myPlayer == Player.whoAmI)
{
mageCrownCount += 1;
float start = 360f / mageCrownCount;
Projectile.NewProjectile(Player.GetSource_Accessory(FindAccessory<MoonstoneCrown>()), new Vector2((int)(Player.Center.X + (Math.Sin(0 * start) * 300)), (int)(Player.Center.Y + (Math.Cos(0 * start) * 300))), Vector2.Zero, ModContent.ProjectileType<MoonSigil>(), 0, 0, Player.whoAmI, 0, mageCrownCount);
}
mageCrownTimer = 120;
}
else if (!Player.dead)
{
mageCrownTimer--;
}
}
if (unstableGraniteCore)
{
@@ -2068,7 +2128,7 @@ namespace CalamityMod.CalPlayer
if (whitewaterHeal > 0)
{
if (whitewaterHeal % 15 == 0)
if (whitewaterHeal % 20 == 0)
Player.HealPlayer(1);
whitewaterHeal--;
@@ -2194,8 +2254,8 @@ namespace CalamityMod.CalPlayer
silvaMageCooldown--;
if (scuttlerCooldown > 0)
scuttlerCooldown--;
if (rogueCrownCooldown > 0)
rogueCrownCooldown--;
if (nanotechHitCooldown > 0)
nanotechHitCooldown--;
if (spectralVeilImmunity > 0)
spectralVeilImmunity--;
if (jetPackDash > 0)
@@ -2743,10 +2803,10 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Chilled] = true;
}
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Glacial State debuff
// Cosmic Discharge Cosmic Freeze buff, gives surrounding enemies the Frozen debuff
if (cFreeze)
{
int buffType = ModContent.BuffType<GlacialState>();
int buffType = BuffID.Frozen;
float freezeDist = 200f;
if (Player.whoAmI == Main.myPlayer)
{
@@ -3411,7 +3471,7 @@ namespace CalamityMod.CalPlayer
if (giantShellPostHit > 0)
{
Player.statDefense -= 3;
Player.statDefense -= GiantShell.DefenseBoost;
giantShellPostHit--;
}
if (giantShellPostHit < 0)
@@ -3427,11 +3487,11 @@ namespace CalamityMod.CalPlayer
if (tortShellPostHit > 0)
{
Player.statDefense -= 6;
Player.statDefense -= GiantTortoiseShell.DefenseBoost;
tortShellPostHit--;
}
else
Player.endurance += 0.05f;
Player.endurance += GiantTortoiseShell.DamageReductionBoost;
if (tortShellPostHit < 0)
{
@@ -3449,7 +3509,7 @@ namespace CalamityMod.CalPlayer
if (gloveLevel > 0)
{
// Determine the glove the player benefits from in priority of latest in progression
float gloveAttackSpeed = (gloveLevel == 5 ? 0.15f : gloveLevel == 4 ? 0.14f : gloveLevel == 3 ? 0.12f : gloveLevel <= 2 ? 0.10f : 0);
float gloveAttackSpeed = (gloveLevel == 5 ? 0.15f : gloveLevel == 4 ? 0.14f : gloveLevel >= 2 ? 0.12f : gloveLevel == 1 ? 0.10f : 0);
Player.GetAttackSpeed<MeleeDamageClass>() += gloveAttackSpeed; // Give the player attack speed based on the glove they have
}
@@ -3739,10 +3799,10 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Chilled] = true;
Player.buffImmune[BuffID.Frozen] = true;
if (Player.statLife > (int)(Player.statLifeMax2 * 0.5))
Player.GetDamage<GenericDamageClass>() += 0.1f;
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.statDefense += 15;
if (Player.statLife > (int)(Player.statLifeMax2 * FrostFlare.HealthRatioThreshold))
Player.GetDamage<GenericDamageClass>() += FrostFlare.DamageBoost;
else
Player.statDefense += FrostFlare.DefenseBoost;
}
if (vexation)
+25 -75
View File
@@ -109,15 +109,6 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffID.Electrified, 300);
break;
case ItemID.BeeKeeper:
case ItemID.BladeofGrass:
target.AddBuff(BuffID.Poisoned, 240);
break;
case ItemID.FieryGreatsword:
target.AddBuff(BuffID.OnFire3, 90);
break;
case ItemID.IceSickle:
case ItemID.Frostbrand:
target.AddBuff(BuffID.Frostburn2, 300);
@@ -126,11 +117,6 @@ namespace CalamityMod.CalPlayer
case ItemID.IceBlade:
target.AddBuff(BuffID.Frostburn, 120);
break;
case (>= ItemID.BluePhaseblade and <= ItemID.YellowPhaseblade) or ItemID.OrangePhaseblade:
case (>= ItemID.BluePhasesaber and <= ItemID.YellowPhasesaber) or ItemID.OrangePhasesaber:
// TODO: find an EPIC lightsaber sound
break;
}
if (flameWakerBoots)
@@ -272,11 +258,11 @@ namespace CalamityMod.CalPlayer
switch (proj.type)
{
// Remove this in 1.4.5 port
case ProjectileID.ObsidianSwordfish:
target.AddBuff(BuffID.OnFire3, 180);
break;
case ProjectileID.InfluxWaver:
case ProjectileID.UFOLaser:
case ProjectileID.Electrosphere:
target.AddBuff(BuffID.Electrified, 180);
@@ -288,11 +274,12 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<StaticDischarge>(), 90);
break;
// Replace with Broken Armor in 1.4.5 port
case ProjectileID.GolemFist:
target.AddBuff(BuffType<ArmorCrunch>(), 180);
break;
case ProjectileID.ButchersChainsaw:
// Remove this in 1.4.5 port
case ProjectileID.MechanicalPiranha:
target.AddBuff(BuffType<HeavyBleeding>(), 180);
break;
@@ -301,25 +288,10 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<Nightwither>(), 180);
break;
case ProjectileID.Cascade:
case ProjectileID.FlamingMace:
target.AddBuff(BuffID.OnFire, 60);
break;
case ProjectileID.Bee:
case ProjectileID.GiantBee:
case ProjectileID.BladeOfGrass:
target.AddBuff(BuffID.Poisoned, 120);
break;
case ProjectileID.Wasp:
target.AddBuff(BuffID.Venom, 60);
break;
case ProjectileID.BoneArrow:
target.AddBuff(BuffType<Crumbling>(), 300);
break;
case ProjectileID.NorthPoleWeapon:
target.AddBuff(BuffID.Frostburn, 300);
break;
@@ -762,7 +734,7 @@ namespace CalamityMod.CalPlayer
if (hideOfDeus && hideOfDeusTimer == 0)
{
hideOfDeusTimer = 10;
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(320);
int bulwarkStarDamage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(HideofAstrumDeus.StarDamage);
for (int n = 0; n < 3; n++)
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType<AstralStar>(), bulwarkStarDamage, 5f, Player.whoAmI);
@@ -1058,10 +1030,9 @@ namespace CalamityMod.CalPlayer
break;
}
}
if (modProj.stealthStrike && rogueCrownCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
if (modProj.stealthStrike && nanotechHitCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
{
bool spawnedFeathers = false;
bool spawnedFlares = false;
if (nanotech)
{
for (int i = 0; i < 3; i++)
@@ -1072,41 +1043,7 @@ namespace CalamityMod.CalPlayer
Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<NanoFlare>(), damage, 3f, proj.owner);
}
}
else if (moonCrown)
{
int lunarFlareDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(MoonstoneCrown.BaseDamage);
float lunarFlareKB = 3f;
for (int i = 0; i < 3; i++)
{
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
Vector2 velocity = (position - source) / 10f;
int flare = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileID.LunarFlare, lunarFlareDamage, lunarFlareKB, proj.owner);
if (flare.WithinBounds(Main.maxProjectiles))
Main.projectile[flare].DamageType = DamageClass.Generic;
}
}
else if (featherCrown)
{
for (int i = 0; i < 3; i++)
{
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
float speedX = (position.X - source.X) / 30f;
float speedY = (position.Y - source.Y) * 8;
Vector2 velocity = new Vector2(speedX, speedY);
int featherDamage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(25);
int feather = Projectile.NewProjectile(spawnSource, source, velocity, ProjectileType<StickyFeather>(), featherDamage, 3f, proj.owner);
if (feather.WithinBounds(Main.maxProjectiles))
{
Main.projectile[feather].DamageType = DamageClass.Generic;
Main.projectile[feather].extraUpdates += 3;
}
}
spawnedFeathers = true;
}
rogueCrownCooldown = spawnedFeathers ? 15 : 60;
nanotechHitCooldown = spawnedFlares ? 15 : 60;
}
if (titanHeartSet && modProj.stealthStrike && titanCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
@@ -1221,12 +1158,25 @@ namespace CalamityMod.CalPlayer
target.AddBuff(BuffType<AstralInfectionDebuff>(), TitanHeartMask.OnHitDebuffDuration);
}
}
if (magic)
{
if (moonCrown && mageCrownCount == 10)
{
target.AddBuff(BuffType<Nightwither>(), 360);
}
if(featherCrown && mageCrownCount == 5)
{
target.AddBuff(BuffType<StaticDischarge>(), 120);
}
}
if (summon && !whip)
{
if (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs)
if (profanedCrystal && (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs))
{
target.AddBuff(BuffType<HolyFlames>(), 600);
}
else if (pSoulArtifact)
target.AddBuff(BuffType<HolyFlames>(), 300);
target.AddBuff(BuffType<HolyFlames>(), 300);
if (divineBless)
target.AddBuff(BuffType<BanishingFire>(), AngelicAlliance.BanishingFireDuration);
@@ -1320,19 +1270,19 @@ namespace CalamityMod.CalPlayer
if (heal > 2)
heal = 2;
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, heal, (raiderCritLifespan > 0 && !proj.Calamity().stealthStrike) ? 1.3f : 1.6f);
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, heal, (raiderCritLifespan > 0 && !proj.Calamity().stealthStrike) ? 1.2f : 1.5f);
}
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike && proj.numHits < 1)
//Nanotech has the same heal as Electrician's glove
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, 2f);
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, electricianGlove ? 2f : 3f);
if (proj.CountsAsClass<MagicDamageClass>() && Player.HeldItem.CountsAsClass<MagicDamageClass>())
{
if (manaOverloader)
{
double healMult = 0.1D - proj.numHits * 0.025D;
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<ManaPolarizerHealOrb>(), (int)Math.Round(damage * healMult), 2);
Player.SpawnLifeStealProjectile(target, proj, ProjectileType<ManaPolarizerHealOrb>(), (int)Math.Round(damage * healMult), 2f);
}
if (ataxiaMage && hydroHealTimer <= 0)
+27 -16
View File
@@ -27,7 +27,8 @@ namespace CalamityMod.CalPlayer.Dashes
public override bool IsOmnidirectional => true;
public int Time = 0;
public override int ForceEndAt => 75;
public float Size = 2.2f;
public bool SoundOnce = true;
@@ -40,7 +41,7 @@ namespace CalamityMod.CalPlayer.Dashes
public override void OnDashEffects(Player player)
{
Time = 0;
dashTime = 0;
Size = 2.2f;
GSDashSlot = SoundEngine.PlaySound(DevourerofGodsHead.DeathAnimationSound, player.Center);
SoundOnce = true;
@@ -60,24 +61,36 @@ namespace CalamityMod.CalPlayer.Dashes
if (SoundEngine.TryGetActiveSound(GSDashSlot, out var Dashsound) && Dashsound.IsPlaying)
Dashsound.Position = player.Center;
Time++;
Size -= 0.01f;
const int totalDashTime = 75;
// Constantly update the player's velocity direction.
float progress = MathHelper.Clamp(Time / (float)totalDashTime, 0f, 1f);
float progress = MathHelper.Clamp(dashTime / (float)ForceEndAt, 0f, 1f);
float ease = 1f - (float)Math.Pow(1f - progress, 0.2f);
float finalSpeed = MathHelper.Lerp(32f, 11f, ease);
Vector2 dashVel = Main.MouseWorld - player.Center;
Vector2 targetDirection = player.velocity.ToRotation().AngleTowards(dashVel.ToRotation(), 0.175f).ToRotationVector2();
player.velocity = targetDirection * finalSpeed;
Vector2 direction = Vector2.Zero;
if (player.controlLeft)
direction.X -= 1;
if (player.controlRight)
direction.X += 1;
if (player.controlUp)
direction.Y -= 1;
if (player.controlDown)
direction.Y += 1;
Vector2 targetDirection = direction == Vector2.Zero ? player.velocity.SafeNormalize(Vector2.Zero) : player.velocity.ToRotation().AngleTowards(direction.ToRotation(), 0.175f).ToRotationVector2();
if (targetDirection == Vector2.Zero)
targetDirection = new(player.direction, 0);
player.velocity = ((dashTime == 1 && direction != Vector2.Zero) ? direction : targetDirection) * finalSpeed;
// Fall way, way, faster than usual.
player.maxFallSpeed = 50f;
if (Time < 75)
if (dashTime < ForceEndAt)
{
Particle jaws = new Jaws(player.Center + player.velocity * 0.5f, player.velocity, Color.Fuchsia, new Vector2(0.8f, 1f), player.velocity.ToRotation() + MathHelper.PiOver2, Size, Size, 2);
GeneralParticleHandler.SpawnParticle(jaws);
@@ -85,11 +98,11 @@ namespace CalamityMod.CalPlayer.Dashes
GeneralParticleHandler.SpawnParticle(jaws2);
}
float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(2f, 2.5f, Time, true));
float radiusFactor = MathHelper.Lerp(0f, 1f, Utils.GetLerpValue(2f, 2.5f, dashTime, true));
for (int i = 0; i < 3; i++)
{
float offsetRotationAngle = player.velocity.ToRotation() + Time / 20f;
float radius = (30f + (float)Math.Cos(Time / 3f) * 24f) * radiusFactor;
float offsetRotationAngle = player.velocity.ToRotation() + dashTime / 20f;
float radius = (30f + (float)Math.Cos(dashTime / 3f) * 24f) * radiusFactor;
Vector2 dustPosition = player.Center + player.velocity * 0.8f;
dustPosition += offsetRotationAngle.ToRotationVector2().RotatedBy(i / 5f * MathHelper.TwoPi) * radius;
Dust dust = Dust.NewDustPerfect(dustPosition, Main.rand.NextBool(5) ? 181 : 295);
@@ -100,7 +113,7 @@ namespace CalamityMod.CalPlayer.Dashes
dust2.noGravity = true;
}
if (Time % 2 == 0)
if (dashTime % 2 == 0)
{
float sparkscale = Size * 1.3f;
Vector2 SparkVelocity1 = player.velocity.RotatedBy(player.direction * -4, default) * 0.08f - player.velocity / 2f;
@@ -111,14 +124,12 @@ namespace CalamityMod.CalPlayer.Dashes
GeneralParticleHandler.SpawnParticle(spark2);
}
if (Time > 75 && Time < 78)
if (dashTime >= ForceEndAt)
{
Particle pulse = new DirectionalPulseRing(player.Center - player.velocity * 0.52f, player.velocity / 1.5f, Color.Fuchsia, new Vector2(1f, 2f), player.velocity.ToRotation(), 0.82f, 0.32f, 60);
GeneralParticleHandler.SpawnParticle(pulse);
Particle pulse2 = new DirectionalPulseRing(player.Center - player.velocity * 0.40f, player.velocity / 1.5f * 0.9f, Color.Aqua, new Vector2(0.8f, 1.5f), player.velocity.ToRotation(), 0.58f, 0.28f, 50);
GeneralParticleHandler.SpawnParticle(pulse2);
Time = 95;
}
// Dash at a much, much faster speed than the default value.
+2
View File
@@ -20,6 +20,8 @@ namespace CalamityMod.CalPlayer.Dashes
public abstract bool IsOmnidirectional { get; }
public virtual int ForceEndAt { get; } = -1;
public abstract float CalculateDashSpeed(Player player);
/// <summary>
/// Effects that happen once when the main dash starts
+190
View File
@@ -0,0 +1,190 @@
using System;
using CalamityMod.Dusts;
using CalamityMod.Enums;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Weapons.Magic;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Typeless;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.CalPlayer.Dashes
{
public class V8000EngineDash : PlayerDashEffect
{
public static new string ID { get; private set; }
public override DashCollisionType CollisionType => DashCollisionType.ShieldSlam;
public override bool IsOmnidirectional => false;
public int Time = 0;
public override void Load()
{
ID = DashID;
}
public override float CalculateDashSpeed(Player player) => 16f;
public override void DashStartupEffects(Player player)
{
player.velocity *= 0.9f;
}
public override void OnDashEffects(Player player)
{
Time = 0;
// Burst of evenly spaced but random velocity dusts
for (int m = 0; m < 6; m++)
{
float fxFade = Utils.GetLerpValue(5, 15, Math.Abs(player.velocity.X), true);
Vector2 trailPos = player.Center - (player.velocity * 2) + new Vector2(0, (18 - (m * 6)));
float trailScale = 1 * fxFade;
Color trailColor = Main.rand.NextBool(3) ? Color.DodgerBlue : Color.LightSkyBlue;
int dustStyle = ModContent.DustType<SquashDust>();
Dust dust2 = Dust.NewDustPerfect(trailPos, dustStyle, -player.velocity.SafeNormalize(Vector2.UnitX) * Main.rand.NextFloat(6, 21));
dust2.scale = Main.rand.NextFloat(0.8f, 1.4f);
dust2.color = trailColor;
dust2.noGravity = true;
dust2.fadeIn = 0.5f;
}
// Thruster prim
int beamCount = 3;
float maxAngle = MathHelper.ToRadians(10f);
Vector2 baseDir = -player.velocity.SafeNormalize(Vector2.UnitX);
for (int i = -1; i < beamCount; i++)
{
float t = i / (float)(beamCount - 1);
float centered = t * 2f - 1f;
float angleOffset = centered * maxAngle;
Vector2 dir = baseDir.RotatedBy(angleOffset);
float sizeFactor = 1f - Math.Abs(centered) * 0.7f;
ThrusterParticle particle = new ThrusterParticle(player, dir, 16, 120f * sizeFactor, 1);
GeneralParticleHandler.SpawnParticle(particle, false, GeneralDrawLayer.BeforeProjectiles);
}
SoundStyle sound = V8000Engine.DashSound;
SoundEngine.PlaySound(sound with { Volume = 0.5f, Pitch = Main.rand.NextFloat(-0.4f, -0.3f) }, player.Center);
}
public override void MidDashEffects(Player player, ref float dashSpeed, ref float dashSpeedDecelerationFactor, ref float runSpeedDecelerationFactor)
{
Time++; // For VFX
if (Time % 2 == 0 && Time < 10)
{
// Angled, consistently placed sparks
Vector2 dustVel = -player.velocity.RotatedBy(0.05f + MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
Vector2 dustVel2 = -player.velocity.RotatedBy(-0.05f - MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
PointParticle spark = new PointParticle(player.Center + new Vector2(0, -15 * player.direction) + dustVel, dustVel, false, 8, 1.25f, (Main.rand.NextBool() ? Color.DodgerBlue : Color.LightSkyBlue) * 0.66f);
GeneralParticleHandler.SpawnParticle(spark);
PointParticle spark2 = new PointParticle(player.Center + new Vector2(0, 15 * player.direction) + dustVel2, dustVel2, false, 8, 1.25f, (Main.rand.NextBool() ? Color.DodgerBlue : Color.LightSkyBlue) * 0.66f);
GeneralParticleHandler.SpawnParticle(spark2);
// Glow beam
float fadeInLerp = Utils.GetLerpValue(0, 12, Time, true);
Color primaryColor = Color.Lerp(Color.DodgerBlue, Color.LightSkyBlue, fadeInLerp);
Particle beamBody = new CustomSpark(player.Center, -player.velocity * 0.15f, "CalamityMod/Particles/BloomCircle", false, 7, 0.65f - 0.3f * fadeInLerp, primaryColor * 0.8f, new Vector2(1.1f - 0.4f * fadeInLerp, 0.8f + 0.6f * fadeInLerp), true, true, shrinkSpeed: 0.6f);
GeneralParticleHandler.SpawnParticle(beamBody);
Particle beamCore = new CustomSpark(player.Center, -player.velocity * 0.15f, "CalamityMod/Particles/BloomCircle", false, 5, 0.35f - 0.15f * fadeInLerp, Color.Lerp(primaryColor, Color.White, 0.6f), new Vector2(0.5f, 1.4f), true, true, shrinkSpeed: 0.6f);
GeneralParticleHandler.SpawnParticle(beamCore);
// Horizontal dust
float fxFade = Utils.GetLerpValue(5, 15, Math.Abs(player.velocity.X), true);
Vector2 trailPos = player.Center - (player.velocity * 2) + Main.rand.NextVector2Circular(10, 20);
float trailScale = 1 * fxFade;
Color trailColor = Main.rand.NextBool(3) ? Color.DodgerBlue : Color.LightSkyBlue;
int dustStyle = ModContent.DustType<SquashDust>();
Dust dust2 = Dust.NewDustPerfect(trailPos, dustStyle, -player.velocity.SafeNormalize(Vector2.UnitX) * Main.rand.NextFloat(6, 21));
dust2.scale = Main.rand.NextFloat(0.8f, 1.4f);
dust2.color = trailColor;
dust2.noGravity = true;
dust2.fadeIn = 0.5f;
}
// SHPS-esque souls
if (Time % 4 == 0)
{
if (player.whoAmI == Main.myPlayer)
{
Vector2 spawnPos = player.Center + Main.rand.NextVector2Circular(10, 10);
Vector2 trailVel = -player.velocity * 0.6f + Main.rand.NextVector2Circular(3f, 3f);
Projectile.NewProjectile(player.GetSource_FromThis(), spawnPos, trailVel, ModContent.ProjectileType<V8000SoulVisual>(), 0, 0, player.whoAmI);
}
}
dashSpeed = 14f;
}
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
{
SoundStyle hit = new("CalamityMod/Sounds/Item/DoomsdayDeviceImpact");
SoundEngine.PlaySound(hit with { Pitch = -0.2f, Volume = 0.4f }, player.Center);
SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode with { Volume = 1f, Pitch = -0.2f }, player.Center);
SoundEngine.PlaySound(SoundID.Item74 with { Volume = 0.7f, Pitch = 1f }, player.Center);
for (int i = 0; i <= 6; i++)
{
Dust dust = Dust.NewDustPerfect(player.Center, Main.rand.NextBool() ? 278 : 132, player.velocity.RotatedByRandom(0.7f) * Main.rand.NextFloat(0.5f, 1f) + new Vector2(0, -3f));
if (dust.type == 278)
{
dust.scale = 1.2f;
dust.color = Main.rand.NextBool() ? Color.DodgerBlue : Color.LightSkyBlue;
}
else
{
dust.scale = 0.9f;
}
dust.noGravity = false;
dust.shader = GameShaders.Armor.GetSecondaryShader(player.cShield, player);
}
Particle pulse = new DirectionalPulseRing(npc.Center, Vector2.Zero, Color.DodgerBlue * 0.8f, new Vector2(2f, 2f), 0, 0.05f, 1f, 24);
GeneralParticleHandler.SpawnParticle(pulse);
for (int i = 0; i < 14; i++)
{
Vector2 velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(3f, 7f);
Color dustColor = Color.Lerp(Color.DodgerBlue, Color.White, Main.rand.NextFloat());
float scale = Main.rand.NextFloat(0.25f, .6f);
int lifetime = Main.rand.Next(30, 50);
SquishyLightParticle plasma = new(player.Center, velocity, scale, dustColor, lifetime);
GeneralParticleHandler.SpawnParticle(plasma);
}
// Define hit context variables.
int hitDirection = player.direction;
if (player.velocity.X != 0f)
hitDirection = Math.Sign(player.velocity.X);
hitContext.HitDirection = hitDirection;
hitContext.PlayerImmunityFrames = V8000Engine.ShieldSlamIFrames;
// Define damage parameters.
hitContext.damageClass = DamageClass.Melee;
hitContext.BaseDamage = V8000Engine.ShieldSlamDamage;
hitContext.BaseKnockback = V8000Engine.ShieldSlamKnockback;
}
}
}
+117
View File
@@ -0,0 +1,117 @@
using System;
using CalamityMod.Dusts;
using CalamityMod.Enums;
using CalamityMod.Graphics.Renderers;
using CalamityMod.Items.Accessories;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent.Drawing;
using Terraria.GameContent.Items;
using Terraria.Graphics.Shaders;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.CalPlayer.Dashes
{
public class V8EngineDash : PlayerDashEffect
{
public static new string ID { get; private set; }
public override DashCollisionType CollisionType => DashCollisionType.NoCollision;
public override bool IsOmnidirectional => false;
public int Time = 0;
public override void Load()
{
ID = DashID;
}
public override float CalculateDashSpeed(Player player) => 6.5f;
public override void OnDashEffects(Player player)
{
Time = 0;
// Burst of evenly spaced but random velocity dusts
for (int m = 0; m < 6; m++)
{
float fxFade = Utils.GetLerpValue(5, 15, Math.Abs(player.velocity.X), true);
Vector2 trailPos = player.Center - (player.velocity * 2) + new Vector2(0, (18 - (m * 6)));
float trailScale = 1 * fxFade;
Color trailColor = Main.rand.NextBool(3) ? Color.Firebrick : Color.OrangeRed;
int dustStyle = ModContent.DustType<SquashDust>();
Dust dust2 = Dust.NewDustPerfect(trailPos, dustStyle, -player.velocity.SafeNormalize(Vector2.UnitX) * Main.rand.NextFloat(5, 16));
dust2.scale = Main.rand.NextFloat(0.8f, 1.3f);
dust2.color = trailColor;
dust2.noGravity = true;
dust2.fadeIn = 0.5f;
}
// Thruster prim
int beamCount = 3;
float maxAngle = MathHelper.ToRadians(10f);
Vector2 baseDir = -player.velocity.SafeNormalize(Vector2.UnitX);
for (int i = -1; i < beamCount; i++)
{
float t = i / (float)(beamCount - 1);
float centered = t * 2f - 1f;
float angleOffset = centered * maxAngle;
Vector2 dir = baseDir.RotatedBy(angleOffset);
float sizeFactor = 1f - Math.Abs(centered) * 0.7f;
ThrusterParticle particle = new ThrusterParticle(player, dir, 12, 100f * sizeFactor, 0);
GeneralParticleHandler.SpawnParticle(particle, false, GeneralDrawLayer.BeforeProjectiles);
}
SoundStyle sound = V8Engine.DashSound;
SoundEngine.PlaySound(sound with { Volume = 0.5f, Pitch = Main.rand.NextFloat(-0.4f, -0.3f) }, player.Center);
}
public override void MidDashEffects(Player player, ref float dashSpeed, ref float dashSpeedDecelerationFactor, ref float runSpeedDecelerationFactor)
{
player.velocity.X *= 0.925f;
Dust hFlameDust = Dust.NewDustPerfect(player.Center + new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-15f, 15f)) - (player.velocity * 5f), DustID.HeatRay, -player.velocity.RotatedByRandom(MathHelper.ToRadians(10f)) * Main.rand.NextFloat(0.1f, 0.8f), 0, Color.Firebrick, Main.rand.NextFloat(1.8f, 2.8f));
// Angled, consistently placed sparks
Vector2 dustVel = -player.velocity.RotatedBy(0.05f + MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
Vector2 dustVel2 = -player.velocity.RotatedBy(-0.05f - MathHelper.Clamp(Time * 0.03f, 0, 0.55f)) * 0.75f;
PointParticle spark = new PointParticle(player.Center + new Vector2(0, -15 * player.direction) + dustVel, dustVel, false, 8, 1.25f, (Main.rand.NextBool() ? Color.Firebrick : Color.OrangeRed) * 0.66f);
GeneralParticleHandler.SpawnParticle(spark);
PointParticle spark2 = new PointParticle(player.Center + new Vector2(0, 15 * player.direction) + dustVel2, dustVel2, false, 8, 1.25f, (Main.rand.NextBool() ? Color.Firebrick : Color.OrangeRed) * 0.66f);
GeneralParticleHandler.SpawnParticle(spark2);
// Glow beam
float fadeInLerp = Utils.GetLerpValue(0, 12, Time, true);
Color primaryColor = Color.Lerp(Color.Firebrick, Color.OrangeRed, fadeInLerp);
Particle beamBody = new CustomSpark(player.Center, -player.velocity * 0.15f, "CalamityMod/Particles/BloomCircle", false, 7, 0.65f - 0.3f * fadeInLerp, primaryColor * 0.8f, new Vector2(1.1f - 0.4f * fadeInLerp, 0.8f + 0.6f * fadeInLerp), true, false, shrinkSpeed: 0.6f);
GeneralParticleHandler.SpawnParticle(beamBody);
Particle beamCore = new CustomSpark(player.Center, -player.velocity * 0.15f, "CalamityMod/Particles/BloomCircle", false, 5, 0.35f - 0.15f * fadeInLerp, Color.Lerp(primaryColor, Color.White, 0.6f), new Vector2(0.5f, 1.2f), true, false, shrinkSpeed: 0.6f);
GeneralParticleHandler.SpawnParticle(beamCore);
for (int i = 0; i < 2; i++)
{
// Fruit loop particles, also used by Elysian Aegis
Dust dust = Dust.NewDustPerfect(player.Center + Main.rand.NextVector2Circular(6, 6) - player.velocity * 2.2f, DustID.GoldFlame);
dust.velocity = -player.velocity * Main.rand.NextFloat(0.66f, 1.8f);
dust.scale = Main.rand.NextFloat(0.4f, 1.3f);
dust.noGravity = true;
Particle sparkler = new CustomSpark(player.Center + new Vector2(Main.rand.NextFloat(-6f, 6f), Main.rand.NextFloat(-15f, 15f)) - (player.velocity * 1.2f), -player.velocity.RotatedByRandom(MathHelper.ToRadians(10f)) * Main.rand.NextFloat(0.1f, 0.8f), "CalamityMod/Particles/ProvidenceMarkParticle", false, 17, Main.rand.NextFloat(1.15f, 1.25f), Main.rand.NextBool(4) ? Color.Khaki : Color.Orange, new Vector2(1.3f, 0.5f), true, false, 0, false, false, Main.rand.NextFloat(0.4f, 0.5f));
GeneralParticleHandler.SpawnParticle(sparkler);
}
}
}
}
+4
View File
@@ -46,6 +46,10 @@ namespace CalamityMod
[DefaultValue(false)]
public bool Photosensitivity { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(false)]
public bool BoCSpriteChange { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool EnableVanillaTextureEdits { get; set; }
+106 -1
View File
@@ -1,4 +1,8 @@
using System;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.Rarities;
using CalamityMod.Utilities.Daybreak;
using CalamityMod.Utilities.Daybreak.Buffers;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Graphics;
@@ -12,11 +16,25 @@ namespace CalamityMod.ChatTags
// i.e [ceffect/darksun:Hello World] would apply darksun effect to "Hello World".
public sealed class CustomColorEffectHandler : AbstractTagHandler<CustomColorEffectHandler>
{
protected override string[] TagNames { get; } = ["ceffect"];
protected override string[] TagNames { get; } = ["ceffect", "ce"];
public override TextSnippet Parse(string text, Color baseColor = new(), string options = null)
{
if (!CalamityClientConfig.Instance.TextEffects)
return new TextSnippet(text);
if (options.Equals("darksun", StringComparison.OrdinalIgnoreCase))
return new DarksunTextSnippet(text);
if (options.Equals("drunk", StringComparison.OrdinalIgnoreCase))
return new DrunkTextSnippet(text);
if (options.Equals("dog", StringComparison.OrdinalIgnoreCase))
return new DoGTextSnippet(text);
if (options.Equals("cosmic", StringComparison.OrdinalIgnoreCase))
return new CosmicPurple.CustomTextSnippet(text);
if (options.Equals("auric", StringComparison.OrdinalIgnoreCase))
return new BurnishedAuric.CustomTextSnippet(text);
if (options.Equals("calamity", StringComparison.OrdinalIgnoreCase))
return new CalamityRed.CustomTextSnippet(text);
if (options.Equals("exo", StringComparison.OrdinalIgnoreCase))
return new ExoticRainbow.CustomTextSnippet(text);
return new TextSnippet(text);
}
}
@@ -41,7 +59,94 @@ namespace CalamityMod.ChatTags
}
return true;
}
public override float GetStringLength(DynamicSpriteFont font)
{
float size = font.MeasureString(text).X;
return size * Scale;
}
}
public sealed class DrunkTextSnippet(string text) : TextSnippet
{
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = new Vector2(), Color color = new Color(), float scale = 1)
{
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), FontAssets.MouseText.Value.MeasureString(" ").Y * scale);
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
{
var matrix = spriteBatch.transformMatrix;
Main.spriteBatch.End(out var ss);
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, matrix);
for (int i = 0; i < 3; i++) // Draw 3 lines of differing opacity, color, and displacement.
{
float timer = (float)Math.Sin(Main.GlobalTimeWrappedHourly + 1f) / 2f;
float angle = (Main.GlobalTimeWrappedHourly * 2f) + (i * MathHelper.TwoPi / 3f);
float radius = timer * (3f + i * 6f);
Vector2 offset = new Vector2((float)Math.Cos(angle) * 1.7f, (float)Math.Sin(angle) * 1f) * radius; // Offset in an elliptical pattern
Vector2 pos = position + offset;
color = CalamityUtils.MulticolorLerp(Math.Abs(timer + (i * 0.2f)) % 1f, Color.LightBlue, Color.LightGreen, (i == 3) ? Color.Blue : (i == 2) ? Color.Red : Color.White);
float opacity = 1f - (i * 0.2f);
float rotation = +(timer * (Main.GlobalTimeWrappedHourly * 0.00001f)); // This precision is intended
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, FontAssets.MouseText.Value, text, pos, color * opacity, rotation, Vector2.Zero, new Vector2(scale));
}
Main.spriteBatch.End();
Main.spriteBatch.Begin(ss);
}
return true;
}
public override float GetStringLength(DynamicSpriteFont font)
{
float size = font.MeasureString(text).X;
return size * Scale;
}
}
public sealed class DoGTextSnippet(string text) : TextSnippet
{
public override bool UniqueDraw(bool justCheckingString, out Vector2 size, SpriteBatch spriteBatch, Vector2 position = new Vector2(), Color color = new Color(), float scale = 1)
{
size = new Vector2(GetStringLength(FontAssets.MouseText.Value), FontAssets.MouseText.Value.MeasureString(" ").Y * scale);
if (!justCheckingString && (color.R != 0 || color.G != 0 || color.B != 0))
{
var pos = position;
using var lease = ScreenspaceTargetPool.Shared.Rent(Main.instance.GraphicsDevice);
string txt = "";
var matrix = spriteBatch.transformMatrix;
using (spriteBatch.Scope())
{
using (lease.Scope(clearColor: Color.Transparent))
{
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, matrix);
foreach (var item in text)
{
pos = position;
pos.X += FontAssets.MouseText.Value.MeasureString(txt).X;
float sin = MathHelper.SmoothStep(0, 1, (MathF.Sin(pos.X * 0.02f + Main.GlobalTimeWrappedHourly * -1.5f) + 1) * 0.5f);
var c = Color.Lerp(Color.Cyan, Color.Fuchsia, sin);
ChatManager.DrawColorCodedString(spriteBatch, FontAssets.MouseText.Value, item.ToString(), pos + new Vector2(0, -2 + sin * 4), c, 0, Vector2.Zero, new Vector2(scale));
txt += item;
}
spriteBatch.End();
}
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, SamplerState.PointClamp, DepthStencilState.None, Main.Rasterizer, null, Matrix.Identity);
foreach (var item in ChatManager.ShadowDirections)
{
spriteBatch.Draw(lease.Target, Vector2.Zero + Vector2.TransformNormal(item * 2,matrix), null, Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
}
spriteBatch.Draw(lease.Target, Vector2.Zero, null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
spriteBatch.End();
}
}
return true;
}
public override float GetStringLength(DynamicSpriteFont font)
{
float size = font.MeasureString(text).X;
-17
View File
@@ -1,17 +0,0 @@
using Microsoft.Xna.Framework;
using Terraria.Localization;
namespace CalamityMod.Cooldowns
{
public class FleshTotem : CooldownHandler
{
public static new string ID => "FleshTotem";
public override bool ShouldDisplay => true;
public override LocalizedText DisplayName => CalamityUtils.GetText($"UI.Cooldowns.{ID}");
public override string Texture => "CalamityMod/Cooldowns/FleshTotem";
public override Color OutlineColor => new Color(157, 248, 234);
public override Color CooldownStartColor => new Color(111, 169, 241);
public override Color CooldownEndColor => new Color(111, 169, 241);
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Fishing
{
internal class SkylineBobber : ModItem, ILocalizedModType
[LegacyName("SkylineBobber")]
internal class AcrobaticBobber : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override string Texture => "CalamityMod/Projectiles/Typeless/HeronBobber";
@@ -22,7 +23,7 @@ namespace CalamityMod.Items.Fishing
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.accFishingBobber = true;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SkylineBobber;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.AcrobaticBobber;
}
public override void AddRecipes()
{
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 26;
Item.height = 42;
Item.defense = 3;
Item.defense = 2;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 12;
Item.height = 15;
Item.defense = 3;
Item.defense = 2;
Item.value = CalamityGlobalItem.RarityOrangeBuyPrice;
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 44;
Item.height = 108;
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<CalamityRed>();
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.accessory = true;
Item.expert = true;
+7
View File
@@ -83,6 +83,13 @@ namespace CalamityMod.Items.Accessories
AddIngredient<AstralBar>(10).
AddTile(TileID.TinkerersWorkbench).
Register();
CreateRecipe().
AddIngredient(ItemID.BeeCloak).
AddIngredient(ItemID.CrossNecklace).
AddIngredient(ItemID.PanicNecklace).
AddIngredient<AstralBar>(10).
AddTile(TileID.TinkerersWorkbench).
Register();
}
}
}
+1 -1
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
Item.defense = 20;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
Item.expert = true;
}
+12 -2
View File
@@ -7,7 +7,7 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Face)]
public class FeatherCrown : ModItem, ILocalizedModType
public class FeatherCrown : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetStaticDefaults()
@@ -28,12 +28,22 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Orange;
Item.accessory = true;
}
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return incomingItem.type != ModContent.ItemType<MoonstoneCrown>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rogueVelocity += 0.15f;
modPlayer.featherCrown = true;
modPlayer.mageCrownVisibility = !hideVisual;
player.GetDamage<MagicDamageClass>() += (0.02f * modPlayer.mageCrownCount); //2% per feather, up to 10%
player.manaCost -= (0.01f * modPlayer.mageCrownCount); //1% per feather, up to 5%
if (modPlayer.mageCrownCount >= 5) //At 5 feathers, grant 5% crit. Static Discharge infliction is handed in CalPlayerOnHit
{
player.GetCritChance<MagicDamageClass>() += 5;
}
}
public override void AddRecipes()
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
internal class PerennialBobber : ModItem, ILocalizedModType
[LegacyName("PerennialBobber")]
internal class FeralBobber : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override string Texture => "CalamityMod/Projectiles/Typeless/FeralDoubleBobber";
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
{
player.accFishingBobber = true;
player.fishingSkill += (int)((player.statLifeMax2 - player.statLife) * 0.25f);
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.PerennialBobber;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.FeralBobber;
}
public override void AddRecipes()
{
+22
View File
@@ -1,4 +1,6 @@
using CalamityMod.CalPlayer;
using CalamityMod.Projectiles.Magic;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -8,6 +10,10 @@ namespace CalamityMod.Items.Accessories
public class FleshTotem : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int manaStorageMax = 600;
public const int lostSoulDamage = 200;
public override void SetDefaults()
{
Item.width = 26;
@@ -21,6 +27,22 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.fleshTotem = true;
modPlayer.fleshTotemMinion = true;
modPlayer.fleshTotemVisual = !hideVisual;
player.statManaMax2 += 30;
player.GetCritChance<MagicDamageClass>() += 5;
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.ownedProjectileCounts[ModContent.ProjectileType<FleshTotemMinion>()] < 1)
{
int damage = (int)player.GetTotalDamage<MagicDamageClass>().ApplyTo(lostSoulDamage);
int effigy = Projectile.NewProjectile(source, player.Center, -Vector2.UnitY, ModContent.ProjectileType<FleshTotemMinion>(), damage, 2f, Main.myPlayer);
if (Main.projectile.IndexInRange(effigy))
Main.projectile[effigy].originalDamage = lostSoulDamage;
}
}
}
}
}
+8
View File
@@ -2,6 +2,7 @@
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -9,6 +10,13 @@ namespace CalamityMod.Items.Accessories
public class FrostFlare : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static float HealthRatioThreshold = 0.5f;
public static float DamageBoost = 0.1f;
public static int DefenseBoost = 10;
public static float AccelerationBoost = 0.15f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(HealthRatioThreshold.ToPercent(), DamageBoost.ToPercent(), DefenseBoost, AccelerationBoost.ToPercent());
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 4));
+8 -1
View File
@@ -1,6 +1,7 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -9,11 +10,17 @@ namespace CalamityMod.Items.Accessories
public class GiantShell : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int DefenseBoost = 4;
public static float DashVelocityMult = 0.9f;
public static int PostHitCancelDuration = CalamityUtils.SecondsToFrames(3);
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f - DashVelocityMult).ToPercent(), PostHitCancelDuration.FramesToSeconds());
public override void SetDefaults()
{
Item.width = 30;
Item.height = 28;
Item.defense = 5;
Item.defense = DefenseBoost;
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
Item.rare = ItemRarityID.Blue;
Item.accessory = true;
+9 -1
View File
@@ -1,6 +1,7 @@
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -8,11 +9,18 @@ namespace CalamityMod.Items.Accessories
public class GiantTortoiseShell : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int DefenseBoost = 6;
public static float DamageReductionBoost = 0.1f;
public static float DashVelocityMult = 0.9f;
public static int PostHitCancelDuration = CalamityUtils.SecondsToFrames(3);
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageReductionBoost.ToPercent(), (1f - DashVelocityMult).ToPercent(), PostHitCancelDuration.FramesToSeconds());
public override void SetDefaults()
{
Item.width = 46;
Item.height = 30;
Item.defense = 10;
Item.defense = DefenseBoost;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
+17 -5
View File
@@ -7,15 +7,12 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[AutoloadEquip(EquipType.Face)]
public class MoonstoneCrown : ModItem, ILocalizedModType
public class MoonstoneCrown : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
public new string LocalizationCategory => "Items.Accessories";
// Base damage of lunar flares on stealth strikes. Increased by rogue damage stats, but not stealth damage.
internal static int BaseDamage = 75;
public override void SetStaticDefaults()
{
if (!Main.dedServ)
{
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
@@ -31,12 +28,27 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Purple;
Item.accessory = true;
}
public override bool CanAccessoryBeEquippedWith(Item equippedItem, Item incomingItem, Player player)
{
return incomingItem.type != ModContent.ItemType<FeatherCrown>();
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.rogueVelocity += 0.15f;
modPlayer.moonCrown = true;
modPlayer.mageCrownVisibility = !hideVisual;
player.statManaMax2 += 70;
player.GetDamage<MagicDamageClass>() += (0.02f * modPlayer.mageCrownCount); //2% per moon sigil, up to 20%
player.manaCost -= (0.01f * modPlayer.mageCrownCount); //1% per moon sigil, up to 10%
if (modPlayer.mageCrownCount >= 5) //At 5 sigils, grant a mana regen bonus
{
player.manaRegenBonus += 10;
}
if (modPlayer.mageCrownCount >= 10) //At 10 sigils, grant 10% crit. Nightwither infliction is handed in CalPlayerOnHit
{
player.GetCritChance<MagicDamageClass>() += 10;
}
}
public override void AddRecipes()
-1
View File
@@ -35,7 +35,6 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<RogueEmblem>().
AddIngredient<MoonstoneCrown>().
AddIngredient<ElectriciansGlove>().
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
+1 -1
View File
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.GetDamage<RangedDamageClass>() += 0.15f;
player.GetCritChance<RangedDamageClass>() += 5;
player.GetCritChance<RangedDamageClass>() += 7;
player.magicQuiver = true;
CalamityPlayer modPlayer = player.Calamity();
modPlayer.deadshotBrooch = true;
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
internal class NavystoneBobber : ModItem, ILocalizedModType
[LegacyName("NavystoneBobber")]
internal class SunkenSinker : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override string Texture => "CalamityMod/Projectiles/Typeless/NavyBobber";
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.accFishingBobber = true;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.NavystoneBobber;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.SunkenSinker;
}
public override void AddRecipes()
{
+54
View File
@@ -0,0 +1,54 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class V8000Engine : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static float DashDelayModifier = 3.5f;
public const int ShieldSlamDamage = 900;
public const float ShieldSlamKnockback = 0.4f;
public const int ShieldSlamIFrames = 14; // While this has more i-frames than Elysian's dash, the dash speed sets this one back comparitively
public static SoundStyle DashSound = new("CalamityMod/Sounds/Item/V8000Boost");
public override void SetDefaults()
{
Item.width = 54;
Item.height = 50;
Item.value = CalamityGlobalItem.RarityPureGreenBuyPrice;
Item.rare = ModContent.RarityType<PureGreen>();
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().hasEngineDash;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.hasEngineDash = true;
modPlayer.v8000Engine = true;
modPlayer.DashID = V8000EngineDash.ID;
player.dashType = 0;
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ModContent.ItemType<V8Engine>()).
AddIngredient(ModContent.ItemType<RuinousSoul>(), 5).
AddIngredient(ItemID.Nanites, 200).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

+51
View File
@@ -0,0 +1,51 @@
using CalamityMod.CalPlayer;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.Items.Materials;
using CalamityMod.Rarities;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent.UI;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class V8Engine : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static float DashDelayModifier = 4f;
public static SoundStyle DashSound = new("CalamityMod/Sounds/Item/V8Boost");
public override void SetDefaults()
{
Item.width = 44;
Item.height = 42;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
}
public override bool CanEquipAccessory(Player player, int slot, bool modded) => !player.Calamity().hasEngineDash;
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.hasEngineDash = true;
modPlayer.v8Engine = true;
modPlayer.DashID = V8EngineDash.ID;
player.dashType = 0;
}
public override void AddRecipes()
{
CreateRecipe().
AddRecipeGroup("AnyAdamantiteBar", 5).
AddIngredient(ModContent.ItemType<UnholyCore>(), 4).
AddTile(TileID.MythrilAnvil).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+11 -7
View File
@@ -1,18 +1,22 @@
using CalamityMod.Items.BaseItems;
using Terraria;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories.Vanity
{
public class LucisSight : TransformationAccessory, ILocalizedModType
[AutoloadEquip(EquipType.Face)]
public class LucisSight : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override (EquipType, string, string)[] EquipSlots =>
[
(EquipType.Face, "LucisSight", null),
];
public override void SetStaticDefaults()
{
if (!Main.dedServ)
{
int equipSlot = EquipLoader.GetEquipSlot(Mod, Name, EquipType.Face);
ArmorIDs.Face.Sets.DrawInFaceUnderHairLayer[equipSlot] = true;
}
}
public override void SetDefaults()
{
+10 -4
View File
@@ -10,6 +10,8 @@ namespace CalamityMod.Items.Accessories
public class VoidofCalamity : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int BrimstoneFlamesDmg => CalamityUtils.ScaleWithDifficulty(15);
public override void SetDefaults()
{
Item.width = 20;
@@ -19,6 +21,7 @@ namespace CalamityMod.Items.Accessories
Item.accessory = true;
Item.expert = true;
}
int cooldown = 0;
public override void UpdateAccessory(Player player, bool hideVisual)
{
@@ -28,14 +31,17 @@ namespace CalamityMod.Items.Accessories
if (player.whoAmI == Main.myPlayer)
{
var source = player.GetSource_Accessory(Item);
if (player.immune)
if (player.HasIFrames())
{
if (player.miscCounter % 10 == 0)
if (cooldown <= 0)
{
int damage = (int)player.GetBestClassDamage().ApplyTo(30);
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
cooldown = 20;
int damage = (int)player.GetBestClassDamage().ApplyTo(BrimstoneFlamesDmg);
for (var i = 0; i < 2; i++)
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 5.5f, ModContent.ProjectileType<StandingFire>(), damage, 5f, player.whoAmI);
}
}
cooldown--;
}
}
}
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
internal class ScoriaBobber : ModItem, ILocalizedModType
[LegacyName("ScoriaBobber")]
internal class VolcanicSinker : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override string Texture => "CalamityMod/Projectiles/Typeless/RiftReelerBobber";
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Accessories
{
player.accFishingBobber = true;
player.accLavaFishing = true;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScoriaBobber;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.VolcanicSinker;
}
public override void AddRecipes()
{
+3 -3
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
{
public new string LocalizationCategory => "Items.Accessories";
internal const float MaxBonus = 0.3f;
internal const float MaxDistance = 700f;
internal const float MaxDistance = 720f;
public override void SetStaticDefaults()
{
@@ -110,8 +110,8 @@ namespace CalamityMod.Items.Accessories
NPC closestTarget = player.Center.ClosestNPCAt(MaxDistance * 7); // extra range is to account for bonus range from massive targets
if (closestTarget != null)
{
float generousHitboxWidth = Math.Max(closestTarget.Hitbox.Width / 2f, closestTarget.Hitbox.Height / 2f) + 100; // Adds some room so max bonus isnt when you're ON the hitbox
bonus = Utils.Remap(Utils.Distance(player.Center, closestTarget.Center), MaxDistance + generousHitboxWidth, generousHitboxWidth, 0, MaxBonus, true);
Vector2 pointToCheck = Vector2.Clamp(player.Center, closestTarget.TopLeft, closestTarget.BottomRight);
bonus = Utils.Remap(Utils.Distance(player.Center, pointToCheck), MaxDistance, 80, 0, MaxBonus, true);
}
else
bonus = 0;
@@ -6,7 +6,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
internal class ScrapBobber : ModItem, ILocalizedModType
[LegacyName("ScrapBobber")]
internal class WulfrumBobber : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Fishing";
public override string Texture => "CalamityMod/Projectiles/Typeless/WulfrumBobber";
@@ -21,7 +22,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.ScrapBobber;
player.Calamity().SelectedFishingMinigame = CalamityPlayer.FishingMinigames.WulfrumBobber;
}
public override void AddRecipes()
{
+1 -1
View File
@@ -62,7 +62,7 @@ namespace CalamityMod.Items.Armor.Auric
//Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type.
if (Main.LocalPlayer.Calamity().auricSet)
{
Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips);
Main.LocalPlayer.armor[0].ModItem?.ModifyTooltips(tooltips);
}
}
+1 -1
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Armor.Auric
//Alternatively, their ModifyTooltips could simply return early if the item ID doesn't match the helmet type.
if (Main.LocalPlayer.Calamity().auricSet)
{
Main.LocalPlayer.armor[0].ModItem.ModifyTooltips(tooltips);
Main.LocalPlayer.armor[0].ModItem?.ModifyTooltips(tooltips);
}
if (!toggleEnabled)
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.GemTech
Item.height = 32;
Item.defense = 31;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
Item.Calamity().donorItem = true;
}
+1 -1
View File
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.Armor.GemTech
Item.height = 32;
Item.defense = 14;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = RarityType<BurnishedAuric>();
Item.rare = RarityType<ExoticRainbow>();
Item.Calamity().donorItem = true;
}
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Armor.GemTech
Item.height = 26;
Item.defense = 24;
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
Item.Calamity().donorItem = true;
}
+7 -7
View File
@@ -12,16 +12,16 @@ namespace CalamityMod.Items.Armor.GodSlayer
{
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
public static float DamageBoost = 0.15f;
public static int CritBoost = 11;
public static float DamageBoost => 0.15f;
public static int CritBoost => 11;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), CritBoost);
// Common Set Bonus
public static int DashCooldown = CalamityUtils.SecondsToFrames(45);
public static int DashDamage = 3000;
public static float DashKnockback = 15f;
public static int DashIFrames = 12;
public static int DashGodSlayerInfernoDuration = CalamityUtils.SecondsToFrames(5);
public static int DashCooldown => CalamityUtils.SecondsToFrames(45);
public static int DashDamage => 3000;
public static float DashKnockback => 15f;
public static int DashIFrames => 12;
public static int DashGodSlayerInfernoDuration => CalamityUtils.SecondsToFrames(5);
public override void SetDefaults()
{
@@ -45,7 +45,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
modPlayer.godSlayerDamage = true;
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusHurtDamageThreshold, hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
player.aggro += SetBonusAggroBoost;
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
@@ -45,7 +45,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
modPlayer.godSlayerRanged = true;
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(ShrapnelRoundCooldown.FramesToSeconds(), hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
{
modPlayer.DeferredDashID = GodslayerArmorDash.ID;
@@ -50,7 +50,6 @@ namespace CalamityMod.Items.Armor.GodSlayer
modPlayer.wearingRogueArmor = true;
var hotkey = CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString();
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), RogueDamageBoostAtFullHealth.ToPercent(), SetBonusHurtDamageThreshold, hotkey, GodSlayerChestplate.DashCooldown.FramesToSeconds());
player.setBonus = player.setBonus.Replace("ff00ff", Utils.Hex3(DevourerofGodsHead.SpecialMoveColor));
if (modPlayer.godSlayerDashHotKeyPressed || (player.dashDelay != 0 && modPlayer.LastUsedDashID == GodslayerArmorDash.ID))
{
modPlayer.DeferredDashID = GodslayerArmorDash.ID;
+14 -7
View File
@@ -615,6 +615,17 @@ namespace CalamityMod.Items
}
}
//Mana Potion interactions
if (item.healMana > 0)
{
//If mana potion used, kill all active Crown projectiles
if ((modPlayer.moonCrown || modPlayer.featherCrown) && modPlayer.mageCrownCount > 0)
{
modPlayer.mageCrownTimer = 300;
modPlayer.mageCrownCount = 0;
}
}
// Staff/Axe of Regrowth growing Calamity grass
if (item.type == ItemID.StaffofRegrowth || item.type == ItemID.AcornAxe)
{
@@ -1142,16 +1153,12 @@ namespace CalamityMod.Items
if (modPlayer.gloveLevel < 1)
modPlayer.gloveLevel = 1;
}
if (item.type == ItemID.PowerGlove)
if (item.type == ItemID.PowerGlove || item.type == ItemID.BerserkerGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Power Glove 10%
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Power/Berserker Glove 12%
if (modPlayer.gloveLevel < 2)
modPlayer.gloveLevel = 2;
}
if (item.type == ItemID.BerserkerGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Berserker Glove 0%
}
if (item.type == ItemID.MechanicalGlove)
{
player.GetAttackSpeed<MeleeDamageClass>() -= 0.12f; // Mechanical Glove 12%
@@ -1461,7 +1468,7 @@ namespace CalamityMod.Items
return false;
}
#endregion
#endregion
#region On Create
private static int cachedForgeID = -1;
+19 -84
View File
@@ -163,6 +163,20 @@ namespace CalamityMod.Items
}
}
//Replace Crit Chance with Crit Damage on applicable tooltips
if (CalamityItemSets.ShowScalingCritDamageTooltip[item.type])
{
float cdmg = 2f + Main.LocalPlayer.Calamity().critDamage + Main.LocalPlayer.GetTotalCritChance(item.DamageType) * 0.02f;
tooltips.FirstOrDefault(x => x.Name == "CritChance")!.Text = CalamityUtils.GetText("Common.CritDamageTootip").Format(cdmg.ToPercent());
}
//Add "Uses X Minion Slots right above "Uses X Mana"
if (ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 || ContentSamples.ProjectilesByType[item.shoot].minionSlots > 0)
{
tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback") + 1, new(Mod, "Minions", CalamityUtils.GetText(ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 ? "Common.MinionSlotCost" : "Common.MinionSlotCostSingle").Format(ItemID.Sets.StaffMinionSlotsRequired[item.type])));
}
// Everything below this line can only apply to modded items. If the item is vanilla, stop here for efficiency.
if (item.type < ItemID.Count)
return;
@@ -768,11 +782,14 @@ namespace CalamityMod.Items
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
if (item.type == ItemID.PowerGlove)
{
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerGlove"));
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerBerserkerGlove"));
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
}
if (item.type == ItemID.BerserkerGlove)
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("BerserkerGlove"));
{
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("PowerBerserkerGlove"));
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("TitanGloveLine"));
}
if (item.type == ItemID.MechanicalGlove)
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("MechanicalGlove") + AddedTooltip("TitanGloveLine"));
if (item.type == ItemID.FireGauntlet)
@@ -1641,35 +1658,6 @@ namespace CalamityMod.Items
return false;
}
// IV Drip tooltip FX
if (line.Mod == "Terraria" && item.type == ModContent.ItemType<IVDripOnTheRocks>() && line.Name == "Tooltip4")
{
Vector2 basePosition = new Vector2(line.X, line.Y);
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, Main.UIScaleMatrix);
for (int i = 0; i < 3; i++) // Draw 3 lines of differing opacity, color, and displacement.
{
float timer = (float)Math.Sin(Main.GlobalTimeWrappedHourly + 1f) / 2f;
float angle = (Main.GlobalTimeWrappedHourly * 2f) + (i * MathHelper.TwoPi / 3f);
float radius = timer * (3f + i * 6f);
Vector2 offset = new Vector2((float)Math.Cos(angle) * 1.7f, (float)Math.Sin(angle) * 1f) * radius; // Offset in an elliptical pattern
Vector2 pos = basePosition + offset;
Color color = MulticolorLerp(Math.Abs(timer + (i * 0.2f)) % 1f, Color.LightBlue, Color.LightGreen, (i == 3) ? Color.Blue : (i == 2) ? Color.Red : Color.White);
float opacity = 1f - (i * 0.2f);
float rotation = line.Rotation + (timer * (Main.GlobalTimeWrappedHourly * 0.00001f)); // This precision is intended
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, pos, color * opacity, rotation, line.Origin, line.BaseScale, line.MaxWidth, line.Spread);
}
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, Main.UIScaleMatrix);
return false;
}
if (line.Mod == "Terraria" && item.type == ModContent.ItemType<OntologicalDespoiler>() && (line.Name == "Tooltip1" || line.Name == "Tooltip2" || line.Name == "Tooltip4" || line.Name == "Tooltip5" || line.Name == "Tooltip7"))
{
Color rarityColor = Color.Black;
@@ -1777,60 +1765,7 @@ namespace CalamityMod.Items
// Might be used for Miracle stuff later or something idk
/*if (line.Name == "ItemName" && line.Mod == "Terraria" && item.type == ModContent.ItemType<Orderbringer>())
{
Color rarityColor = Color.White;
Vector2 basePosition = new Vector2(line.X, line.Y);
float rate = Main.GlobalTimeWrappedHourly * 29;
List<Color> eColors = new List<Color>()
{
Color.PaleVioletRed,
Color.Coral,
Color.Khaki,
Color.PaleGreen,
Color.Turquoise,
Color.Violet
};
int colorIndex = (int)(rate / 2 % eColors.Count);
Color currentColor = eColors[colorIndex];
Color nextColor = eColors[(colorIndex + 1) % eColors.Count];
Color usedColor = Color.Lerp(currentColor, nextColor, rate % 2f > 1f ? 1f : rate % 1f);
float sine = (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3 / MathHelper.Pi);
sine = (float)Math.Pow(MathHelper.Lerp(sine, 0, 0.35f), 5);
Vector2 backScale = line.BaseScale;
Color backColor = usedColor;
Vector2 shake = Main.rand.NextVector2Circular(15, 15) * sine;
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive, null, null, null, null, Main.UIScaleMatrix);
int draws = 20;
for (int i = 0; i < draws; i++)
{
shake = Main.rand.NextVector2Circular(15, 15) * sine;
Vector2 backPosition = basePosition + (MathHelper.TwoPi * i / 20f).ToRotationVector2() * (5 + 0.5f * sine);
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, shake * 4 + backPosition, backColor, line.Rotation, line.Origin, backScale, line.MaxWidth, line.Spread);
}
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
Vector2 drawPosition = basePosition;
Color drawColor = backColor;
Vector2 rotationPoint = texture.Size() * 0.5f;
for (int i = 0; i < 6; i++)
{
int length = line.Text.Length;
Main.EntitySpriteDraw(texture, basePosition + Vector2.UnitX * length * 4 + Vector2.UnitY * 10 + Vector2.UnitX * (i % 2 == 0 ? -7 * i : 7 * i), null, drawColor, (MathHelper.PiOver2), rotationPoint, new Vector2(1 - 0.05f * i * (1 + 0.2f * -sine), 1 + 0.75f * i * (1 + 0.2f * sine) * 1f) * 0.3f * Main.rand.NextFloat(0.9f, 1f), SpriteEffects.None);
}
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, null, null, null, null, Main.UIScaleMatrix);
// Draw the front text as usual.
ChatManager.DrawColorCodedStringWithShadow(Main.spriteBatch, line.Font, line.Text, shake + basePosition, rarityColor, line.Rotation, line.Origin, line.BaseScale, line.MaxWidth, line.Spread);
return false;
}*/
return true;
}
+324 -332
View File
@@ -30,370 +30,362 @@ namespace CalamityMod.Items
IItemTweak[] trueMelee = Do(TrueMelee);
IItemTweak[] trueMeleeNoSpeed = Do(TrueMeleeNoSpeed);
IItemTweak[] nonConsumableBossSummon = Do(MaxStack(1), NotConsumable);
IItemTweak[] phaseblade = Do(UseTurn, DamageExact(36));
IItemTweak[] phasesaber = Do(DamageExact(132));
IItemTweak[] phaseblade = Do(UseTurn, DamageExact(36)); // VANILLA: 26 DMG
IItemTweak[] phasesaber = Do(DamageExact(132)); // VANILLA: 48 DMG
// SORTING NOTES:
// 1. Sort tweaks by categories first, then sort by the internal name in alphabetical order. Navigate through categories and names using the search function.
// 2. Higher categories hold priority over lower ones (ie. Balancing with price tweaks belong in balancing, rather than price)
// 3. Items with different display names as opposed to internal ones should have comments for display names for ease of access.
// 3. All balancing tweaks should have comments with the vanilla stats for convenience and reference.
// 4. Items whose internal names are vastly different from their actual names should have comments for ease of access.
currentTweaks = new SortedDictionary<int, IItemTweak[]>
{
#region CATEGORY 1: Weapon Balancing
{ ItemID.AdamantiteGlaive, Do(TrueMelee, DamageExact(69), UseExact(7), ShootSpeedExact(18f)) },
{ ItemID.AdamantiteRepeater, Do(UseExact(14)) },
{ ItemID.AdamantiteSword, Do(UseTurn, DamageExact(75), UseExact(7)) },
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) },
{ ItemID.AmethystStaff, Do(ManaExact(2)) },
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) },
{ ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade
{ ItemID.AquaScepter, Do(DamageRatio(0.9f)) }, // Uses ratios due to remix seed
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) },
{ ItemID.BatScepter, Do(DamageExact(50)) },
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) },
{ ItemID.BeeGun, Do(DamageExact(11), ManaExact(4)) },
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) },
{ ItemID.Beenade, Do(DamageExact(11), UseTimeExact(22), ShootSpeedExact(10f)) },
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(38)) },
{ ItemID.Bladetongue, Do(UseTurn, UseRatio(0.8f), DamageExact(120)) },
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) },
{ ItemID.BloodyMachete, Do(DamageExact(24)) },
{ ItemID.Blowgun, Do(DamageExact(40), ShootSpeedExact(15f)) },
{ ItemID.AdamantiteGlaive, Do(TrueMelee, DamageExact(69), UseExact(7), ShootSpeedExact(18f)) }, // VANILLA: 49 DMG, 25 UT, 5 VEL
{ ItemID.AdamantiteRepeater, Do(UseExact(14)) }, // VANILLA: 18 UT
{ ItemID.AdamantiteSword, Do(UseTurn, DamageExact(75), UseExact(7)) }, // VANILLA: 61 DMG, 21 UT
{ ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) }, // VANILLA: 28 UT/UA, 0 RUD
{ ItemID.AmethystStaff, Do(ManaExact(2)) }, // VANILLA: 5 MANA
{ ItemID.Anchor, Do(DamageExact(107), UseExact(30)) }, // VANILLA: 70 DMG, 20 UT
{ ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade. VANILLA: 18 UT
{ ItemID.AquaScepter, Do(DamageRatio(0.9f)) }, // VANILLA: 27 DMG. Uses ratios due to remix seed
{ ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) }, // VANILLA: 45 DMG, 11 UT
{ ItemID.BatScepter, Do(DamageExact(50)) }, // VANILLA: 45 DMG
{ ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) }, // VANILLA: 52 DMG, 20 UT, 6.5 KB
{ ItemID.BeeGun, Do(DamageExact(11), ManaExact(4)) }, // VANILLA: 9 DMG, 5 MANA
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) }, // VANILLA: 30 DMG
{ ItemID.Beenade, Do(UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 15 UT, 6 VEL
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(35)) }, // VANILLA: 23 DMG, 23 UT
{ ItemID.Bladetongue, Do(UseTurn, DamageExact(120), UseExact(22)) }, // VANILLA: 55 DMG, 28 UT
{ ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) }, // VANILLA: 58 DMG, 9 MANA
{ ItemID.BloodyMachete, Do(DamageExact(24)) }, // VANILLA: 20 DMG
{ ItemID.Blowgun, Do(DamageExact(40), ShootSpeedExact(15f)) }, // VANILLA: 27 DMG, 13 VEL
{ ItemID.BluePhaseblade, phaseblade },
{ ItemID.BluePhasesaber, phasesaber },
{ ItemID.BoneSword, Do(UseTurn, DamageExact(25)) },
{ ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) },
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom
{ ItemID.Boomstick, Do(DamageExact(11)) },
{ ItemID.BreakerBlade, Do(UseTurn, DamageExact(140)) },
{ ItemID.CandyCornRifle, Do(DamageExact(66)) },
{ ItemID.Cascade, Do(DamageExact(31)) },
{ ItemID.ChainGuillotines, Do(DamageExact(100)) },
{ ItemID.ChainGun, Do(DamageExact(35)) },
{ ItemID.ChainKnife, Do(DamageRatio(1.34f)) }, // Uses ratios due to remix seed
{ ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed, DamageExact(180), UseExact(45), ShootSpeedExact(22f)) },
{ ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(95)) },
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(92), UseExact(10)) },
{ ItemID.ChristmasTreeSword, Do(UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) },
{ ItemID.ClingerStaff, Do(DamageExact(63)) },
{ ItemID.ClockworkAssaultRifle, Do(DamageExact(21)) },
{ ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(55), UseExact(9), ShootSpeedExact(12f)) },
{ ItemID.CobaltRepeater, Do(UseExact(18)) },
{ ItemID.CobaltSword, Do(DamageExact(60), UseExact(9)) },
{ ItemID.Code2, Do(DamageExact(43)) },
{ ItemID.CoinGun, Do(UseExact(12)) },
{ ItemID.CorruptYoyo, Do(DamageExact(20)) }, // Malaise
{ ItemID.CrimsonYoyo, Do(DamageExact(20)) }, // Artery
{ ItemID.CrystalBullet, Do(DamageExact(6)) },
{ ItemID.CrystalDart, Do(DamageExact(20)) },
{ ItemID.CrystalStorm, Do(DamageExact(40)) },
{ ItemID.CrystalVileShard, Do(DamageExact(35)) },
{ ItemID.CursedArrow, Do(DamageExact(14)) },
{ ItemID.CursedDart, Do(DamageExact(25)) },
{ ItemID.Cutlass, Do(UseRatio(0.9f), DamageExact(90)) },
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) },
{ ItemID.DaoofPow, Do(DamageExact(85)) }, // Displays as 170 damage
{ ItemID.DarkLance, Do(TrueMelee, DamageExact(40)) },
{ ItemID.DartRifle, Do(DamageExact(58)) },
{ ItemID.DayBreak, Do(DamageExact(125), UseExact(22)) },
{ ItemID.DD2BetsyBow, Do(DamageExact(42)) }, // Aerial Bane's ridiculous multiplier is removed, so this compensates for that
{ ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed, DamageExact(150)) }, // Flying Dragon
{ ItemID.DeadlySphereStaff, Do(DamageExact(50)) },
{ ItemID.DeathSickle, Do(UseMeleeSpeed, DamageExact(65), ShootSpeedExact(15f)) },
{ ItemID.DemonBow, Do(DamageExact(12)) },
{ ItemID.DemonScythe, Do(DamageExact(28)) },
{ ItemID.DyeTradersScimitar, Do(UseTurn, DamageExact(24)) }, // Exotic Scimitar
{ ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) },
{ ItemID.EmeraldStaff, Do(DamageExact(27)) },
{ ItemID.EmpressBlade, Do(DamageExact(68)) }, // Terraprisma
{ ItemID.EnchantedBoomerang, Do(DamageExact(24)) },
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) },
{ ItemID.EndlessMusketPouch, Do(DamageExact(8)) },
{ ItemID.Excalibur, Do(TrueMelee, DamageExact(170)) },
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow
{ ItemID.FalconBlade, Do(UseTurn, UseExact(13)) },
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration
{ ItemID.Flamarang, Do(DamageExact(37)) },
{ ItemID.Flamelash, Do(DamageExact(36), ManaExact(18)) },
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) },
{ ItemID.FlowerofFire, Do(ManaExact(7), DamageRatio(0.78f)) }, // Uses ratios due to remix seed
{ ItemID.FlowerofFrost, Do(ManaExact(7), UseExact(22), DamageExact(70), ShootSpeedExact(14)) },
{ ItemID.FlyingKnife, Do(DamageExact(53)) },
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(88)) },
{ ItemID.Gatligator, Do(UseExact(6)) },
{ ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) },
{ ItemID.GolemFist, Do(DamageExact(150)) },
{ ItemID.Gradient, Do(DamageExact(39)) },
{ ItemID.BoneSword, Do(UseTurn, DamageExact(25)) }, // VANILLA: 19 DMG
{ ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) }, // VANILLA: 29 DMG, 18 MANA, 3.5 VEL
{ ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom. VANILLA: 20 MANA
{ ItemID.Boomstick, Do(DamageExact(11)) }, // VANILLA: 14 DMG
{ ItemID.BreakerBlade, Do(UseTurn, DamageExact(140)) }, // VANILLA: 70 DMG
{ ItemID.CandyCornRifle, Do(DamageExact(66)) }, // VANILLA: 44 DMG
{ ItemID.Cascade, Do(DamageExact(31)) }, // VANILLA: 27 DMG
{ ItemID.ChainGuillotines, Do(DamageExact(100)) }, // VANILLA: 59 DMG
{ ItemID.ChainGun, Do(DamageExact(35)) }, // VANILLA: 31 DMG
{ ItemID.ChainKnife, Do(DamageRatio(1.34f)) }, // VANILLA: 12 DMG. Uses ratios due to remix seed
{ ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed, DamageExact(180), UseExact(45), ShootSpeedExact(22f)) }, // VANILLA: 95 DMG, 26 UT, 8 VEL
{ ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(95)) }, // VANILLA: 49 DMG
{ ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(92), UseExact(10)) }, // VANILLA: 57 DMG, 16 UT
{ ItemID.ChristmasTreeSword, Do(UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) }, // VANILLA: 86 DMG, 23 UT
{ ItemID.ClockworkAssaultRifle, Do(DamageExact(21)) }, // VANILLA: 17 DMG
{ ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(55), UseExact(9), ShootSpeedExact(12f)) }, // VANILLA: 44 DMG, 28 UT, 4.3 VEL
{ ItemID.CobaltRepeater, Do(UseExact(18)) }, // VANILLA: 23 UT
{ ItemID.CobaltSword, Do(DamageExact(60), UseExact(9)) }, // VANILLA: 40 DMG, 19 UT
{ ItemID.Code2, Do(DamageExact(43)) }, // VANILLA: 54 DMG
{ ItemID.CoinGun, Do(UseExact(12)) }, // VANILLA: 8 UT
{ ItemID.CorruptYoyo, Do(DamageExact(20)) }, // Malaise. VANILLA: 16 DMG
{ ItemID.CrimsonYoyo, Do(DamageExact(20)) }, // Artery. VANILLA: 17 DMG
{ ItemID.CrystalBullet, Do(DamageExact(6)) }, // VANILLA: 9 DMG
{ ItemID.CrystalDart, Do(DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.CrystalStorm, Do(DamageExact(40)) }, // VANILLA: 32 DMG
{ ItemID.CrystalVileShard, Do(DamageExact(35)) }, // VANILLA: 25 DMG
{ ItemID.CursedArrow, Do(DamageExact(14)) }, // VANILLA: 17 DMG
{ ItemID.CursedDart, Do(DamageExact(25)) }, // VANILLA: 9 DMG
{ ItemID.Cutlass, Do(DamageExact(90), UseExact(14)) }, // VANILLA: 53 DMG, 16 UT
{ ItemID.DaedalusStormbow, Do(DamageExact(30)) }, // VANILLA: 38 DMG
{ ItemID.DaoofPow, Do(DamageExact(85)) }, // Displays as 170 damage. VANILLA: 50 DMG (displays as 100)
{ ItemID.DarkLance, Do(TrueMelee, DamageExact(40)) }, // VANILLA: 34 DMG
{ ItemID.DartRifle, Do(DamageExact(58)) }, // VANILLA: 52 DMG
{ ItemID.DayBreak, Do(DamageExact(125), UseExact(22)) }, // VANILLA: 150 DMG, 16 UT
{ ItemID.DD2BetsyBow, Do(DamageExact(42)) }, // VANILLA: 39 DMG. Compensation for removing aerial multiplier
{ ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed, DamageExact(150)) }, // Flying Dragon. VANILLA: 180 DMG
{ ItemID.DeadlySphereStaff, Do(DamageExact(50)) }, // VANILLA: 40 DMG
{ ItemID.DeathSickle, Do(UseMeleeSpeed, DamageExact(65), ShootSpeedExact(15f)) }, // VANILLA: 57 DMG, 9 VEL
{ ItemID.DemonBow, Do(DamageExact(12)) }, // VANILLA: 14 DMG
{ ItemID.DemonScythe, Do(DamageExact(28)) }, // VANILLA: 35 DMG
{ ItemID.DyeTradersScimitar, Do(UseTurn, DamageExact(24)) }, // Exotic Scimitar. VANILLA: 20 DMG
{ ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) }, // VANILLA: 8.5 VEL
{ ItemID.EmeraldStaff, Do(DamageExact(27)) }, // VANILLA: 19 DMG
{ ItemID.EmpressBlade, Do(DamageExact(68)) }, // Terraprisma. VANILLA: 90 DMG
{ ItemID.EnchantedBoomerang, Do(DamageExact(24)) }, // VANILLA: 17 DMG
{ ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) }, // VANILLA: 23 DMG, 9.5 VEL
{ ItemID.EndlessMusketPouch, Do(DamageExact(8)) }, // VANILLA: 7 DMG. Gives it the same damage as Tungsten Bullet
{ ItemID.Excalibur, Do(TrueMelee, DamageExact(170)) }, // VANILLA: 72 DMG
{ ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow. VANILLA: 50 DMG
{ ItemID.FalconBlade, Do(UseTurn, UseExact(13)) }, // VANILLA: 20 UT
{ ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration. VANILLA: 25 DMG, 30 UT
{ ItemID.Flamarang, Do(DamageExact(37)) }, // VANILLA: 49 DMG
{ ItemID.Flamelash, Do(DamageExact(36), ManaExact(18)) }, // VANILLA: 32 DMG, 21 MANA
{ ItemID.Flamethrower, Do(DamageExact(21), ShootSpeedDelta(+3f)) }, // VANILLA: 35 DMG, 7 VEL
{ ItemID.FlowerofFire, Do(DamageRatio(0.78f), ManaExact(7)) }, // VANILLA: 48 DMG, 12 MANA. Uses ratios due to remix seed
{ ItemID.FlowerofFrost, Do(DamageExact(70), UseExact(22), ManaExact(7), ShootSpeedExact(14)) }, // VANILLA: 60 DMG, 12 UT, 11 MANA, 9 VEL
{ ItemID.FlyingKnife, Do(DamageExact(53)) }, // VANILLA: 40 DMG
{ ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(88)) }, // VANILLA: 49 DMG
{ ItemID.Gatligator, Do(UseExact(6)) }, // VANILLA: 7 UT
{ ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) }, // VANILLA: 12 DMG
{ ItemID.GolemFist, Do(DamageExact(150)) }, // VANILLA: 90 DMG
{ ItemID.Gradient, Do(DamageExact(39)) }, // VANILLA: 49 DMG
{ ItemID.GreenPhaseblade, phaseblade },
{ ItemID.GreenPhasesaber, phasesaber },
{ ItemID.GrenadeLauncher, Do(DamageExact(105)) },
{ ItemID.Gungnir, Do(TrueMelee, DamageExact(130), ShootSpeedExact(7f)) },
{ ItemID.HallowedRepeater, Do(UseExact(12)) },
{ ItemID.Handgun, Do(UseExact(20)) },
{ ItemID.HighVelocityBullet, Do(DamageExact(13)) },
{ ItemID.HiveFive, Do(DamageExact(27)) },
{ ItemID.HornetStaff, Do(DamageExact(18)) },
{ ItemID.GrenadeLauncher, Do(DamageExact(105)) }, // VANILLA: 60 DMG
{ ItemID.Gungnir, Do(TrueMelee, DamageExact(130), ShootSpeedExact(7f)) }, // VANILLA: 61 DMG, 5.6 VEL
{ ItemID.HallowedRepeater, Do(UseExact(12)) }, // VANILLA: 17 UT
{ ItemID.Handgun, Do(UseExact(20)) }, // VANILLA: 15 UT
{ ItemID.HighVelocityBullet, Do(DamageExact(13)) }, // VANILLA: 11 DMG
{ ItemID.HiveFive, Do(DamageExact(27)) }, // VANILLA: 24 DMG
{ ItemID.HornetStaff, Do(DamageExact(18)) }, // VANILLA: 12 DMG
{ ItemID.IceBlade, Do(UseMeleeSpeed) },
{ ItemID.IceBoomerang, Do(UseExact(25), ShootSpeedExact(9)) },
{ ItemID.IceRod, Do(UseExact(6), ShootSpeedExact(20)) },
{ ItemID.IceSickle, Do(UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) },
{ ItemID.IchorArrow, Do(DamageExact(13)) },
{ ItemID.IchorBullet, Do(DamageExact(11)) },
{ ItemID.ImpStaff, Do(DamageExact(25)) },
{ ItemID.InfernoFork, Do(DamageExact(83), ShootSpeedExact(11)) },
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) },
{ ItemID.IronShortsword, Do(TrueMelee, DamageExact(10)) },
{ ItemID.IceBoomerang, Do(ShootSpeedExact(9), UseExact(25)) }, // VANILLA: 20 UT, 11.5 VEL
{ ItemID.IceRod, Do(ShootSpeedExact(20), UseExact(6)) }, // VANILLA: 9 UT, 12 VEL
{ ItemID.IceSickle, Do(UseMeleeSpeed, DamageExact(75), ShootSpeedExact(20f)) }, // VANILLA: 50 DMG, 12 VEL
{ ItemID.IchorArrow, Do(DamageExact(13)) }, // VANILLA: 16 DMG
{ ItemID.IchorBullet, Do(DamageExact(11)) }, // VANILLA: 13 DMG
{ ItemID.ImpStaff, Do(DamageExact(25)) }, // VANILLA: 17 DMG
{ ItemID.InfernoFork, Do(DamageExact(83), ShootSpeedExact(11)) }, // VANILLA: 70 DMG, 8 VEL
{ ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) }, // VANILLA: 100 DMG, 20 UT
{ ItemID.IronShortsword, Do(TrueMelee, DamageExact(10)) }, // VANILLA: 8 DMG
{ ItemID.Keybrand, Do(UseTurn) },
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // Uses ratios due to remix seed
{ ItemID.Kraken, Do(DamageExact(65)) },
{ ItemID.LaserMachinegun, Do(DamageExact(49)) },
{ ItemID.LaserRifle, Do(DamageExact(46), UseExact(10), ManaExact(4)) },
{ ItemID.LastPrism, Do(DamageExact(57), ManaExact(10)) },
{ ItemID.LeadShortsword, Do(TrueMelee, DamageExact(11)) },
{ ItemID.LeafBlower, Do(DamageExact(61)) },
{ ItemID.LightDisc, Do(DamageExact(80), ShootSpeedExact(18)) },
{ ItemID.LunarFlareBook, Do(DamageExact(110)) },
{ ItemID.MagicalHarp, Do(DamageExact(50), ShootSpeedExact(12f)) },
{ ItemID.MagicMissile, Do(DamageExact(23), ManaExact(10), UseAnimationExact(20), UseTimeExact(10)) },
{ ItemID.Marrow, Do(DamageExact(60)) },
{ ItemID.MedusaHead, Do(ManaExact(6), DamageExact(75)) },
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)) },
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) },
{ ItemID.MiniNukeI, Do(DamageExact(90)) },
{ ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // VANILLA: 40 DMG. Uses ratios due to remix seed
{ ItemID.Kraken, Do(DamageExact(65)) }, // VANILLA: 95 DMG
{ ItemID.LaserMachinegun, Do(DamageExact(49)) }, // VANILLA: 60 DMG
{ ItemID.LaserRifle, Do(DamageExact(46), UseExact(10), ManaExact(4)) }, // VANILLA: 29 DMG, 12 UT, 8 MANA
{ ItemID.LastPrism, Do(DamageExact(57), ManaExact(10)) }, // VANILLA: 100 DMG, 12 MANA
{ ItemID.LeadShortsword, Do(TrueMelee, DamageExact(11)) }, // VANILLA: 9 DMG
{ ItemID.LeafBlower, Do(DamageExact(61)) }, // VANILLA: 48 DMG
{ ItemID.LightDisc, Do(DamageExact(80), ShootSpeedExact(18)) }, // VANILLA: 60 DMG, 16 VEL
{ ItemID.LunarFlareBook, Do(DamageExact(110)) }, // VANILLA: 100 DMG
{ ItemID.MagicalHarp, Do(DamageExact(50), ShootSpeedExact(12f)) }, // VANILLA: 42 DMG, 4.5 VEL
{ ItemID.MagicMissile, Do(DamageExact(23), UseAnimationExact(20), UseTimeExact(10), ManaExact(10)) }, // VANILLA: 35 DMG, 22 UT/UA, 14 MANA
{ ItemID.Marrow, Do(DamageExact(60)) }, // VANILLA: 53 DMG
{ ItemID.MedusaHead, Do(DamageExact(75), ManaExact(6)) }, // VANILLA: 40 DMG, 15 MANA
{ ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)) }, // VANILLA: 200 DMG
{ ItemID.MeteorStaff, Do(DamageExact(58), ManaExact(7), ShootSpeedExact(13f)) }, // VANILLA: 50 DMG, 9 MANA, 10 VEL
{ ItemID.MiniNukeI, Do(DamageExact(90)) }, // VANILLA: 75 DMG
{ ItemID.MiniNukeII, Do(DamageExact(90)) },
{ ItemID.Minishark, Do(DamageExact(4)) },
{ ItemID.MoltenFury, Do(UseExact(28)) },
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
{ ItemID.MonkStaffT2, Do(TrueMelee, DamageExact(90)) }, // Ghastly Glaive
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
{ ItemID.MoonlordBullet, Do(DamageExact(17)) }, // Luminite Bullet
{ ItemID.MoonlordTurretStaff, Do(DamageExact(50)) }, // Lunar Portal Staff
{ ItemID.Muramasa, Do(CritDelta(+10)) },
{ ItemID.MushroomSpear, Do(TrueMelee, UseRatio(0.8f), DamageExact(100)) },
{ ItemID.Musket, Do(DamageExact(22)) },
{ ItemID.MythrilHalberd, Do(TrueMelee, DamageExact(65), UseExact(8), ShootSpeedExact(15f)) },
{ ItemID.MythrilRepeater, Do(UseExact(16)) },
{ ItemID.MythrilSword, Do(UseTurn, DamageExact(70), UseExact(8)) },
{ ItemID.NailGun, Do(DamageExact(77)) },
{ ItemID.NettleBurst, Do(ManaExact(10), DamageExact(65)) },
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) },
{ ItemID.Minishark, Do(DamageExact(4)) }, // VANILLA: 6 DMG
{ ItemID.MoltenFury, Do(UseExact(28)) }, // VANILLA: 22 UT
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod. VANILLA: 50 DMG
{ ItemID.MonkStaffT2, Do(TrueMelee, DamageExact(90)) }, // Ghastly Glaive. VANILLA: 45 DMG
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury. VANILLA: 140 DMG
{ ItemID.MoonlordBullet, Do(DamageExact(17)) }, // Luminite Bullet. VANILLA: 20 DMG
{ ItemID.MoonlordTurretStaff, Do(DamageExact(50)) }, // Lunar Portal Staff. VANILLA: 100 DMG
{ ItemID.Muramasa, Do(CritDelta(+10)) }, // VANILLA: 4% CRIT
{ ItemID.MushroomSpear, Do(TrueMelee, DamageExact(100), UseExact(32)) }, // VANILLA: 60 DMG, 40 UT
{ ItemID.Musket, Do(DamageExact(22)) }, // VANILLA: 31 DMG
{ ItemID.MythrilHalberd, Do(TrueMelee, DamageExact(65), UseExact(8), ShootSpeedExact(15f)) }, // VANILLA: 45 DMG, 26 UT, 4.5 VEL
{ ItemID.MythrilRepeater, Do(UseExact(16)) }, // VANILLA: 20 UT
{ ItemID.MythrilSword, Do(UseTurn, DamageExact(70), UseExact(8)) }, // VANILLA: 50 DMG, 20 UT
{ ItemID.NailGun, Do(DamageExact(77)) }, // VANILLA: 85 DMG
{ ItemID.NettleBurst, Do(DamageExact(65), ManaExact(10)) }, // VANILLA: 35 DMG, 12 MANA
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) }, // VANILLA: 40 DMG
{ ItemID.NorthPole, Do(UseMeleeSpeed) },
{ ItemID.OrangePhaseblade, phaseblade },
{ ItemID.OrangePhasesaber, phasesaber },
{ ItemID.OrichalcumHalberd, Do(TrueMelee, DamageExact(128), ShootSpeedExact(6f)) },
{ ItemID.OrichalcumRepeater, Do(DamageExact(48)) },
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) },
{ ItemID.PaladinsHammer, Do(DamageExact(95), ShootSpeedExact(28)) },
{ ItemID.PalladiumPike, Do(TrueMelee, DamageExact(120), ShootSpeedExact(5.4f)) },
{ ItemID.PalladiumRepeater, Do(DamageExact(45)) },
{ ItemID.PalladiumSword, Do(DamageExact(150)) },
{ ItemID.PearlwoodBow, Do(DamageExact(32)) },
{ ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) },
{ ItemID.PewMaticHorn, Do(DamageExact(25), ShootSpeedExact(15)) },
{ ItemID.PhoenixBlaster, Do(UseExact(20)) },
{ ItemID.PlatinumShortsword, Do(TrueMelee, DamageExact(18)) },
{ ItemID.PoisonStaff, Do(DamageExact(57)) },
{ ItemID.PossessedHatchet, Do(DamageExact(135)) },
{ ItemID.PrincessWeapon, Do(DamageExact(80)) }, // Resonance Scepter
{ ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageExact(200)) },
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) },
{ ItemID.OrichalcumHalberd, Do(TrueMelee, DamageExact(128), ShootSpeedExact(6f)) }, // VANILLA: 46 DMG, 4.5 VEL
{ ItemID.OrichalcumRepeater, Do(DamageExact(48)) }, // VANILLA: 40 DMG
{ ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) }, // VANILLA: 59 DMG
{ ItemID.PaladinsHammer, Do(DamageExact(95), ShootSpeedExact(28)) }, // VANILLA: 90 DMG, 14 VEL
{ ItemID.PalladiumPike, Do(TrueMelee, DamageExact(120), ShootSpeedExact(5.4f)) }, // VANILLA: 44 DMG, 4.4 VEL
{ ItemID.PalladiumRepeater, Do(DamageExact(45)) }, // VANILLA: 37 DMG
{ ItemID.PalladiumSword, Do(DamageExact(150)) }, // VANILLA: 49 DMG
{ ItemID.PearlwoodBow, Do(DamageExact(32)) }, // VANILLA: 12 DMG
{ ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) }, // VANILLA: 30 DMG
{ ItemID.PewMaticHorn, Do(DamageExact(25), ShootSpeedExact(15)) }, // VANILLA: 20 DMG, 14 VEL
{ ItemID.PhoenixBlaster, Do(UseExact(20)) }, // VANILLA: 14 UT
{ ItemID.PlatinumShortsword, Do(TrueMelee, DamageExact(18)) }, // VANILLA: 13 DMG
{ ItemID.PoisonStaff, Do(DamageExact(57)) }, // VANILLA: 43 DMG
{ ItemID.PossessedHatchet, Do(DamageExact(135)) }, // VANILLA: 80 DMG
{ ItemID.PrincessWeapon, Do(DamageExact(80)) }, // Resonance Scepter. VANILLA: 70 DMG
{ ItemID.PsychoKnife, Do(UseTurn, DamageExact(200), UseExact(11)) }, // VANILLA: 85 DMG, 8 UT
{ ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) }, // VANILLA: 8 KB
{ ItemID.PurplePhaseblade, phaseblade },
{ ItemID.PurplePhasesaber, phasesaber },
{ ItemID.PygmyStaff, Do(DamageExact(63)) },
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) },
{ ItemID.RainbowRod, Do(DamageExact(40), ManaExact(13), KnockbackExact(8f)) },
{ ItemID.Rally, Do(DamageExact(18)) },
{ ItemID.RavenStaff, Do(DamageExact(36)) },
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) },
{ ItemID.Razorpine, Do(DamageExact(40)) },
{ ItemID.PygmyStaff, Do(DamageExact(63)) }, // VANILLA: 40 DMG
{ ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) }, // VANILLA: 45 DMG, 20 MANA
{ ItemID.RainbowRod, Do(DamageExact(40), KnockbackExact(8f), ManaExact(13)) }, // VANILLA: 50 DMG, 6 KB, 21 MANA
{ ItemID.Rally, Do(DamageExact(18)) }, // VANILLA: 14 DMG
{ ItemID.RavenStaff, Do(DamageExact(36)) }, // VANILLA: 55 DMG
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) }, // VANILLA: 85 DMG
{ ItemID.Razorpine, Do(DamageExact(40)) }, // VANILLA: 48 DMG
{ ItemID.RedPhaseblade, phaseblade },
{ ItemID.RedPhasesaber, phasesaber },
{ ItemID.RedRyder, Do(DamageExact(24)) },
{ ItemID.RedsYoyo, Do(DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
{ ItemID.RocketLauncher, Do(DamageExact(60), ShootSpeedExact(9)) },
{ ItemID.Sandgun, Do(UseExact(20)) },
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
{ ItemID.ScourgeoftheCorruptor, Do(DamageExact(63)) },
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(45), ShootSpeedExact(16)) },
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) },
{ ItemID.ShadowFlameBow, Do(DamageExact(55)) },
{ ItemID.ShadowFlameHexDoll, Do(DamageExact(40), ShootSpeedExact(30)) },
{ ItemID.ShadowFlameKnife, Do(DamageExact(50)) },
{ ItemID.SharpTears, Do(DamageExact(49)) }, // Blood Thorn
{ ItemID.Shotgun, Do(DamageExact(36)) },
{ ItemID.Shroomerang, Do(ShootSpeedExact(11)) },
{ ItemID.SilverBullet, Do(DamageExact(8)) },
{ ItemID.SilverShortsword, Do(TrueMelee, DamageExact(14)) },
{ ItemID.SkyFracture, Do(DamageExact(46)) },
{ ItemID.SlapHand, Do(UseTurn, DamageExact(120)) },
{ ItemID.Smolstar, Do(DamageExact(9)) }, // Blade Staff
{ ItemID.SniperRifle, Do(DamageExact(200), UseExact(40)) },
{ ItemID.SolarEruption, Do(DamageExact(122)) },
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain
{ ItemID.SpaceGun, Do(DamageExact(23)) },
{ ItemID.Spear, Do(TrueMelee, DamageExact(14)) },
{ ItemID.SpectreStaff, Do(DamageExact(72)) },
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) },
{ ItemID.StaffofEarth, Do(DamageExact(150)) },
{ ItemID.StarCannon, Do(UseExact(18)) },
{ ItemID.StardustDragonStaff, Do(DamageExact(20)) },
{ ItemID.StormTigerStaff, Do(DamageExact(49)) }, // Desert Tiger Staff
{ ItemID.StylistKilLaKillScissorsIWish, Do(UseTurn, DamageExact(21)) }, // Stylish Scissors
{ ItemID.Stynger, Do(DamageExact(75)) },
{ ItemID.SuperStarCannon, Do(DamageExact(55)) },
{ ItemID.Swordfish, Do(TrueMelee, DamageExact(24)) },
{ ItemID.TacticalShotgun, Do(DamageExact(34)) },
{ ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, UseRatio(0.8f), DamageExact(70)) }, // Classy Cane
{ ItemID.TendonBow, Do(DamageExact(17)) },
{ ItemID.TerraBlade, Do(DamageExact(95)) },
{ ItemID.Terragrim, Do(TrueMeleeNoSpeed, DamageExact(13)) },
// Vanilla damage 190. After fixing iframes so yoyo and shots can hit simultaneously,
// Terrarian is extremely overpowered and requires a heavy nerf.
{ ItemID.Terrarian, Do(DamageExact(90)) },
{ ItemID.TheEyeOfCthulhu, Do(DamageExact(80)) },
{ ItemID.TheMeatball, Do(DamageExact(24)) },
{ ItemID.TheRottedFork, Do(TrueMelee, DamageExact(20)) },
{ ItemID.TheUndertaker, Do(DamageExact(15)) },
{ ItemID.RedRyder, Do(DamageExact(24)) }, // VANILLA: 20 DMG
{ ItemID.RedsYoyo, Do(DamageExact(48)) }, // VANILLA: 70 DMG. Has the same stats as Valkyrie Yoyo
{ ItemID.RocketLauncher, Do(DamageExact(60), ShootSpeedExact(9)) }, // VANILLA: 55 DMG, 5 VEL
{ ItemID.Sandgun, Do(UseExact(20)) }, // VANILLA: 16 UT
{ ItemID.SapphireStaff, Do(DamageExact(25)) }, // VANILLA: 18 DMG
{ ItemID.ScourgeoftheCorruptor, Do(DamageExact(63)) }, // VANILLA: 70 DMG
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(45), ShootSpeedExact(16)) }, // VANILLA: 50 DMG, 12 VEL
{ 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.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
{ ItemID.SilverShortsword, Do(TrueMelee, DamageExact(14)) }, // VANILLA: 9 DMG
{ ItemID.SkyFracture, Do(DamageExact(46)) }, // VANILLA: 38 DMG
{ ItemID.SlapHand, Do(UseTurn, DamageExact(120)) }, // VANILLA: 55 DMG
{ ItemID.Smolstar, Do(DamageExact(9)) }, // Blade Staff. VANILLA: 6 DMG
{ ItemID.SniperRifle, Do(DamageExact(200), UseExact(40)) }, // VANILLA: 185 DMG, 36 UT
{ ItemID.SoulDrain, Do(DamageExact(38)) }, // Life Drain. VANILLA: 35 DMG
{ ItemID.SpaceGun, Do(DamageExact(23)) }, // VANILLA: 17 DMG
{ ItemID.Spear, Do(TrueMelee, DamageExact(14)) }, // VANILLA: 8 DMG
{ ItemID.SpectreStaff, Do(DamageExact(72)) }, // VANILLA: 65 DMG
{ ItemID.SpiritFlame, Do(UseExact(20), ManaExact(11), ShootSpeedExact(2f)) }, // VANILLA: 22 UT, 14 MANA, 3 VEL
{ ItemID.StaffofEarth, Do(DamageExact(150)) }, // VANILLA: 125 DMG
{ ItemID.StarCannon, Do(UseExact(18)) }, // VANILLA: 12 UT
{ ItemID.StardustDragonStaff, Do(DamageExact(20)) }, // VANILLA: 40 DMG
{ ItemID.StormTigerStaff, Do(DamageExact(49)) }, // Desert Tiger Staff. VANILLA: 41 DMG
{ ItemID.StylistKilLaKillScissorsIWish, Do(UseTurn, DamageExact(21)) }, // Stylish Scissors. VANILLA: 14 DMG
{ ItemID.Stynger, Do(DamageExact(75)) }, // VANILLA: 45 DMG
{ ItemID.SuperStarCannon, Do(DamageExact(55)) }, // VANILLA: 60 DMG
{ ItemID.Swordfish, Do(TrueMelee, DamageExact(24)) }, // VANILLA: 19 DMG
{ ItemID.TacticalShotgun, Do(DamageExact(34)) }, // VANILLA: 29 DMG
{ ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, DamageExact(70), UseExact(12)) }, // Classy Cane. VANILLA: 16 DMG, 15 UT
{ ItemID.TendonBow, Do(DamageExact(17)) }, // VANILLA: 19 DMG
{ ItemID.TerraBlade, Do(DamageExact(95)) }, // 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
{ ItemID.TheMeatball, Do(DamageExact(24)) }, // Displays as 48 damage. VANILLA: 17 DMG (displays as 34)
{ ItemID.TheRottedFork, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 17 DMG
{ ItemID.TheUndertaker, Do(DamageExact(15)) }, // VANILLA: 19 DMG
{ ItemID.ThunderSpear, Do(UseMeleeSpeed) }, // Storm Spear
{ ItemID.ThunderStaff, Do(DamageExact(18)) }, //Thunder Zapper
{ ItemID.TitaniumRepeater, Do(DamageExact(52)) },
{ ItemID.TitaniumSword, Do(UseTurn, DamageExact(192)) },
{ ItemID.TitaniumTrident, Do(TrueMelee, DamageExact(144), ShootSpeedExact(6.5f)) },
{ ItemID.TopazStaff, Do(ManaExact(2)) },
{ ItemID.ToxicFlask, Do(DamageExact(62), UseExact(33), ManaExact(20)) },
{ ItemID.Toxikarp, Do(UseExact(9)) },
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) },
{ ItemID.Trimarang, Do(DamageExact(24)) },
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) },
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) },
{ ItemID.Tsunami, Do(DamageExact(45)) },
{ ItemID.TungstenBullet, Do(DamageExact(8)) },
{ ItemID.TungstenShortsword, Do(TrueMelee, DamageExact(15)) },
{ ItemID.UnholyArrow, Do(DamageExact(11)) },
{ ItemID.UnholyTrident, Do(ManaRatio(0.78f), DamageRatio(0.91f)) }, // Uses ratios due to remix seed
{ ItemID.Uzi, Do(UseExact(8)) },
{ ItemID.VampireKnives, Do(DamageExact(38)) },
{ ItemID.ValkyrieYoyo, Do(DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats
{ ItemID.VenomStaff, Do(UseExact(27)) },
{ ItemID.WaspGun, Do(DamageExact(44)) },
{ ItemID.WaterBolt, Do(DamageExact(23)) },
{ ItemID.ThunderStaff, Do(DamageExact(18)) }, // Thunder Zapper. VANILLA: 20 DMG
{ ItemID.TitaniumRepeater, Do(DamageExact(52)) }, // VANILLA: 43 DMG
{ ItemID.TitaniumSword, Do(UseTurn, DamageExact(192)) }, // VANILLA: 61 DMG
{ ItemID.TitaniumTrident, Do(TrueMelee, DamageExact(144), ShootSpeedExact(6.5f)) }, // VANILLA: 48 DMG, 5 VEL
{ ItemID.TopazStaff, Do(ManaExact(2)) }, // VANILLA: 5 MANA
{ ItemID.ToxicFlask, Do(DamageExact(62), UseExact(33), ManaExact(20)) }, // VANILLA: 52 DMG, 45 UT, 30 MANA
{ ItemID.Toxikarp, Do(UseExact(9)) }, // VANILLA: 10 UT
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.Trimarang, Do(DamageExact(24)) }, // VANILLA: 21 DMG
{ ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) }, // VANILLA: 72 DMG
{ ItemID.TrueNightsEdge, Do(DamageExact(105)) }, // 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
{ ItemID.UnholyArrow, Do(DamageExact(11)) }, // VANILLA: 12 DMG
{ ItemID.UnholyTrident, Do(DamageRatio(0.91f), ManaRatio(0.78f)) }, // VANILLA: 88 DMG, 19 MANA. Uses ratios due to remix seed
{ ItemID.Uzi, Do(UseExact(8)) }, // VANILLA: 9 UT
{ ItemID.ValkyrieYoyo, Do(DamageExact(48)) }, // VANILLA: 70 DMG. Has the same stats as Red's Throw
{ ItemID.VenomStaff, Do(UseExact(27)) }, // VANILLA: 30 UT
{ ItemID.WaspGun, Do(DamageExact(41)) }, // VANILLA: 31 DMG
{ ItemID.WaterBolt, Do(DamageExact(23)) }, // VANILLA: 19 DMG
{ ItemID.WhitePhaseblade, phaseblade },
{ ItemID.WhitePhasesaber, phasesaber },
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) },
{ ItemID.Yelets, Do(DamageExact(53)) },
{ ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) }, // VANILLA: 10 DMG
{ ItemID.Yelets, Do(DamageExact(53)) }, // VANILLA: 60 DMG
{ ItemID.YellowPhaseblade, phaseblade },
{ ItemID.YellowPhasesaber, phasesaber },
{ ItemID.Zenith, Do(DamageExact(210)) },
{ ItemID.ZombieArm, Do(UseTurn, KnockbackExact(12f)) },
{ ItemID.Zenith, Do(DamageExact(210)) }, // VANILLA: 190 DMG
{ ItemID.ZombieArm, Do(UseTurn, KnockbackExact(12f)) }, // VANILLA: 5.5 KB
#endregion
#region CATEGORY 2: Defense Balancing
{ ItemID.LavaSkull, Do(DefenseExact(1)) }, // Magma Skull
{ ItemID.MoltenCharm, Do(DefenseExact(1)) }, //Magma Charm
{ ItemID.MoltenSkullRose, Do(DefenseExact(3)) },
{ ItemID.ObsidianSkullRose, Do(DefenseExact(1)) },
{ ItemID.SquireAltHead, Do(DefenseDelta(-2)) }, // Valhalla Knight set
{ ItemID.SquireAltPants, Do(DefenseDelta(-3)) },
{ ItemID.SquireAltShirt, Do(DefenseDelta(-3)) },
{ ItemID.SquireGreatHelm, Do(DefenseDelta(-1)) },
{ ItemID.SquireGreaves, Do(DefenseDelta(-2)) },
{ ItemID.SquirePlating, Do(DefenseDelta(-4)) },
// Valhalla Knight armor
{ ItemID.SquireAltHead, Do(DefenseDelta(-2)) }, // VANILLA: 20 DEF
{ ItemID.SquireAltPants, Do(DefenseDelta(-3)) }, // VANILLA: 24 DEF
{ ItemID.SquireAltShirt, Do(DefenseDelta(-3)) }, // VANILLA: 24 DEF
{ ItemID.SquireGreatHelm, Do(DefenseDelta(-1)) }, // VANILLA: 13 DEF
{ ItemID.SquireGreaves, Do(DefenseDelta(-2)) }, // VANILLA: 18 DEF
{ ItemID.SquirePlating, Do(DefenseDelta(-4)) }, // VANILLA: 27 DEF
#endregion
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, TileBoostExact(+1), DamageExact(32)) },
{ ItemID.AdamantitePickaxe, Do(TileBoostExact(+1)) },
{ ItemID.AdamantiteWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.BloodLustCluster, Do(AxePower(100), UseTimeExact(13)) },
{ ItemID.BonePickaxe, Do(UseTimeExact(6)) },
{ ItemID.BorealWoodHammer, Do(HammerPower(25), UseTimeExact(11)) },
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+0)) },
{ ItemID.CactusPickaxe, Do(UseTimeExact(9)) },
{ ItemID.CnadyCanePickaxe, Do(UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, AxePower(120), UseTimeExact(3), DamageExact(112)) },
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, TileBoostExact(+2), DamageExact(43)) },
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), TileBoostExact(+2)) },
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, UseTimeExact(5)) },
{ ItemID.ChlorophytePickaxe, Do(TileBoostExact(+2)) },
{ ItemID.ChlorophyteWarhammer, Do(UseTimeExact(8), TileBoostExact(+2)) },
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, UseTimeExact(4), DamageExact(51)) },
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, PickPower(130), UseTimeExact(5), DamageExact(21)) },
{ ItemID.CobaltPickaxe, Do(PickPower(130), UseTimeExact(9)) },
{ ItemID.CobaltWaraxe, Do(AxePower(125), UseTimeExact(12)) },
{ ItemID.CopperAxe, Do(AxePower(50), UseTimeExact(16), TileBoostExact(+0)) },
{ ItemID.CopperHammer, Do(UseTimeExact(12), TileBoostExact(+0)) },
{ ItemID.CopperPickaxe, Do(UseTimeExact(10), TileBoostExact(+0)) },
{ ItemID.DeathbringerPickaxe, Do(UseTimeExact(10)) },
{ ItemID.Drax, Do(TrueMeleeNoSpeed, TileBoostExact(+1), DamageExact(80)) },
{ ItemID.EbonwoodHammer, Do(HammerPower(25), UseTimeExact(9)) },
{ ItemID.FleshGrinder, Do(HammerPower(70), UseTimeExact(13)) },
{ ItemID.GoldAxe, Do(AxePower(80), UseTimeExact(14)) },
{ ItemID.GoldHammer, Do(HammerPower(60), UseTimeExact(9)) },
{ ItemID.GoldPickaxe, Do(UseTimeExact(9)) },
{ ItemID.Hammush, Do(UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.IronAxe, Do(AxePower(60), UseTimeExact(15)) },
{ ItemID.IronHammer, Do(HammerPower(45), UseTimeExact(11)) },
{ ItemID.IronPickaxe, Do(UseTimeExact(8)) },
{ ItemID.LaserDrill, Do(PickPower(220), AxePower(120), UseTimeExact(4), DamageExact(54)) },
{ ItemID.LeadAxe, Do(AxePower(60), UseTimeExact(15)) },
{ ItemID.LeadHammer, Do(HammerPower(45), UseTimeExact(11)) },
{ ItemID.LeadPickaxe, Do(PickPower(40), UseTimeExact(8)) },
{ ItemID.LucyTheAxe, Do(UseExact(13), TileBoostExact(+1)) },
{ ItemID.LunarHamaxeNebula, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeSolar, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeStardust, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.LunarHamaxeVortex, Do(AxePower(175), UseTimeExact(5)) },
{ ItemID.MeteorHamaxe, Do(HammerPower(70)) },
{ ItemID.MoltenHamaxe, Do(HammerPower(75), AxePower(125)) },
{ ItemID.MoltenPickaxe, Do(UseTimeExact(10)) },
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), DamageExact(63)) },
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.MythrilPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.MythrilWaraxe, Do(AxePower(140), UseTimeExact(11)) },
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) },
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, AxePower(80), UseTimeExact(4), DamageExact(63)) },
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, PickPower(160), UseTimeExact(4), DamageExact(26)) },
{ ItemID.OrichalcumPickaxe, Do(PickPower(160), UseTimeExact(8)) },
{ ItemID.OrichalcumWaraxe, Do(AxePower(140), UseTimeExact(11)) },
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, AxePower(70), UseTimeExact(4), DamageExact(51)) },
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, UseTimeExact(5), DamageExact(21)) },
{ ItemID.PalladiumPickaxe, Do(UseTimeExact(9)) },
{ ItemID.PalladiumWaraxe, Do(AxePower(125)) },
{ ItemID.PalmWoodHammer, Do(HammerPower(25), UseTimeExact(11)) },
{ ItemID.PearlwoodHammer, Do(HammerPower(25), UseTimeExact(4), UseAnimationExact(20), DamageExact(36)) },
{ ItemID.PickaxeAxe, Do(TileBoostExact(+1)) },
{ ItemID.PlatinumAxe, Do(AxePower(80), UseTimeExact(14)) },
{ ItemID.PlatinumHammer, Do(HammerPower(60), UseTimeExact(9)) },
{ ItemID.PlatinumPickaxe, Do(PickPower(55), UseTimeExact(9)) },
{ ItemID.Pwnhammer, Do(UseTimeExact(11), TileBoostExact(+1)) },
{ ItemID.RichMahoganyHammer, Do(HammerPower(25), UseTimeExact(10)) },
{ ItemID.Rockfish, Do(HammerPower(50), UseTimeExact(10)) },
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45)) },
{ ItemID.ShadewoodHammer, Do(HammerPower(25), UseTimeExact(9)) },
{ ItemID.SilverAxe, Do(AxePower(70), UseTimeExact(14)) },
{ ItemID.SilverHammer, Do(HammerPower(55), UseTimeExact(10)) },
{ ItemID.SilverPickaxe, Do(PickPower(50)) },
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.SpectreHamaxe, Do(AxePower(170), TileBoostExact(+4)) },
{ ItemID.SpectrePickaxe, Do(TileBoostExact(+4)) },
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.TheBreaker, Do(HammerPower(70), UseTimeExact(13)) },
{ ItemID.TinAxe, Do(AxePower(50), UseTimeExact(16)) },
{ ItemID.TinHammer, Do(HammerPower(35), UseTimeExact(12)) },
{ ItemID.TinPickaxe, Do(UseTimeExact(10)) },
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, AxePower(90), TileBoostExact(+0), DamageExact(75)) },
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, PickPower(180), TileBoostExact(+1), DamageExact(32)) },
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) },
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) },
{ ItemID.TungstenAxe, Do(AxePower(70), UseTimeExact(14)) },
{ ItemID.TungstenHammer, Do(HammerPower(55), UseTimeExact(10)) },
{ ItemID.TungstenPickaxe, Do(UseTimeExact(11)) },
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, UseTimeExact(3), TileBoostExact(+4), DamageExact(95)) },
{ ItemID.WarAxeoftheNight, Do(AxePower(100), UseTimeExact(13)) },
{ ItemID.WoodenHammer, Do(UseTimeExact(11), TileBoostExact(+0)) },
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth. VANILLA: 150% AXE
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, DamageExact(58), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 33 DMG, 100 AXE, -1 TILE
{ 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.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
{ ItemID.ButchersChainsaw, Do(TrueMeleeNoSpeed, DamageExact(100), UseTimeExact(3), TileBoostExact(+0)) }, // VANILLA: 4 SPD, -1 TILE
{ ItemID.CactusPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 16 SPD
{ ItemID.CnadyCanePickaxe, Do(UseTimeExact(9), TileBoostExact(+1)) }, // Candy Cane Pickaxe. VANILLA: 16 SPD
{ ItemID.ChlorophyteChainsaw, Do(TrueMeleeNoSpeed, DamageExact(88), UseTimeExact(3), AxePower(120), TileBoostExact(+1)) }, // VANILLA: 50 DMG, 4 SPD, 115 AXE, 0 TILE
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, DamageExact(45), TileBoostExact(+1)) }, // VANILLA: 35 DMG, 0 TILE
{ ItemID.ChlorophyteGreataxe, Do(AxePower(165), TileBoostExact(+2)) }, // VANILLA: 115 AXE, +1 TILE
{ ItemID.ChlorophyteJackhammer, Do(TrueMeleeNoSpeed, DamageExact(58), UseTimeExact(5), TileBoostExact(+1)) }, // VANILLA: 45 DMG, 4 SPD, 0 TILE
{ ItemID.ChlorophytePickaxe, Do(TileBoostExact(+2)) }, // VANILLA: +1 TILE
{ ItemID.ChlorophyteWarhammer, Do(UseTimeExact(8), TileBoostExact(+2)) }, // VANILLA: 14 SPD, +1 TILE
{ ItemID.CobaltChainsaw, Do(TrueMeleeNoSpeed, DamageExact(42), UseTimeExact(4)) }, // VANILLA: 23 DMG, 7 SPD
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, DamageExact(13), UseTimeExact(5), PickPower(130)) }, // VANILLA: 10 DMG, 7 SPD, 110 PICK
{ ItemID.CobaltPickaxe, Do(UseTimeExact(9), PickPower(130)) }, // VANILLA: 13 SPD, 110 PICK
{ ItemID.CobaltWaraxe, Do(UseTimeExact(12), AxePower(125)) }, // VANILLA: 13 SPD, 70 AXE
{ ItemID.CopperAxe, Do(UseTimeExact(16), AxePower(50), TileBoostExact(+0)) }, // VANILLA: 21 SPD, 35 AXE, -1 TILE
{ ItemID.CopperHammer, Do(UseTimeExact(12), TileBoostExact(+0)) }, // VANILLA: 23 SPD, -1 TILE
{ ItemID.CopperPickaxe, Do(UseTimeExact(10), TileBoostExact(+0)) }, // VANILLA: 15 SPD, -1 TILE
{ ItemID.DeathbringerPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 14 SPD
{ ItemID.Drax, Do(TrueMeleeNoSpeed, DamageExact(62), TileBoostExact(+0)) }, // VANILLA: 35 DMG, -1 TILE
{ ItemID.EbonwoodHammer, Do(UseTimeExact(9), HammerPower(25)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.FleshGrinder, Do(UseTimeExact(13), HammerPower(70)) }, // VANILLA: 19 SPD, 55 HAM
{ ItemID.GoldAxe, Do(UseTimeExact(14), AxePower(80)) }, // VANILLA: 18 SPD, 55 AXE
{ ItemID.GoldHammer, Do(UseTimeExact(9), HammerPower(60)) }, // VANILLA: 23 SPD, 55 HAM
{ ItemID.GoldPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 17 SPD
{ ItemID.Hammush, Do(UseTimeExact(10), TileBoostExact(+1)) }, // VANILLA: 14 SPD, 0 TILE
{ ItemID.IronAxe, Do(UseTimeExact(15), AxePower(60)) }, // VANILLA: 19 SPD, 45 AXE
{ ItemID.IronHammer, Do(UseTimeExact(11), HammerPower(45)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.IronPickaxe, Do(UseTimeExact(8)) }, // VANILLA: 13 SPD
{ ItemID.LaserDrill, Do(DamageExact(50), UseTimeExact(4), PickPower(220)) }, // VANILLA: 35 DMG, 6 SPD, 230 PICK
{ ItemID.LeadAxe, Do(UseTimeExact(15), AxePower(60)) }, // VANILLA: 19 SPD, 50 AXE
{ ItemID.LeadHammer, Do(UseTimeExact(11), HammerPower(45)) }, // VANILLA: 19 SPD, 43 HAM
{ ItemID.LeadPickaxe, Do(UseTimeExact(8), PickPower(40)) }, // VANILLA: 12 SPD, 43 PICK
{ ItemID.LucyTheAxe, Do(UseExact(13), TileBoostExact(+1)) }, // VANILLA: 15 SPD/UT, 0 TILE
{ ItemID.LunarHamaxeNebula, Do(UseTimeExact(5), AxePower(175)) }, // VANILLA: 7 SPD, 150 AXE
{ ItemID.LunarHamaxeSolar, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.LunarHamaxeStardust, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.LunarHamaxeVortex, Do(UseTimeExact(5), AxePower(175)) },
{ ItemID.MeteorHamaxe, Do(HammerPower(70)) }, // VANILLA: 60 HAM
{ ItemID.MoltenHamaxe, Do(AxePower(125), HammerPower(75)) }, // VANILLA: 150 AXE, 70 HAM
{ ItemID.MoltenPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 18 SPD
{ ItemID.MythrilChainsaw, Do(TrueMeleeNoSpeed, DamageExact(52), UseTimeExact(4), AxePower(80)) }, // VANILLA: 29 DMG, 6 SPD, 85 AXE
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, DamageExact(20), UseTimeExact(4), PickPower(160)) }, // VANILLA: 15 DMG, 6 SPD, 150 PICK
{ ItemID.MythrilPickaxe, Do(UseTimeExact(8), PickPower(160)) }, // VANILLA: 10 SPD, 150 PICK
{ ItemID.MythrilWaraxe, Do(UseTimeExact(11), AxePower(140)) }, // VANILLA: 10 SPD, 85 AXE
{ ItemID.NebulaDrill, Do(TrueMeleeNoSpeed, DamageExact(70), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.NightmarePickaxe, Do(UseTimeExact(9), PickPower(66)) }, // VANILLA: 15 SPD, 65 PICK
{ ItemID.OrichalcumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(54), UseTimeExact(4), AxePower(80)) }, // VANILLA: 31 DMG, 5 SPD, 90 AXE
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, DamageExact(22), UseTimeExact(4), PickPower(160)) }, // VANILLA: 17 DMG, 5 SPD, 165 PICK
{ ItemID.OrichalcumPickaxe, Do(UseTimeExact(8), PickPower(160)) }, // VANILLA: 9 SPD, 165 PICK
{ ItemID.OrichalcumWaraxe, Do(UseTimeExact(11), AxePower(140)) }, // VANILLA: 9 SPD, 90 AXE
{ ItemID.PalladiumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(44), UseTimeExact(4), AxePower(70)) }, // VANILLA: 26 DMG, 7 SPD, 75 AXE
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, DamageExact(15), UseTimeExact(5)) }, // VANILLA: 12 DMG, 7 SPD
{ ItemID.PalladiumPickaxe, Do(UseTimeExact(9)) }, // VANILLA: 12 SPD
{ ItemID.PalladiumWaraxe, Do(AxePower(125)) }, // VANILLA: 75 AXE
{ ItemID.PalmWoodHammer, Do(UseTimeExact(11), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
{ ItemID.PearlwoodHammer, Do(DamageExact(36), UseTimeExact(4), UseAnimationExact(20), HammerPower(25)) }, // VANILLA: 10 DMG, 19 SPD/UT, 55 HAM
{ ItemID.PickaxeAxe, Do(TileBoostExact(+1)) }, // VANILLA: 0 TILE
{ ItemID.PlatinumAxe, Do(UseTimeExact(14), AxePower(80)) }, // VANILLA: 17 SPD, 60 AXE
{ ItemID.PlatinumHammer, Do(UseTimeExact(9), HammerPower(60)) }, // VANILLA: 21 SPD, 59 HAM
{ ItemID.PlatinumPickaxe, Do(UseTimeExact(9), PickPower(55)) }, // VANILLA: 15 SPD, 59 PICK
{ ItemID.Pwnhammer, Do(UseTimeExact(11), TileBoostExact(+1)) }, // VANILLA: 14 SPD, 0 TILE
{ ItemID.RichMahoganyHammer, Do(UseTimeExact(10), HammerPower(25)) }, // VANILLA: 23 SPD, 35 HAM
{ ItemID.Rockfish, Do(UseTimeExact(10), HammerPower(50)) }, // VANILLA: 14 SPD, 70 HAM
{ ItemID.SawtoothShark, Do(TrueMeleeNoSpeed, AxePower(45)) }, // VANILLA: 70 AXE
{ ItemID.ShadewoodHammer, Do(UseTimeExact(9), HammerPower(25)) }, // VANILLA: 20 SPD, 40 HAM
{ ItemID.SilverAxe, Do(UseTimeExact(14), AxePower(70)) }, // VANILLA: 18 SPD, 50 AXE
{ ItemID.SilverHammer, Do(UseTimeExact(10), HammerPower(55)) }, // VANILLA: 19 SPD, 45 HAM
{ ItemID.SilverPickaxe, Do(PickPower(50)) }, // VANILLA: 45 PICK
{ ItemID.SolarFlareDrill, Do(TrueMeleeNoSpeed, DamageExact(70), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.SpectreHamaxe, Do(AxePower(170), TileBoostExact(+4)) }, // VANILLA: 150 AXE, +3 TILE
{ ItemID.SpectrePickaxe, Do(TileBoostExact(+4)) }, // VANILLA: +3 TILE
{ ItemID.StardustDrill, Do(TrueMeleeNoSpeed, DamageExact(70), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.TheBreaker, Do(UseTimeExact(13), HammerPower(70)) }, // VANILLA: 19 SPD, 55 HAM
{ ItemID.TinAxe, Do(UseTimeExact(16), AxePower(50)) }, // VANILLA: 20 SPD, 40 AXE
{ ItemID.TinHammer, Do(UseTimeExact(12), HammerPower(35)) }, // VANILLA: 21 SPD, 38 HAM
{ ItemID.TinPickaxe, Do(UseTimeExact(10)) }, // VANILLA: 14 SPD
{ ItemID.TitaniumChainsaw, Do(TrueMeleeNoSpeed, DamageExact(60), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 34 DMG, 105 AXE, -1 TILE
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, DamageExact(35), PickPower(180), TileBoostExact(+0)) }, // VANILLA: 27 DMG, 190 PICK, -1 TILE
{ ItemID.TitaniumPickaxe, Do(PickPower(180), UseTimeExact(8), TileBoostExact(+1)) }, // VANILLA: 7 SPD, 190 PICK, 0 TILE
{ ItemID.TitaniumWaraxe, Do(AxePower(160), UseTimeExact(10), TileBoostExact(+1)) }, // VANILLA: 7 SPD, 105 AXE, 0 TILE
{ ItemID.TungstenAxe, Do(UseTimeExact(14), AxePower(70)) }, // VANILLA: 18 SPD, 55 AXE
{ ItemID.TungstenHammer, Do(UseTimeExact(10), HammerPower(55)) }, // VANILLA: 25 SPD, 50 HAM
{ ItemID.TungstenPickaxe, Do(UseTimeExact(11)) }, // VANILLA: 19 SPD
{ ItemID.VortexDrill, Do(TrueMeleeNoSpeed, DamageExact(70), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ ItemID.WarAxeoftheNight, Do(UseTimeExact(13), AxePower(100)) }, // VANILLA: 15 SPD, 75 AXE
{ ItemID.WoodenHammer, Do(UseTimeExact(11), TileBoostExact(+0)) }, // VANILLA: 25 SPD, -1 TILE
#endregion
#region CATEGORY 4: True Melee support
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Dyes
public override void SafeSetDefaults()
{
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<CalamityRed>();
Item.value = Item.sellPrice(gold: 2, silver: 50);
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Dyes
public override void SafeSetDefaults()
{
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
Item.value = Item.sellPrice(gold: 2, silver: 50);
}
+1 -2
View File
@@ -22,8 +22,7 @@ namespace CalamityMod.Items.Fishing.FishingRods
{
Item.width = 24;
Item.height = 28;
Item.useAnimation = 8;
Item.useTime = 8;
Item.useAnimation = Item.useTime = 8;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item1;
Item.fishingPole = 45;
+1 -1
View File
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Materials
Item.height = 56;
Item.maxStack = Item.CommonMaxStack;
Item.value = Item.sellPrice(gold: 6, silver: 66, copper: 66);
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<CalamityRed>();
}
public void DrawPulsingAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float baseScale)
{
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Materials
Item.height = 52;
Item.maxStack = Item.CommonMaxStack;
Item.value = Item.sellPrice(gold: 7);
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
}
public void DrawBackAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, float baseScale)
{
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Materials
Item.height = 80;
Item.maxStack = Item.CommonMaxStack;
Item.value = Item.sellPrice(platinum: 1);
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
}
public void DrawBackAfterimage(SpriteBatch spriteBatch, Vector2 baseDrawPosition, Rectangle frame, Vector2 origin, float baseScale)
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Pets
{
Item.DefaultToVanitypet(ModContent.ProjectileType<SCalPet>(), ModContent.BuffType<ClassicSCalPetBuff>());
Item.value = Item.sellPrice(gold: 20);
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<CalamityRed>();
Item.Calamity().donorItem = true;
}
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
{
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CraftingStations.DraedonsForge>());
Item.value = Item.sellPrice(platinum: 4);
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<ExoticRainbow>();
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
@@ -22,10 +22,14 @@ namespace CalamityMod.Items.Placeables.FurnitureDriftwood
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<Walls.DriftwoodWall>(4).
AddTile(TileID.WorkBenches).
DisableDecraft().
Register();
AddIngredient<DriftwoodPlatform>(2).
DisableDecraft().
Register();
CreateRecipe().
AddIngredient<Walls.DriftwoodWall>(4).
AddTile(TileID.WorkBenches).
DisableDecraft().
Register();
}
}
}
+6 -3
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.Alcohol;
using System;
using CalamityMod.Items.Materials;
using Microsoft.Xna.Framework;
using Terraria;
@@ -11,9 +12,11 @@ namespace CalamityMod.Items.Potions.Alcohol
public class GrapeBeer : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Potions";
public static float CritLoss = 50;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritLoss);
public static float CloseRangeDistance = 80;
public static float LongRangeDistance = 1200;
public static float CloseRangeDamage = 0.75f;
public static float LongRangeDamage = 0.25f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(LongRangeDamage,LongRangeDistance/16f);
public override void SetStaticDefaults()
{
Loaded 100 of 346 files, more files were not shown because too many files have changed in this diff. Show more