Merge branch '1.4.4' into iv-drip-additions

This commit is contained in:
Nathanael Overton committed 2026-04-20 03:36:25 -04:00
commit 7bbdf17fca
341 files changed
+2571 -1595

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)
-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,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)
+17
View File
@@ -0,0 +1,17 @@
using CalamityMod.Projectiles.Pets;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.Pets
{
public class StarSwallowerPetBuff : ModBuff
{
public override void SetStaticDefaults()
{
Main.buffNoTimeDisplay[Type] = true;
Main.vanityPet[Type] = true;
}
public override void Update(Player player, ref int buffIndex) => player.BuffHandle_SpawnPetIfNeededAndSetTime(buffIndex, ref player.Calamity().starSwallowerPetFroge, ModContent.ProjectileType<StarSwallowerPet>());
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

+15 -43
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;
@@ -589,6 +589,7 @@ namespace CalamityMod.CalPlayer
public bool lordePet = false;
public bool frostyBat = false;
public bool toastyBat = false;
public bool starSwallowerPetFroge = false;
#endregion
#region Rage
@@ -1039,9 +1040,9 @@ namespace CalamityMod.CalPlayer
public int fallingBootVelCheckTimer = 0;
public bool voidOfCalamity = false;
public bool apollyon = false;
public bool eArtifact = false;
public bool dArtifact = false;
public bool auricSArtifact = false;
public bool fragmentsOfAnotherWorld = false;
public bool crushingEgo = false;
public bool fadedIdolatry = false;
public bool pSoulArtifact = false;
public bool giantPearl = false;
public bool shieldOfTheOcean = false;
@@ -2287,6 +2288,7 @@ namespace CalamityMod.CalPlayer
lordePet = false;
frostyBat = false;
toastyBat = false;
starSwallowerPetFroge = false;
onyxExcavator = false;
rimehound = false;
@@ -2468,9 +2470,9 @@ namespace CalamityMod.CalPlayer
baroclaw = false;
voidOfCalamity = false;
apollyon = false;
eArtifact = false;
dArtifact = false;
auricSArtifact = false;
fragmentsOfAnotherWorld = false;
crushingEgo = false;
fadedIdolatry = false;
pSoulArtifact = false;
giantPearl = false;
shieldOfTheOcean = false;
@@ -5578,6 +5580,8 @@ namespace CalamityMod.CalPlayer
{
Main.projectile[p].DamageType = DamageClass.Generic; //Makes it not proc shit like nanotech, extorter and other stuff
Main.projectile[p].Calamity().LocketClone = true; //To not have clones trigger effects like Sacrifice's Lifesteal and Final Dawn's stealth generation
Projectile.NewProjectile(LocketSource, Main.projectile[p].Center, Vector2.Zero, ModContent.ProjectileType<DoGWeaponTeleportRift>(), 0, 0, Player.whoAmI); // Spawn a little portal!
}
// Handle AI edge-cases. These are like overlapping projectiles and the projectile not spawning at all
@@ -5953,32 +5957,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
@@ -6148,12 +6126,6 @@ namespace CalamityMod.CalPlayer
stealthGenMoving += ShadowPotion.StealthRegenBoost;
}
if (eArtifact)
{
stealthGenStandstill += 0.15f;
stealthGenMoving += 0.15f;
}
// Accessory modifiers can boost these stats
stealthGenStandstill += accStealthGenBoost;
stealthGenMoving += accStealthGenBoost;
+2 -6
View File
@@ -149,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;
}
}
+14 -3
View File
@@ -595,7 +595,19 @@ namespace CalamityMod.CalPlayer
{
if (proj.npcProj || proj.trap)
return;
//Add raider crit before hit
if (!proj.Calamity().stealthStrike && !proj.Calamity().stealthStrikeSubProjectile && raiderCritLifespan > 0f)
{
if (nanotech)
proj.CritChance += Items.Accessories.Nanotech.RaiderBonus;
else if (vampiricTalisman)
proj.CritChance += VampiricTalisman.RaiderBonus;
else if (raiderTalisman)
proj.CritChance += RaidersTalisman.RaiderBonus;
}
modifiers.CritDamage += critDamage;
// All Calamity multipliers are added together to prevent insane exponential stacking
@@ -1624,7 +1636,7 @@ namespace CalamityMod.CalPlayer
#region Player Incoming Damage Multiplier (Increases)
double damageMult = 1D;
if (dArtifact) // Dimensional Soul Artifact increases incoming damage by 15%.
if (crushingEgo) // Dimensional Soul Artifact increases incoming damage by 15%.
damageMult += 0.15;
if (enraged) // Demonshade Enrage
damageMult += DemonshadeHelm.MultDamageTakenBoost;
@@ -2348,7 +2360,6 @@ namespace CalamityMod.CalPlayer
}
}
}
fleshTotemManaStorage = 0;
}
+1 -2
View File
@@ -219,9 +219,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;
+12 -26
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);
}
}
@@ -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)
{
@@ -2271,8 +2271,6 @@ namespace CalamityMod.CalPlayer
bloodflareMageCooldown--;
if (silvaMageCooldown > 0)
silvaMageCooldown--;
if (scuttlerCooldown > 0)
scuttlerCooldown--;
if (nanotechHitCooldown > 0)
nanotechHitCooldown--;
if (spectralVeilImmunity > 0)
@@ -2726,12 +2724,6 @@ namespace CalamityMod.CalPlayer
}
}
// Raider Talisman bonus
if (raiderTalisman && !vampiricTalisman && !StealthStrikeAvailable() && raiderCritLifespan > 0f)
Player.GetCritChance<ThrowingDamageClass>() += RaidersTalisman.RaiderBonus;
if (vampiricTalisman && !StealthStrikeAvailable() && raiderCritLifespan > 0f)
Player.GetCritChance<ThrowingDamageClass>() += VampiricTalisman.RaiderBonus;
if (avertorBonus)
Player.GetDamage<GenericDamageClass>() += 0.1f;
@@ -2803,7 +2795,7 @@ namespace CalamityMod.CalPlayer
if (permafrostsConcoction)
{
Player.manaCost -= 0.15f;
Player.statManaMax2 += 50;
Player.statManaMax2 += 40;
}
if (encased)
@@ -3528,7 +3520,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
}
@@ -4013,13 +4005,7 @@ namespace CalamityMod.CalPlayer
Player.npcTypeNoAggro[ModContent.NPCType<GammaSlime>()] = true;
}
if (eArtifact)
{
Player.manaCost -= 0.25f;
Player.maxMinions++;
}
if (auricSArtifact && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
if (fadedIdolatry && Player.FindBuffIndex(ModContent.BuffType<FieryDraconidBuff>()) != -1)
Player.maxMinions += Player.ownedProjectileCounts[ModContent.ProjectileType<FieryDraconid>()];
if (pSoulArtifact)
@@ -4454,7 +4440,7 @@ namespace CalamityMod.CalPlayer
// Add any multiplicative damage bonuses here
float multiplicativeDamage = 1;
if (dArtifact)
if (crushingEgo)
multiplicativeDamage += 0.2f;
if (WarbanneroftheRighteous)
multiplicativeDamage += warbannerDamageMult;
+19 -33
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)
@@ -226,6 +212,17 @@ namespace CalamityMod.CalPlayer
if (Player.whoAmI != Main.myPlayer)
return;
//Undo raider crit after hit
if (!proj.Calamity().stealthStrike && !proj.Calamity().stealthStrikeSubProjectile && raiderCritLifespan > 0f)
{
if (nanotech)
proj.CritChance -= Items.Accessories.Nanotech.RaiderBonus;
else if (vampiricTalisman)
proj.CritChance -= VampiricTalisman.RaiderBonus;
else if (raiderTalisman)
proj.CritChance -= RaidersTalisman.RaiderBonus;
}
// Apply this to player equippable sources ie. Orichalcum set bonus petal spawns
// Do not apply if this effect is an extension of a weapon ie. Pearl God round effect as it will mess up Old Fashioned
var source = Player.GetSource_OnHit(target);
@@ -281,11 +278,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);
@@ -297,11 +294,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;
@@ -310,21 +308,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.NorthPoleWeapon:
target.AddBuff(BuffID.Frostburn, 300);
break;
@@ -908,7 +895,7 @@ namespace CalamityMod.CalPlayer
{
if (Player.ownedProjectileCounts[ProjectileType<PhantomicDagger>()] < 3 && Main.rand.NextBool(4))
{
int damage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(100);
int damage = (int)Player.GetTotalDamage<SummonDamageClass>().ApplyTo(PhantomicArtifact.DaggerDamage);
Projectile.NewProjectile(source, Player.Center, new Vector2(Player.velocity.X,Player.velocity.Y-10).RotatedByRandom(0.3f), ProjectileType<PhantomicDagger>(), damage, 1f, Player.whoAmI);
}
}
@@ -1097,8 +1084,7 @@ namespace CalamityMod.CalPlayer
if (raiderTalisman && modProj.stealthStrike)
{
raiderCritLifespan = CalamityUtils.SecondsToFrames(RaidersTalisman.RaiderCooldown);
// TO DO: Add nanotech here
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, vampiricTalisman ? "Bloodfeast" : "default");
Player.AddCooldown(RaiderBoost.ID, raiderCritLifespan, true, nanotech ? "Nanotech" : vampiricTalisman ? "Vampiric" : "default");
if (raiderSoundCooldown <= 0)
{
SoundEngine.PlaySound(RaidersTalisman.StealthHitSound, Player.Center);
@@ -1109,12 +1095,12 @@ namespace CalamityMod.CalPlayer
if (npcCheck)
{
// Umbraphile cannot trigger off of itself. It is guaranteed on stealth strikes and 20% chance otherwise.
if (umbraphileSet && ((modProj.stealthStrike && modProj.stealthStrikeHitCount < 3) || Main.rand.NextBool(5)))
if (umbraphileSet && ((modProj.stealthStrike && modProj.stealthStrikeHitCount < 3) || Main.rand.NextBool(5)) && !modProj.CannotProc)
{
int umbraBlastDamage = CalamityUtils.DamageSoftCap(proj.damage * UmbraphileHood.ExplosionDamageRatio, UmbraphileHood.ExplosionDamageSoftcap);
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<UmbraphileBoom>(), umbraBlastDamage, 0f, Player.whoAmI);
}
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3)
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3 && !modProj.CannotProc)
{
for (int s = 0; s < 3; s++)
{
@@ -1306,7 +1292,7 @@ namespace CalamityMod.CalPlayer
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)
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && (modProj.stealthStrike || (nanotech && raiderCritLifespan > 0)) && proj.numHits < 1)
//Nanotech has the same heal as Electrician's glove
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, electricianGlove ? 2f : 3f);
+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
+156
View File
@@ -0,0 +1,156 @@
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;
using Terraria;
using Terraria.GameContent;
using Terraria.UI.Chat;
namespace CalamityMod.ChatTags
{
// This is a tag handler for storing custom color effects for text all within the "ceffect" tag; the parameter determining the actual effect in use.
// 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", "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);
}
}
public sealed class DarksunTextSnippet(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 font = FontAssets.MouseText.Value;
var BorderColor = new Color(255, 191, 73);
var HazeColor = new Color(238, 226, 153);
for (float f = 0f; f < MathHelper.TwoPi; f += MathHelper.TwoPi * 0.05f)
{
ChatManager.DrawColorCodedString(spriteBatch, font, text, position + new Vector2(2, 0).RotatedBy(f + Main.GlobalTimeWrappedHourly), Color.Lerp(BorderColor, HazeColor, (Main.mouseTextColor - 190) / 65f * 0.1f), 0f, Vector2.Zero, new Vector2(scale));
}
ChatManager.DrawColorCodedString(spriteBatch, font, text, position, Color.Black, 0f, Vector2.Zero, new Vector2(scale));
}
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;
return size * Scale;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

+8 -1
View File
@@ -26,7 +26,14 @@ namespace CalamityMod.Cooldowns
{
switch (skin)
{
case "Bloodfeast":
case "Nanotech":
skinTexture = "NanotechBoost";
outlineColor = new Color(14, 103, 129);
cooldownColorStart = new Color(85, 252, 229);
cooldownColorEnd = new Color(52,255,171);
break;
case "Vampiric":
skinTexture = "VampiricTalismanBoost";
outlineColor = new Color(143, 27, 27);
cooldownColorStart = new Color(133, 5, 5);
@@ -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
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
{
public new string LocalizationCategory => "Items.Accessories";
public static int cooldown = 600;
public static int damage = 100;
public static int damage = 50;
public override void SetDefaults()
{
Item.width = 36;
+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;
@@ -9,7 +9,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class DimensionalSoulArtifact : ModItem, ILocalizedModType
[LegacyName("DimensionalSoulArtifact")]
public class CrushingEgo : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
@@ -24,7 +25,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.dArtifact = true;
modPlayer.crushingEgo = true;
}
public override void AddRecipes()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 793 B

After

Width:  |  Height:  |  Size: 793 B

+2 -2
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
/// The amount of critical strike chance bonus where crit starts decaying faster.<br/>
/// When the crit bonus reaches this value, the decay rate increases by one tier.
/// </summary>
public static readonly int CritDecayThreshold = 60;
public static readonly int CritDecayThreshold = 50;
/// <summary>
/// When the critical strike chance bonus has exceeded <see cref="CritDecayThreshold"/>, it continues to decay faster for every <see cref="CritDecayEchelon"/> more.
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Accessories
/// <summary>
/// The maximum amount of extra critical strike chance you can get from this accessory.
/// </summary>
public static readonly int CritHardCap = 100;
public static readonly int CritHardCap = 75;
#endregion
+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;
}
+2
View File
@@ -8,6 +8,8 @@ namespace CalamityMod.Items.Accessories
public class EtherealExtorter : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int soulDamage => 15;
public override void SetDefaults()
{
Item.width = 28;
+12 -4
View File
@@ -7,6 +7,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
@@ -15,6 +16,13 @@ namespace CalamityMod.Items.Accessories
public class EtherealTalisman : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int MaxManaBoost = 60;
public static float ManaCostReduction = 0.08f;
public static float MagicDamageBoost = 0.15f;
public static int MagicCritBoost = 5;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, ManaCostReduction.ToPercent(), MagicDamageBoost.ToPercent(), MagicCritBoost);
public override void SetDefaults()
{
Item.width = 28;
@@ -72,10 +80,10 @@ namespace CalamityMod.Items.Accessories
if (manaFlowerEnabled)
player.manaFlower = true;
player.statManaMax2 += 150;
player.GetDamage<MagicDamageClass>() += 0.15f;
player.manaCost -= 0.1f;
player.GetCritChance<MagicDamageClass>() += 5;
player.statManaMax2 += MaxManaBoost;
player.manaCost -= ManaCostReduction;
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
player.GetCritChance<MagicDamageClass>() += MagicCritBoost;
}
public override void AddRecipes()
@@ -9,8 +9,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
[LegacyName("GodlySoulArtifact")]
public class AuricSoulArtifact : ModItem, ILocalizedModType
[LegacyName("GodlySoulArtifact", "AuricSoulArtifact")]
public class FadedIdolatry : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.auricSArtifact = true;
modPlayer.fadedIdolatry = true;
}
public override void AddRecipes()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 808 B

After

Width:  |  Height:  |  Size: 808 B

@@ -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()
{
+3 -1
View File
@@ -13,6 +13,8 @@ namespace CalamityMod.Items.Accessories
public static int manaStorageMax = 600;
public const int lostSoulDamage = 200;
public static int MinDelay => 60;
public static int MaxDelay => 240;
public override void SetDefaults()
{
@@ -29,7 +31,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.fleshTotem = true;
modPlayer.fleshTotemMinion = true;
modPlayer.fleshTotemVisual = !hideVisual;
player.statManaMax2 += 30;
player.statManaMax2 += 20;
player.GetCritChance<MagicDamageClass>() += 5;
if (player.whoAmI == Main.myPlayer)
{
@@ -5,12 +5,20 @@ using CalamityMod.Items.Placeables.Ores;
using CalamityMod.Items.Placeables.Plates;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class EldritchSoulArtifact : ModItem, ILocalizedModType
[LegacyName("EldritchSoulArtifact")]
public class FragmentsOfAnotherWorld : ModItem, ILocalizedModType
{
static float MeleeSpeedIncrease => 0.2f;
static float RangedSpecialistDmgMult => 1.15f;
static float ManaCostReduction => 0.25f;
static int MaxSentries => 2;
static float RogueSpeedIncrease => 0.1f;
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
@@ -21,12 +29,19 @@ namespace CalamityMod.Items.Accessories
Item.rare = ItemRarityID.Purple;
}
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeSpeedIncrease.ToPercent(), RangedSpecialistDmgMult, ManaCostReduction.ToPercent(), MaxSentries, RogueSpeedIncrease.ToPercent());
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.eArtifact = true;
modPlayer.fragmentsOfAnotherWorld = true;
player.buffImmune[ModContent.BuffType<WhisperingDeath>()] = true;
player.GetAttackSpeed<MeleeDamageClass>() += 0.1f;
player.GetAttackSpeed<MeleeDamageClass>() += MeleeSpeedIncrease;
player.specialistDamage *= RangedSpecialistDmgMult;
player.manaCost -= ManaCostReduction;
player.maxTurrets += MaxSentries;
player.GetAttackSpeed<RogueDamageClass>() += RogueSpeedIncrease;
}
public override void AddRecipes()
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.manaOverloader = true;
player.statManaMax2 += 50;
player.statManaMax2 += 40;
}
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.moonCrown = true;
modPlayer.mageCrownVisibility = !hideVisual;
player.statManaMax2 += 70;
player.statManaMax2 += 40;
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
+3
View File
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Accessories
{
//The stealth damage boost is handled in CalamityPlayer for some reason, maybe someone didn't want em to stack?
public new string LocalizationCategory => "Items.Accessories";
public static int RaiderBonus => 10;
public override void SetDefaults()
{
Item.width = 46;
@@ -27,6 +28,7 @@ namespace CalamityMod.Items.Accessories
modPlayer.electricianGlove = true;
modPlayer.filthyGlove = true;
modPlayer.bloodyGlove = true;
modPlayer.raiderTalisman = true;
player.GetDamage<ThrowingDamageClass>() += 0.15f;
player.Calamity().rogueVelocity += 0.15f;
}
@@ -35,6 +37,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<RogueEmblem>().
AddIngredient<VampiricTalisman>().
AddIngredient<ElectriciansGlove>().
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
+4 -3
View File
@@ -17,9 +17,10 @@ namespace CalamityMod.Items.Accessories
{
public new string LocalizationCategory => "Items.Accessories";
public static int RegenBoost = 2;
public static int DefenseBoost = 8;
public static float SummonDamageBoost = 0.1f;
public static int RegenBoost => 2;
public static int DefenseBoost => 8;
public static float SummonDamageBoost => 0.1f;
public static float DaggerDamage => 300;
public LocalizedText TooltipExtensionText => this.GetLocalization("HoldShiftTooltip").WithFormatArgs(SummonDamageBoost.ToPercent(), DefenseBoost, RegenBoost.ToRegenPerSecond());
public override void SetStaticDefaults()
{
+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;
+2 -2
View File
@@ -9,8 +9,8 @@ namespace CalamityMod.Items.Accessories
public class RaidersTalisman : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public const float RaiderBonus = 15f;
public const int RaiderCooldown = 10; //seconds
public static int RaiderBonus => 15;
public static int RaiderCooldown => 10; //seconds
public static readonly SoundStyle StealthHitSound = new("CalamityMod/Sounds/Custom/RaidersTalismanStealthHit");
public override void SetDefaults()
+8 -3
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,11 @@ namespace CalamityMod.Items.Accessories
public class SigilofCalamitas : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static int MaxManaBoost = 60;
public static float MagicDamageBoost = 0.15f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, MagicDamageBoost.ToPercent());
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 8));
@@ -27,9 +33,8 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.manaMagnet = true;
player.statManaMax2 += 100;
player.GetDamage<MagicDamageClass>() += 0.15f;
player.manaCost -= 0.1f;
player.statManaMax2 += MaxManaBoost;
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
}
public override void AddRecipes()
@@ -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()
{
+3 -3
View File
@@ -9,9 +9,9 @@ namespace CalamityMod.Items.Accessories
{
public class VampiricTalisman : ModItem, ILocalizedModType, IHoldShiftTooltipItem
{
internal const int ArmorCrunchDebuffTime = 150;
internal const int HeavyBleedingDebuffTime = 300;
public const float RaiderBonus = 15f;
internal static int ArmorCrunchDebuffTime => 150;
internal static int HeavyBleedingDebuffTime => 300;
public static int RaiderBonus => 15;
public bool ShowExtensionIndicator => false;
@@ -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()
{
@@ -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
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Armor.Aerospec
{
public new string LocalizationCategory => "Items.Armor.PreHardmode";
public static int MaxManaBoost = 30;
public static int MaxManaBoost = 40;
public static float MagicDamageBoost = 0.1f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, MagicDamageBoost.ToPercent());
+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;
+4 -15
View File
@@ -1,6 +1,7 @@
using System;
using System.IO;
using CalamityMod.Balancing;
using CalamityMod.Buffs.Potions;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer;
@@ -328,9 +329,6 @@ namespace CalamityMod.Items
if (modPlayer.gloveOfRecklessness)
velocity = velocity.RotatedByRandom(MathHelper.ToRadians(12f));
}
if (modPlayer.eArtifact && item.CountsAsClass<RangedDamageClass>())
velocity *= 1.25f;
}
public override bool Shoot(Item item, Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
@@ -616,7 +614,7 @@ namespace CalamityMod.Items
}
//Mana Potion interactions
if (item.healMana > 0)
if (item.healMana > 0 || player.HasBuff(ModContent.BuffType<AstralInjectionBuff>()))
{
//If mana potion used, kill all active Crown projectiles
if ((modPlayer.moonCrown || modPlayer.featherCrown) && modPlayer.mageCrownCount > 0)
@@ -1092,14 +1090,9 @@ namespace CalamityMod.Items
modPlayer.fairyBoots = true;
// Mana Flower tinker buffs
if (item.type == ItemID.MagnetFlower)
player.manaCost -= 0.02f;
if (item.type == ItemID.ArcaneFlower || item.type == ItemID.ManaCloak)
player.manaCost -= 0.04f;
if (item.type == ItemID.ArcaneFlower)
player.GetDamage<MagicDamageClass>() += 0.05f;
if (item.type == ItemID.EyeoftheGolem)
{
player.Calamity().critDamage += 0.15f;
@@ -1157,16 +1150,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%
+5 -71
View File
@@ -782,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)
@@ -823,10 +826,6 @@ namespace CalamityMod.Items
}
// Mana Flower tinker buffs.
if (item.type == ItemID.MagnetFlower)
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("8%", "10%"));
if (item.type == ItemID.ArcaneFlower || item.type == ItemID.ManaCloak)
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("8%", "12%"));
if (item.type == ItemID.ArcaneFlower)
EditTooltipByNum(2, (line) => line.Text += AddedTooltip("ArcaneFlower"));
@@ -933,18 +932,6 @@ namespace CalamityMod.Items
#endregion
#region Hardmode Armor
// Cobalt
if (item.type == ItemID.CobaltHat)
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("40", $"{CobaltArmorSetChange.MaxManaBoost + 40}"));
// Mythril
if (item.type == ItemID.MythrilHood)
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("60", $"{MythrilArmorSetChange.MaxManaBoost + 60}"));
// Adamantite
if (item.type == ItemID.AdamantiteHeadgear)
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("80", $"{AdamantiteArmorSetChange.MaxManaBoost + 80}"));
// Titanium
if (item.type == ItemID.TitaniumMask)
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("9%", "14%"));
@@ -1791,60 +1778,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;
}
+40 -44
View File
@@ -52,19 +52,18 @@ namespace CalamityMod.Items
{ 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.BeeGun, Do(DamageExact(11)) }, // VANILLA: 9 DMG
{ ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) }, // VANILLA: 30 DMG
{ ItemID.Beenade, Do(DamageExact(11), UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 12 DMG, 15 UT, 6 VEL
{ ItemID.BeesKnees, Do(DamageExact(21), UseExact(38)) }, // VANILLA: 23 DMG, 23 UT
{ 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.BlizzardStaff, Do(DamageExact(41)) }, // VANILLA: 58 DMG
{ 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)) }, // 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
@@ -114,10 +113,9 @@ namespace CalamityMod.Items
{ 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.Flamelash, Do(DamageExact(36)) }, // VANILLA: 32 DMG
{ 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.FlowerofFire, Do(DamageRatio(0.78f)) }, // VANILLA: 48 DMG. Uses ratios due to remix seed
{ 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
@@ -147,18 +145,18 @@ namespace CalamityMod.Items
{ 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.LaserRifle, Do(DamageExact(46)) }, // VANILLA: 29 DMG
{ ItemID.LastPrism, Do(DamageExact(57)) }, // VANILLA: 100 DMG
{ 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.MagicMissile, Do(DamageExact(23), UseAnimationExact(20), UseTimeExact(10)) }, // VANILLA: 35 DMG, 22 UT/UA
{ ItemID.Marrow, Do(DamageExact(60)) }, // VANILLA: 53 DMG
{ ItemID.MedusaHead, Do(DamageExact(75), ManaExact(6)) }, // VANILLA: 40 DMG, 15 MANA
{ ItemID.MedusaHead, Do(DamageExact(75)) }, // VANILLA: 40 DMG
{ 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.MeteorStaff, Do(DamageExact(58), ShootSpeedExact(13f)) }, // VANILLA: 50 DMG, 10 VEL
{ ItemID.MiniNukeI, Do(DamageExact(90)) }, // VANILLA: 75 DMG
{ ItemID.MiniNukeII, Do(DamageExact(90)) },
{ ItemID.Minishark, Do(DamageExact(4)) }, // VANILLA: 6 DMG
@@ -175,7 +173,7 @@ namespace CalamityMod.Items
{ 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.NettleBurst, Do(DamageExact(65)) }, // VANILLA: 35 DMG
{ ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) }, // VANILLA: 40 DMG
{ ItemID.NorthPole, Do(UseMeleeSpeed) },
{ ItemID.OrangePhaseblade, phaseblade },
@@ -200,8 +198,8 @@ namespace CalamityMod.Items
{ ItemID.PurplePhaseblade, phaseblade },
{ ItemID.PurplePhasesaber, phasesaber },
{ 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.RainbowGun, Do(DamageExact(60)) }, // VANILLA: 45 DMG
{ ItemID.RainbowRod, Do(DamageExact(40), KnockbackExact(8f)) }, // VANILLA: 50 DMG, 6 KB
{ ItemID.Rally, Do(DamageExact(18)) }, // VANILLA: 14 DMG
{ ItemID.RavenStaff, Do(DamageExact(36)) }, // VANILLA: 55 DMG
{ ItemID.RazorbladeTyphoon, Do(DamageExact(103)) }, // VANILLA: 85 DMG
@@ -227,12 +225,11 @@ namespace CalamityMod.Items
{ 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.SolarEruption, Do(DamageExact(122)) }, // VANILLA: 105 DMG
{ 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.SpiritFlame, Do(UseExact(20), ShootSpeedExact(2f)) }, // VANILLA: 22 UT, 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
@@ -257,7 +254,7 @@ namespace CalamityMod.Items
{ 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.ToxicFlask, Do(DamageExact(62), UseExact(33)) }, // VANILLA: 52 DMG, 45 UT
{ ItemID.Toxikarp, Do(UseExact(9)) }, // VANILLA: 10 UT
{ ItemID.Trident, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 14 DMG
{ ItemID.Trimarang, Do(DamageExact(24)) }, // VANILLA: 21 DMG
@@ -267,11 +264,10 @@ namespace CalamityMod.Items
{ 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.UnholyTrident, Do(DamageRatio(0.91f)) }, // VANILLA: 88 DMG. 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(44)) }, // VANILLA: 31 DMG
{ ItemID.WaspGun, Do(DamageExact(41)) }, // VANILLA: 31 DMG
{ ItemID.WaterBolt, Do(DamageExact(23)) }, // VANILLA: 19 DMG
{ ItemID.WhitePhaseblade, phaseblade },
{ ItemID.WhitePhasesaber, phasesaber },
@@ -295,31 +291,31 @@ namespace CalamityMod.Items
#region CATEGORY 3: Tool Balancing
{ ItemID.AcornAxe, Do(AxePower(100)) }, // Axe of Regrowth. VANILLA: 150% AXE
{ ItemID.AdamantiteChainsaw, Do(TrueMeleeNoSpeed, DamageExact(75), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 33 DMG, 100 AXE, -1 TILE
{ ItemID.AdamantiteDrill, Do(TrueMeleeNoSpeed, DamageExact(32), TileBoostExact(+0)) }, // VANILLA: 20 DMG, -1 TILE
{ 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, UseTimeExact(3), TileBoostExact(+0)) }, // VANILLA: 4 SPD, -1 TILE
{ 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(112), UseTimeExact(3), AxePower(120), TileBoostExact(+1)) }, // VANILLA: 50 DMG, 4 SPD, 115 AXE, 0 TILE
{ ItemID.ChlorophyteDrill, Do(TrueMeleeNoSpeed, DamageExact(43), TileBoostExact(+1)) }, // VANILLA: 35 DMG, 0 TILE
{ 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(53), UseTimeExact(5), TileBoostExact(+1)) }, // VANILLA: 45 DMG, 4 SPD, 0 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(51), UseTimeExact(4)) }, // VANILLA: 23 DMG, 7 SPD
{ ItemID.CobaltDrill, Do(TrueMeleeNoSpeed, DamageExact(21), UseTimeExact(5), PickPower(130)) }, // VANILLA: 10 DMG, 7 SPD, 110 PICK
{ 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(80), TileBoostExact(+0)) }, // VANILLA: 35 DMG, -1 TILE
{ 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
@@ -329,7 +325,7 @@ namespace CalamityMod.Items
{ 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(54), UseTimeExact(4), PickPower(220)) }, // VANILLA: 35 DMG, 6 SPD, 230 PICK
{ 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
@@ -341,18 +337,18 @@ namespace CalamityMod.Items
{ 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(63), UseTimeExact(4), AxePower(80)) }, // VANILLA: 29 DMG, 6 SPD, 85 AXE
{ ItemID.MythrilDrill, Do(TrueMeleeNoSpeed, DamageExact(26), UseTimeExact(4), PickPower(160)) }, // VANILLA: 15 DMG, 6 SPD, 150 PICK
{ 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(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ 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(63), UseTimeExact(4), AxePower(80)) }, // VANILLA: 31 DMG, 5 SPD, 90 AXE
{ ItemID.OrichalcumDrill, Do(TrueMeleeNoSpeed, DamageExact(26), UseTimeExact(4), PickPower(160)) }, // VANILLA: 17 DMG, 5 SPD, 165 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(51), UseTimeExact(4), AxePower(70)) }, // VANILLA: 26 DMG, 7 SPD, 75 AXE
{ ItemID.PalladiumDrill, Do(TrueMeleeNoSpeed, DamageExact(21), UseTimeExact(5)) }, // VANILLA: 12 DMG, 7 SPD
{ 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
@@ -369,22 +365,22 @@ namespace CalamityMod.Items
{ 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(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ 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(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 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(75), AxePower(90), TileBoostExact(+0)) }, // VANILLA: 34 DMG, 105 AXE, -1 TILE
{ ItemID.TitaniumDrill, Do(TrueMeleeNoSpeed, DamageExact(32), PickPower(180), TileBoostExact(+0)) }, // VANILLA: 27 DMG, 190 PICK, -1 TILE
{ 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(95), UseTimeExact(3), TileBoostExact(+3)) }, // VANILLA: 50 DMG, 2 SPD, +2 TILE
{ 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
+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.PermanentBoosters
{
public new string LocalizationCategory => "Items.Misc";
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/CometShardUse");
public const int ManaBoost = 50;
public const int ManaBoost = 60;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaBoost);
public override void SetStaticDefaults()
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.PermanentBoosters
{
public new string LocalizationCategory => "Items.Misc";
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/EtherealCoreUse");
public const int ManaBoost = 50;
public const int ManaBoost = 60;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaBoost);
public override void SetStaticDefaults()
+1 -1
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.PermanentBoosters
{
public new string LocalizationCategory => "Items.Misc";
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/PhantomHeartUse");
public const int ManaBoost = 50;
public const int ManaBoost = 60;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaBoost);
public override void SetStaticDefaults()
+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;
}
+41
View File
@@ -0,0 +1,41 @@
using CalamityMod.Buffs.Pets;
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Pets;
using CalamityMod.Rarities;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Pets
{
public class StarSwallowerUnit : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Pets";
public override void SetDefaults()
{
Item.DefaultToVanitypet(ModContent.ProjectileType<StarSwallowerPet>(), ModContent.BuffType<StarSwallowerPetBuff>());
Item.value = Item.sellPrice(gold: 1);
Item.rare = ModContent.RarityType<DarkOrange>();
Item.useStyle = ItemUseStyleID.HoldUp;
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
{
player.AddBuff(Item.buffType, 15, true);
}
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.Frog).
AddIngredient<MysteriousCircuitry>(8).
AddIngredient<DubiousPlating>(4).
AddTile(TileID.Anvils).
Register();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

@@ -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)
@@ -51,6 +51,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
{
"Altixal",
"apotofkoolaid",
"ArchonSystem",
"Atalya",
"Ben-TK",
"Big E",
@@ -64,11 +65,9 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
"Dia",
"Done",
"dozezoze",
"ENNWAY",
"Flowaria",
"Fluffy",
"fryzahh",
"HaguriHat",
"jasper",
"LordMetarex",
"math2",
@@ -84,7 +83,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
"_tofu",
"Tomat",
"Triangle",
"TYESKI (Universe)",
"TYESKI",
"Xyk",
"YuH",
// Former devs
@@ -120,6 +119,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Paintings
"Ein",
"enamoured",
"Enreden",
"ENNWAY",
"Epsilon",
"Fargowilta",
"Frous",
@@ -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 -27
View File
@@ -13,9 +13,8 @@ namespace CalamityMod.Items.Potions
{
public new string LocalizationCategory => "Items.Potions";
public static int ManaPerFrame = 2;
public static int SelfDamage = 5;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaPerFrame * 60, SelfDamage);
public static int ManaPerFrame = 1;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ManaPerFrame * 60);
public override void SetStaticDefaults()
{
@@ -28,40 +27,20 @@ namespace CalamityMod.Items.Potions
public override void SetDefaults()
{
Item.DefaultToFood(14, 34, ModContent.BuffType<AstralInjectionBuff>(), CalamityUtils.SecondsToFrames(5), true);
Item.DefaultToFood(14, 34, ModContent.BuffType<AstralInjectionBuff>(), CalamityUtils.SecondsToFrames(6), true);
Item.value = Item.sellPrice(silver: 2);
Item.rare = ItemRarityID.Lime;
}
public override void OnConsumeItem(Player player)
{
player.AddBuff(BuffID.ManaSickness, Player.manaSickTime / 2, true);
player.statLife -= SelfDamage;
if (Main.myPlayer == player.whoAmI)
{
player.HealEffect(-SelfDamage, true);
}
if (player.statLife <= 0)
{
player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AstralInjection" + Main.rand.Next(1, 2 + 1)).ToNetworkText(player.name)), 1000.0, 0, false);
}
}
public override void OnConsumeItem(Player player) => player.AddBuff(BuffID.ManaSickness, Player.manaSickTime, true);
public override void AddRecipes()
{
CreateRecipe(15).
AddIngredient(ItemID.BottledWater, 15).
AddIngredient(ItemID.SuperManaPotion, 15).
AddIngredient<StarblightSoot>(4).
AddIngredient<AureusCell>().
AddTile(TileID.AlchemyTable).
AddConsumeIngredientCallback(Recipe.IngredientQuantityRules.Alchemy).
Register();
CreateRecipe(15).
AddIngredient(ItemID.BottledWater, 15).
AddIngredient<BloodOrb>(5).
AddIngredient<AureusCell>().
AddTile(TileID.AlchemyTable).
AddTile(TileID.Bottles).
Register()
.DisableDecraft();
}
-14
View File
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Potions
{
// Eating animation but gulp sound? Sure
Item.DefaultToFood(22, 38, BuffID.MagicPower, CalamityUtils.MinutesToFrames(8));
Item.healMana = 200;
Item.UseSound = SoundID.Item3;
Item.value = Item.sellPrice(silver: 50); // Based on material cost rather than potion cost
Item.rare = ItemRarityID.Lime;
@@ -32,19 +31,6 @@ namespace CalamityMod.Items.Potions
public override void OnConsumeItem(Player player)
{
if (PlayerInput.Triggers.JustPressed.QuickBuff)
{
player.statMana += Item.healMana;
if (player.statMana > player.statManaMax2)
{
player.statMana = player.statManaMax2;
}
player.AddBuff(BuffID.ManaSickness, Player.manaSickTime, true);
if (Main.myPlayer == player.whoAmI)
{
player.ManaEffect(Item.healMana);
}
}
player.AddBuff(BuffID.MagicPower, Item.buffTime);
player.AddBuff(BuffID.ManaRegeneration, Item.buffTime);
}
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.SummonItems
{
Item.width = 34;
Item.height = 54;
Item.rare = ModContent.RarityType<BurnishedAuric>();
Item.rare = ModContent.RarityType<CalamityRed>();
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Tools
public new string LocalizationCategory => "Items.Tools";
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/MarniteObliteratorUse") { PitchVariance = 0.3f };
public static int ArmorPenetration = 5;
public static int ArmorPenetration = 15;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration);
public override void SetDefaults()
+4
View File
@@ -2,6 +2,7 @@
using CalamityMod.Projectiles.Typeless;
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Tools
@@ -10,12 +11,15 @@ namespace CalamityMod.Items.Tools
public class WulfrumDrill : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Tools";
public static int ArmorPenetration = 15;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration);
public override void SetDefaults()
{
Item.width = 46;
Item.height = 38;
Item.damage = 5;
Item.DamageType = DamageClass.Melee;
Item.ArmorPenetration = ArmorPenetration;
Item.pick = 35;
Item.tileBoost += 1;
Item.useAnimation = 16;
@@ -17,18 +17,11 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override string ArmorSetName => "Adamantite";
public const int MaxManaBoost = 20;
public const int DefenseBoostMax = 10;
public const int TimeUntilDecayBeginsAfterAttacking = 60;
public const int TimeUntilBoostCompletelyDecays = 210; // Unlisted use: this is also the amount of hits to max out defense.
public const int CritToDRConversionPercent = 25;
public override void ApplyHeadPieceEffect(Player player)
{
if (player.armor[0].type == ItemID.AdamantiteHeadgear)
player.statManaMax2 += MaxManaBoost;
}
public override void UpdateSetBonusText(ref string setBonusText)
{
Player player = Main.LocalPlayer;
@@ -18,16 +18,9 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override string ArmorSetName => "Cobalt";
public const int SpeedBoostSetBonusPercentage = 10;
public const int MaxManaBoost = 20;
public const int MovementSpeedBoostPercentageMax = 10;
public const int MovementSpeedBoostMphThreshold = 80;
public override void ApplyHeadPieceEffect(Player player)
{
if (player.armor[0].type == ItemID.CobaltHat)
player.statManaMax2 += MaxManaBoost;
}
public override void UpdateSetBonusText(ref string setBonusText)
{
Player player = Main.LocalPlayer;
@@ -18,7 +18,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override string ArmorSetName => "Mythril";
public const int MaxManaBoost = 20;
public const int FlareFrameSpawnDelay = 12;
public const int FlareDamageSoftcap = 40;
@@ -27,12 +26,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(FlareFrameSpawnDelay)}";
}
public override void ApplyHeadPieceEffect(Player player)
{
if (player.armor[0].type == ItemID.MythrilHood)
player.statManaMax2 += MaxManaBoost;
}
public override void ApplyArmorSetBonus(Player player)
{
player.Calamity().MythrilSet = true;
@@ -9,6 +9,7 @@ using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.DraedonsArsenal
@@ -21,6 +22,10 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
public static readonly SoundStyle Sound1 = new("CalamityMod/Sounds/Item/ShrimpSound1");
public static readonly SoundStyle Sound2 = new("CalamityMod/Sounds/Item/ShrimpSound2");
public static readonly SoundStyle Surprise = new("CalamityMod/Sounds/Item/ShrimpSurprise");
public static int ArmorPenetration = 15;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(ArmorPenetration);
public override void SetDefaults()
{
CalamityGlobalItem modItem = Item.Calamity();
@@ -29,6 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
Item.height = 32;
Item.shootSpeed = 10f;
Item.damage = 24;
Item.ArmorPenetration = ArmorPenetration;
Item.mana = 10;
Item.useAnimation = Item.useTime = 36;
Item.useStyle = ItemUseStyleID.HoldUp;
Loaded 100 of 341 files, more files were not shown because too many files have changed in this diff. Show more