Merge branch '1.4.4' into hogfix-misc

This commit is contained in:
fryzahh committed 2026-08-05 20:55:07 -04:00
commit 99c35e392c
534 files changed
+2549 -1743

No files matched your search

+9 -1
View File
@@ -153,6 +153,10 @@ namespace CalamityMod.Balancing
// 25% resist to The Ballista's greatarrows.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<BallistaGreatArrow>()))));
// 15% resist to Dryad's Tears.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<AstrumAureus>(), Do(new ProjectileResistBalancingRule(0.85f, ProjectileType<DryadsTearMain>(), ProjectileType<DryadsTearBurst>()))));
#endregion
#region Duke Fishron
@@ -298,12 +302,16 @@ namespace CalamityMod.Balancing
// 60% resist to Corinth Prime's grenades.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.4f, ProjectileType<CorinthPrimeAirburst>()))));
// 50% resist to Stratus Sphere
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<StratusBlackHole>()))));
// 35% resist to Sulphuric Acid Cannon's explosions.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<SulphuricAcidCannonExplosion>()))));
// 20% resist to Valediction's typhoons; will catch Nuclear Fury as well but that doesn't matter.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.DevourerOfGods, Do(new ProjectileResistBalancingRule(0.8f, ProjectileType<NuclearFuryProjectile>()))));
#endregion The Devourer of Gods
#region Exo Mechs: Ares
-5
View File
@@ -40,11 +40,6 @@ namespace CalamityMod.Buffs
{
player.GetDamage<MagicDamageClass>() -= 0.1f;
}
else if (type == BuffID.Clairvoyance)
{
player.GetDamage<MagicDamageClass>() -= 0.02f;
player.GetCritChance<MagicDamageClass>() -= 2;
}
else if (type == BuffID.SugarRush)
{
player.moveSpeed -= 0.1f;
+1 -1
View File
@@ -7,7 +7,7 @@ namespace CalamityMod.Buffs.Potions
{
public class Soaring : ModBuff
{
public override LocalizedText Description => base.Description.WithFormatArgs(SoaringPotion.FlightBoost.ToPercent());
public override LocalizedText Description => base.Description.WithFormatArgs(SoaringPotion.FlightTimeBoost.ToPercent());
public override void SetStaticDefaults()
{
+21
View File
@@ -0,0 +1,21 @@
using CalamityMod.Items.Accessories;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Buffs.StatBuffs
{
public class FulfilledContract : ModBuff
{
public override void SetStaticDefaults()
{
Main.debuff[Type] = false;
Main.pvpBuff[Type] = true;
Main.buffNoSave[Type] = true;
}
public override void Update(Player player, ref int buffIndex)
{
Main.buffNoTimeDisplay[Type] = false;
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

+50 -14
View File
@@ -842,7 +842,7 @@ namespace CalamityMod.CalPlayer
public int theBeeCooldown = 0;
public bool aFossil = false;
public bool fallingBlockProtection = false;
public bool trapProtection = false;
public bool archaicPowder = false;
public bool alluringBait = false;
public bool enchantedPearl = false;
public bool rBrain = false;
@@ -877,6 +877,7 @@ namespace CalamityMod.CalPlayer
public bool eGauntlet = false;
/// <summary> <inheritdoc cref="magmaStoneVisuals"/> </summary>
public bool eGauntletVisuals = true;
public bool volatileGelatinVisuals = true;
/// <summary>
/// Used to prevent melee speed stacking with Feral Claws and its upgrades.<br/>
/// Feral Claws = 1, Power Glove = 2, Mechanical Glove = 3, Fire Gauntlet = 4, Elemental Gauntlet = 5
@@ -981,6 +982,7 @@ namespace CalamityMod.CalPlayer
public bool fleshTotemVisual = false;
public int fleshTotemManaStorage = 0;
public bool bloodPact = false;
public bool CanBeCritByThePact = false;
public bool bloodflareCore = false;
public int bloodflareCoreRemainingHealOverTime = 0;
@@ -1069,10 +1071,10 @@ namespace CalamityMod.CalPlayer
public bool dynamoStemCells = false;
public bool etherealExtorter = false;
public Item AccessoryParryItem = null;
public bool blazingCore = false;
public int blazingCoreParry = 0;
public int blazingCoreSuccessfulParry = 0;
public bool blazingCoreEmpoweredParry = false;
public bool divineProvidence = false;
public int divineProvParry = 0;
public int divineProvSuccessfulParry = 0;
public bool divineProvEmpoweredParry = false;
public bool voltaicJelly = false;
public bool jellyChargedBattery = false;
/// <summary> General cooldown for accessories which spawn projectiles on minion hits. </summary>
@@ -1151,6 +1153,7 @@ namespace CalamityMod.CalPlayer
public int voidFrameCounter = 0;
/// <summary> <inheritdoc cref="voidFrameCounter"/> </summary>
public int voidFrame = 0;
public int volatileGelHits = 0;
public bool rottenDogTooth = false;
public bool angelicAlliance = false;
public int angelicActivate = -1;
@@ -2122,6 +2125,9 @@ namespace CalamityMod.CalPlayer
if (crimEffigy)
Player.statLifeMax2 = (int)(Player.statLifeMax2 * (1f - CrimsonEffigy.MaxHealthLossPercent));
if (CanBeCritByThePact)
Player.statLifeMax2 = (int)(Player.statLifeMax2 * ThePact.MaxLifeMult);
ResetRogueStealth();
calamityBonusLuck = 0f;
@@ -2359,7 +2365,7 @@ namespace CalamityMod.CalPlayer
protolithBangleVisual = false;
aFossil = false;
fallingBlockProtection = false;
trapProtection = false;
archaicPowder = false;
alluringBait = false;
enchantedPearl = false;
rBrain = false;
@@ -2400,6 +2406,7 @@ namespace CalamityMod.CalPlayer
ascendantInsignia = false;
fishStocks = false;
magmaStoneVisuals = true;
volatileGelatinVisuals = true;
eGauntlet = false;
eGauntletVisuals = true;
gloveLevel = 0;
@@ -2430,6 +2437,7 @@ namespace CalamityMod.CalPlayer
fleshTotemVisual = false;
fleshTotemMinion = false;
bloodPact = false;
CanBeCritByThePact = false;
bloodflareCore = false;
chaliceOfTheBloodGod = false;
chaliceHeartStyle = false;
@@ -2473,7 +2481,7 @@ namespace CalamityMod.CalPlayer
dynamoStemCells = false;
etherealExtorter = false;
AccessoryParryItem = null;
blazingCore = false;
divineProvidence = false;
voltaicJelly = false;
jellyChargedBattery = false;
starbusterCore = false;
@@ -2974,6 +2982,9 @@ namespace CalamityMod.CalPlayer
#endregion
#region Screen Position Movements
float HalleyScopeLerp = 0;
bool HalleyToggle = false;
public override void ModifyScreenPosition()
{
// CIT 08FEB2025: Photosensitivity config also disables screenshake
@@ -2983,6 +2994,19 @@ namespace CalamityMod.CalPlayer
Main.screenPosition += Main.rand.NextVector2Circular(GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower, GeneralScreenShakePower * CalamityClientConfig.Instance.ScreenshakePower);
GeneralScreenShakePower = MathHelper.Clamp(GeneralScreenShakePower - 0.185f, 0f, 20f * CalamityClientConfig.Instance.ScreenshakePower);
if (Player.HeldItem.type != ModContent.ItemType<HalleysInferno>())
HalleyToggle = false;
else if (Player.HeldItem.JustPressedKeybind())
HalleyToggle = !HalleyToggle;
HalleyScopeLerp = MathHelper.Clamp(HalleyScopeLerp + (HalleyToggle ? 0.05f : -0.05f), 0, 1);
if (HalleyScopeLerp > 0)
{
var screenSize = new Vector2(Main.screenWidth, Main.screenHeight);
Vector2 center = Main.screenPosition + screenSize * 0.5f;
Main.screenPosition -= (Vector2.Clamp((center - Main.MouseWorld) / screenSize, new(-0.5f), new(0.5f)) / Main.GameZoomTarget * MathHelper.SmoothStep(0, 1, HalleyScopeLerp)) * new Vector2(1920, 1200) * 0.9f;
}
}
#endregion
@@ -3378,9 +3402,9 @@ namespace CalamityMod.CalPlayer
xerocSet = false;
tracersDust = false;
GemTechState.OnDeathEffects();
blazingCoreParry = 0;
blazingCoreEmpoweredParry = false;
blazingCoreSuccessfulParry = 0;
divineProvParry = 0;
divineProvEmpoweredParry = false;
divineProvSuccessfulParry = 0;
flameLickedShellParry = 0;
flameLickedShellEmpoweredParry = false;
profanedCrystalAnim = -1;
@@ -3733,7 +3757,7 @@ namespace CalamityMod.CalPlayer
if (AccessoryParryItem != null && AccessoryParryItem.JustPressedKeybind())
{
if (blazingCore && blazingCoreParry == 0 && blazingCoreSuccessfulParry == 0)
if (divineProvidence && divineProvParry == 0 && divineProvSuccessfulParry == 0)
{
//minor cheese prevention with standing on a spike with later game gear spamming parry :skull:
//because of ordering, if they do not have the cooldown, it will not check the projectile array. Likewise if there are no bosses alive.
@@ -3741,8 +3765,8 @@ namespace CalamityMod.CalPlayer
if (!Player.HasCooldown(ParryCooldown.ID) || Player.ownedProjectileCounts[ProjectileType<BlazingStarHeal>()] == 0)
{
Player.SetScreenshake(3.5f);
blazingCoreParry = 30;
SoundEngine.PlaySound(BlazingCore.ParryActivateSound, Player.Center);
divineProvParry = 30;
SoundEngine.PlaySound(DivineProvidence.ParryActivateSound, Player.Center);
var mySourceIsIMadeItUp = Player.GetSource_FromThis();
int blazingSun = Projectile.NewProjectile(mySourceIsIMadeItUp, Player.Center, Vector2.Zero, ProjectileType<BlazingSun>(), 0, 0f, Player.whoAmI, 0f, 0f);
Main.projectile[blazingSun].Center = Player.Center;
@@ -4812,7 +4836,7 @@ namespace CalamityMod.CalPlayer
Player.velocity.Y = 0.5f;
}
else
Player.velocity.Y = 0f;
Player.velocity.Y = 1E-05f;
if (CalamityKeybinds.ExoChairSlowdownHotkey.Current)
Player.velocity *= 0.5f;
@@ -5198,6 +5222,15 @@ namespace CalamityMod.CalPlayer
if (Player.chiselSpeed)
Player.pickSpeed += 0.1f;
// Prevent Archaic Powder mining speed from stacking with Ancient Chisel or Ancient Fossil
if (archaicPowder)
{
if (Player.chiselSpeed)
Player.pickSpeed += 0.15f;
if (aFossil)
Player.pickSpeed += AncientFossil.MiningSpeedBoost;
}
if (oceanCrest)
{
bool surface = Player.Center.Y < Main.worldSurface * 16.0;
@@ -6053,7 +6086,10 @@ namespace CalamityMod.CalPlayer
float scale = MathHelper.Max(Main.screenWidth, Main.screenHeight) / size * 0.4f;
if (ProfanedMoonlightAuroraDrawer is null || ProfanedMoonlightAuroraDrawer.Size != size)
{
ProfanedMoonlightAuroraDrawer?.Dispose();
ProfanedMoonlightAuroraDrawer = FluidFieldManager.CreateField(size, scale, 0.1f, 50f, 0.992f);
}
int sourceArea = (int)Math.Ceiling(6f / ProfanedMoonlightAuroraDrawer.Scale) + 1;
ProfanedMoonlightAuroraDrawer.ShouldUpdate = Player.miscCounter % 2 == 0;
+42 -31
View File
@@ -7,7 +7,6 @@ using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer.Dashes;
using CalamityMod.Cooldowns;
using CalamityMod.DataStructures;
using CalamityMod.Dusts;
using CalamityMod.Enums;
using CalamityMod.Events;
@@ -24,7 +23,6 @@ using CalamityMod.Items.Armor.Reaver;
using CalamityMod.Items.Armor.Silva;
using CalamityMod.Items.Armor.Sulphurous;
using CalamityMod.Items.Armor.Tarragon;
using CalamityMod.Items.Armor.Victide;
using CalamityMod.Items.Armor.Wulfrum;
using CalamityMod.Items.Potions;
using CalamityMod.Items.Tools;
@@ -42,7 +40,6 @@ using CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses;
using CalamityMod.Particles;
using CalamityMod.Projectiles.Magic;
using CalamityMod.Projectiles.Melee;
using CalamityMod.Projectiles.Pets;
using CalamityMod.Projectiles.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Projectiles.Typeless;
@@ -146,7 +143,7 @@ namespace CalamityMod.CalPlayer
NetMessage.SendData(MessageID.Dodge, -1, -1, null, Player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
}
#endregion
#region Pre Kill
@@ -209,9 +206,9 @@ namespace CalamityMod.CalPlayer
chaliceBleedoutBuffer = 0D;
chaliceDamagePointPartialProgress = 0D;
}
Player.HealPlayer(100);
Player.HealPlayer(Items.Accessories.NebulousCore.HealLifeOnRevive);
Player.AddCooldown(Cooldowns.NebulousCore.ID, CalamityUtils.SecondsToFrames(90));
Player.AddCooldown(Cooldowns.NebulousCore.ID, Items.Accessories.NebulousCore.ReviveCooldown);
return false;
}
@@ -393,7 +390,7 @@ namespace CalamityMod.CalPlayer
var npc = Main.npc[damageSource.SourceNPCIndex];
if (npc.ai[3] < 2) //Divinity Devourer
{
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.DivinityDevourer"+Main.rand.Next(1,4)).ToNetworkText(Player.name));
damageSource = PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.DivinityDevourer" + Main.rand.Next(1, 4)).ToNetworkText(Player.name));
}
else if (npc.ai[3] >= 3)
{
@@ -427,9 +424,13 @@ namespace CalamityMod.CalPlayer
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
if (Player.Calamity().yharimsGift)
target.AddBuff(ModContent.BuffType<AuricRebuke>(),120);
target.AddBuff(ModContent.BuffType<AuricRebuke>(), 120);
int debuffSpreadProj = ModContent.ProjectileType<DebuffSpreadEffect>();
if (Player.HasBuff<FulfilledContract>())
target.AddBuff(ModContent.BuffType<Laceration>(), ThePact.DebuffInflictionDuration);
int debuffSpreadProj = ModContent.ProjectileType<DebuffSpreadEffect>();
if ((Player.Calamity().abaddon || Player.Calamity().apollyon) && (target.Calamity().abaddonEffected || target.Calamity().apollyonEffected) && hit.Crit && abaddonCooldown == 0 && Player.ownedProjectileCounts[debuffSpreadProj] == 0)
{
int maxTargetNum = target.Calamity().apollyonEffected ? 10 : 6;
@@ -895,11 +896,11 @@ namespace CalamityMod.CalPlayer
modifiers.Cancel();
bool isIgnoredTrap = (proj.type == ProjectileID.PoisonDartTrap) || (proj.type == ProjectileID.VenomDartTrap) || (proj.type == ProjectileID.PoisonDart);
if (Player.Calamity().trapProtection && isIgnoredTrap)
if (Player.Calamity().archaicPowder && isIgnoredTrap)
modifiers.Cancel();
bool isReducedTrap = (proj.trap || proj.type == ProjectileID.RollingCactusSpike || proj.type == ProjectileID.Landmine) && !isIgnoredTrap;
if (Player.Calamity().trapProtection && isReducedTrap)
if (Player.Calamity().archaicPowder && isReducedTrap)
modifiers.SourceDamage *= (1f - ArchaicPowder.TrapDamageReduction);
// Reduce damage dealt by rainbow trails
@@ -1120,7 +1121,7 @@ namespace CalamityMod.CalPlayer
{
if (sulphurSet)
Main.npc[proj.Calamity().ParentNPCIndex].AddBuff(BuffID.Poisoned, SulphurousHelmet.SetBonusPoisonDuration);
}
}
}
if (proj.hostile && hurtInfo.Damage > 0)
@@ -1405,7 +1406,8 @@ namespace CalamityMod.CalPlayer
bool sufficientDamageForDodging = actualDamageTaken >= dodgeDamageGateValue;
//This is in a method here so the logic below can call it in multiple places
void GenericDodgeEffects() {
void GenericDodgeEffects()
{
double maxCooldownDurationDamagePercent = 0.5;
int maxCooldownDurationDamageValue = (int)Math.Round(Player.statLifeMax2 * (maxCooldownDurationDamagePercent - dodgeDamageGateValuePercent));
@@ -1465,7 +1467,7 @@ namespace CalamityMod.CalPlayer
storedShadowDodge = false;
return true;
}
if (!Player.HasCooldown(GlobalDodge.ID) && sufficientDamageForDodging && DodgeEffects.Count > 0)
{
GenericDodgeEffects();
@@ -1488,6 +1490,14 @@ namespace CalamityMod.CalPlayer
#region Modify Hurt
public override void ModifyHurt(ref Player.HurtModifiers modifiers)
{
if (CanBeCritByThePact && Main.rand.NextFloat() < ThePact.ChanceToBeCrit)
{
modifiers.SourceDamage *= ThePact.CritDmgTaken;
Player.AddBuff(ModContent.BuffType<FulfilledContract>(), ThePact.BoostDuration);
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/BloodPactCrit"));
}
// Calcium Potion knockback reduction
if (calcium)
modifiers.Knockback *= (1f - CalciumPotion.KnockbackResistance);
@@ -1498,7 +1508,7 @@ namespace CalamityMod.CalPlayer
#region Custom Hurt Sounds
if (hurtSoundTimer == 0)
{
if(Player.Transformation().Type != -1 && Player.Transformation().currentTransformation.HurtSound(Player) != null)
if (Player.Transformation().Type != -1 && Player.Transformation().currentTransformation.HurtSound(Player) != null)
{
var hurtSound = Player.Transformation().currentTransformation.HurtSound(Player).Value;
modifiers.DisableSound();
@@ -1553,23 +1563,23 @@ namespace CalamityMod.CalPlayer
// It has not yet been mitigated by any means.
//
if (blazingCoreParry > 0) //check for active parry
if (divineProvParry > 0) //check for active parry
{
if (blazingCoreParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry
if (divineProvParry >= 12) //only the first 18 frames (0.3 seconds) counts for a valid parry
{
if (!Player.HasCooldown(ParryCooldown.ID))
{
// 17APR2024: Ozzatron: Blazing Core is a parry. It uses vanilla parry iframes and benefits from Cross Necklace.
int blazingCoreParryIFrames = Player.ComputeParryIFrames();
Player.GiveUniversalIFrames(blazingCoreParryIFrames, true);
// 17APR2024: Ozzatron: Divine Providence is a parry. It uses vanilla parry iframes and benefits from Cross Necklace.
int divineProvParryIFrames = Player.ComputeParryIFrames();
Player.GiveUniversalIFrames(divineProvParryIFrames, true);
blazingCoreEmpoweredParry = true;
divineProvEmpoweredParry = true;
modifiers.Cancel();
modifiers.DisableSound(); //prevents hurt sound from playing, had no idea this was a thing
}
SoundEngine.PlaySound(BlazingCore.ParrySuccessSound, Player.Center);
SoundEngine.PlaySound(DivineProvidence.ParrySuccessSound, Player.Center);
float power = 2;
for (int i = 0; i < (int)(20 * power); i++)
@@ -1599,12 +1609,12 @@ namespace CalamityMod.CalPlayer
Particle orb2 = new CustomPulse(Player.Center, Vector2.Zero, Color.Khaki, "CalamityMod/Particles/BloomRing", new Vector2(1f, 0.5f), 0, 0, 2.1f * power, 25);
GeneralParticleHandler.SpawnParticle(orb2);
blazingCoreSuccessfulParry = 60;
divineProvSuccessfulParry = 60;
Player.AddCooldown(ParryCooldown.ID, 60 * 30, false, "blazingcore"); //cooldown is frames in seconds multiplied by the desired amount of seconds
}
if (blazingCoreParry > 1)
blazingCoreParry = 1; //schedule parry to end next frame
if (divineProvParry > 1)
divineProvParry = 1; //schedule parry to end next frame
}
else if (flameLickedShellParry > 0)
{
@@ -2220,12 +2230,13 @@ namespace CalamityMod.CalPlayer
}
}
if (fleshTotem && hurtInfo.Damage > 0)
if (fleshTotem && hurtInfo.Damage > 0 && fleshTotemManaStorage > 0)
{
SoundStyle Counter = new SoundStyle("CalamityMod/Sounds/Custom/BrainOfCthulhu/BoC_Rev_Shield_Down");
if (fleshTotemManaStorage >= 100 && fleshTotemVisual)
SoundEngine.PlaySound(Counter with { Volume = 0.75f}, Player.Center);
int lostSoulAmount = fleshTotemManaStorage / 25;
SoundEngine.PlaySound(Counter with { Volume = 0.75f }, Player.Center);
int lostSoulAmount = (fleshTotemManaStorage / 2) / 25;
int lostSoulDamage = (int)Player.GetTotalDamage<MagicDamageClass>().ApplyTo(FleshTotem.lostSoulDamage);
if (Player.ownedProjectileCounts[ModContent.ProjectileType<FleshTotemMinion>()] != 0)
{
for (int i = 0; i < Main.maxProjectiles; i++)
@@ -2235,13 +2246,13 @@ namespace CalamityMod.CalPlayer
{
for (int k = 0; k < lostSoulAmount; k++)
{
Projectile.NewProjectile(Player.GetSource_Accessory_OnHurt(FindAccessory<FleshTotem>(), hurtInfo.DamageSource), proj.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.4f, 0.55f), ModContent.ProjectileType<FleshTotemSoul>(), FleshTotem.lostSoulDamage, 0f, Main.myPlayer, 0f, 0f, 3f);
Projectile.NewProjectile(Player.GetSource_Accessory_OnHurt(FindAccessory<FleshTotem>(), hurtInfo.DamageSource), proj.Center, new Vector2(10, 10).RotatedByRandom(100) * Main.rand.NextFloat(0.4f, 0.55f), ModContent.ProjectileType<FleshTotemSoul>(), lostSoulDamage, 0f, Main.myPlayer, 0f, 0f, 3f);
}
break;
}
}
}
fleshTotemManaStorage = 0;
fleshTotemManaStorage = fleshTotemManaStorage / 2;
}
// By setting brainOfConfusionItem, these accessories have this code already,
@@ -2369,7 +2380,7 @@ namespace CalamityMod.CalPlayer
{
int deificProjDamage = (int)(Player.GetBestClassDamage().ApplyTo(DeificAmulet.StarDamage));
Projectile onHitProj = Main.projectile[Projectile.NewProjectile(source, Player.Center, new Vector2(0,-15 * (rampartOfDeities && n % 2 == 0 ? 0.75f: 1.25f)).RotatedBy(MathHelper.TwoPi/projAmount*n), ModContent.ProjectileType<AstralStar>(), deificProjDamage, 4f, Player.whoAmI)];
Projectile onHitProj = Main.projectile[Projectile.NewProjectile(source, Player.Center, new Vector2(0, -15 * (rampartOfDeities && n % 2 == 0 ? 0.75f : 1.25f)).RotatedBy(MathHelper.TwoPi / projAmount * n), ModContent.ProjectileType<AstralStar>(), deificProjDamage, 4f, Player.whoAmI)];
if (onHitProj.whoAmI.WithinBounds(Main.maxProjectiles))
{
onHitProj.DamageType = DamageClass.Generic;
+4 -2
View File
@@ -275,7 +275,7 @@ namespace CalamityMod.CalPlayer
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
{
totalNegativeLifeRegen -= Player.statMana/100f * Items.Accessories.ChaosStone.LostRegenPer100Mana;
totalNegativeLifeRegen -= (Player.statMana/100f * Items.Accessories.ChaosStone.LostRegenPer100Mana) + Items.Accessories.ChaosStone.BaseLostRegen;
}
//
@@ -707,6 +707,9 @@ namespace CalamityMod.CalPlayer
regen *= LivingDew.NaturalRegenPower;
else if (honeyDew)
regen *= HoneyDew.NaturalRegenPower;
if (Player.HasBuff<FulfilledContract>())
regen *= ThePact.NaturalRegenBoost;
// The Camper counteracts the regen loss while moving horizontally
if (camper && (Player.velocity.X != 0 && Player.grappling[0] <= 0))
{
@@ -738,7 +741,6 @@ namespace CalamityMod.CalPlayer
finalRegen += 4f;
regeneratorDamage = finalRegen * Regenerator.RegenToDamageRatio;
Player.GetDamage<GenericDamageClass>() += regeneratorDamage;
if (Player.lifeRegen > 0)
Player.lifeRegen = 0;
+34 -12
View File
@@ -2026,8 +2026,8 @@ namespace CalamityMod.CalPlayer
if (Player.velocity.Y == 0 && fallingBootVelCheckTimer > 10)
{
float power = Utils.Remap(fallingBootVelCheckTimer, 10, 40, 0.1f, 1);
float scaledPower = (float)Math.Pow(power, 3);
int damage = (int)Player.GetBestClassDamage().ApplyTo(1500 * scaledPower); // Damage scales down thrice
float scaledPower = (float)Math.Pow(power, 2);
int damage = (int)Player.GetBestClassDamage().ApplyTo(300 * scaledPower); // Damage scales down thrice
Vector2 playerFeet = Player.Center + Vector2.UnitY * 26 * Player.gravDir;
float blastSize = 120 * power;
@@ -2535,15 +2535,15 @@ namespace CalamityMod.CalPlayer
if (auralisAuroraCooldown > 0)
auralisAuroraCooldown--;
if (blazingCore)
if (divineProvidence)
{
if (blazingCoreSuccessfulParry > 0)
BlazingCore.HandleStars(Player);
else if (blazingCoreParry > 0)
BlazingCore.HandleParryCountdown(Player);
if (divineProvSuccessfulParry > 0)
DivineProvidence.HandleStars(Player);
else if (divineProvParry > 0)
DivineProvidence.HandleParryCountdown(Player);
}
else if (blazingCoreParry > 0)
blazingCoreParry--;
else if (divineProvParry > 0)
divineProvParry--;
else if (flameLickedShellParry > 0)
{
if (flameLickedShell)
@@ -2941,6 +2941,29 @@ namespace CalamityMod.CalPlayer
}
}
if (Player.volatileGelatin)
{
Player.volatileGelatinCounter++;
int npcCount = 0;
int npcType = ModContent.NPCType<VolatileSlime>();
for (int x = 0; x < Main.maxNPCs; x++)
{
NPC npc = Main.npc[x];
if (npc.active && npc.type == npcType && npc.ai[1] == Player.whoAmI && npc.ai[3] == 0)
npcCount++;
}
int wingFlatBoost = 15; // 0.3 seconds of flight
float jumpSpeedBoost = 0.25f; // 5% jump speed
if (Player.wingTimeMax > 0)
Player.wingTimeMax += (wingFlatBoost * npcCount);
Player.jumpSpeedBoost += (jumpSpeedBoost * npcCount);
}
else
volatileGelHits = 0;
// Vortex Armor nerf
if (Player.vortexStealthActive && Player.HeldItem.type != ItemID.PsychoKnife)
{
@@ -3752,10 +3775,9 @@ namespace CalamityMod.CalPlayer
(reaverSpeed ? ReaverHeadMobility.SetBonusFlightBoost : 0D) +
(angelTreads ? AngelTreads.FlightTimeBoost : 0D) +
(blueCandle ? WeightlessCandle.WingTimeBoost : 0D) +
(soaring ? SoaringPotion.FlightBoost : 0D) +
(soaring ? SoaringPotion.FlightTimeBoost : 0D) +
(prismaticGreaves ? PrismaticGreaves.FlightTimeBoost : 0D) +
(plagueReaper ? PlagueReaperMask.SetBonusFlightTimeBoost : 0D) +
(ascendantInsignia ? AscendantInsignia.FlightTimeBoost : Player.empressBrooch ? 0.33D : 0D) +
externalFlightTimeMultBoost;
if (community)
@@ -4139,9 +4161,9 @@ namespace CalamityMod.CalPlayer
Player.lavaImmune = true;
Player.fireWalk = true;
Player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
Player.buffImmune[ModContent.BuffType<Daybroken>()] = true;
Player.buffImmune[BuffID.OnFire] = true;
Player.buffImmune[BuffID.Burning] = true;
Player.buffImmune[BuffID.Daybreak] = true;
if (Player.wingTimeMax > 0)
Player.wingTimeMax = (int)(Player.wingTimeMax * 1.1D);
+3 -3
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
}
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.FrontAccFront); //me when the player layer is called front acc front :skull:
public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.blazingCore ? EncasementType.BlazingCore : EncasementType.FlameLickedShell;
public EncasementType GetEncasementTypeFor(CalamityPlayer modPlayer) => modPlayer.divineProvidence ? EncasementType.BlazingCore : EncasementType.FlameLickedShell;
public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
{
@@ -25,7 +25,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
bool visible = drawInfo.shadow == 0f && !drawPlayer.dead;
visible = encasement switch
{
EncasementType.BlazingCore => visible && modPlayer.blazingCoreParry > 0,
EncasementType.BlazingCore => visible && modPlayer.divineProvParry > 0,
EncasementType.FlameLickedShell => visible && modPlayer.flameLickedShellParry > 0,
_ => false
};
@@ -45,7 +45,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
{
case EncasementType.BlazingCore:
tex += "BlazingCoreCrystal";
currentParry = calPlayer.blazingCoreParry;
currentParry = calPlayer.divineProvParry;
defaultOpacity = 0.725f;
scale = 1.15f;
break;
+1 -1
View File
@@ -71,7 +71,7 @@ namespace CalamityMod
// Vanilla
public static readonly Condition DownedBetsy = Create("Drops.DownedBetsy", () => DownedBossSystem.downedBetsy);
public static readonly Condition DownedDreadnautilus = Create("Drops.DownedDreadnautilus", () => DownedBossSystem.downedDreadnautilus);
//
// Calamity Biome conditions
//
-4
View File
@@ -50,10 +50,6 @@ namespace CalamityMod
[DefaultValue(false)]
public bool BoCSpriteChange { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool EnableVanillaTextureEdits { get; set; }
[BackgroundColor(192, 54, 64, 192)]
[DefaultValue(true)]
public bool SunkenSeaBackgroundDistortion { get; set; }
+24 -27
View File
@@ -1,4 +1,5 @@
using CalamityMod.Items.Weapons.Melee;
using System;
using CalamityMod.Items.Weapons.Melee;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
@@ -72,7 +73,12 @@ namespace CalamityMod.DataStructures
/// <param name="CanLunge">>Used by evil attunements to check if a regular dash is avaialble</param>
/// <param name="PowerLungeCounter">Used by evil attunements to check if a strong dash is avaialble</param>
/// <returns></returns>
public virtual bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter) => true;
public virtual bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter)
{
Projectile blade = Projectile.NewProjectileDirect(source, position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
blade.originalDamage = (int)MathF.Round(blade.originalDamage * DamageMultiplier);
return false;
}
public virtual void PassiveEffect(Player player, IEntitySource source, ref int UseTimer, ref bool Procced, Projectile projectile = null)
{
@@ -155,20 +161,14 @@ namespace CalamityMod.DataStructures
public override bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter)
{
switch (Combo)
Projectile blade = Projectile.NewProjectileDirect(source, player.Center, new Vector2(speedX, speedY), ProjectileType<BitingEmbrace>(), damage, knockBack, player.whoAmI, 0, 15);
blade.originalDamage = (int)MathF.Round(blade.originalDamage * DamageMultiplier);
if (Combo > 0)
{
case 0:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<BitingEmbrace>(), damage, knockBack, player.whoAmI, 0, 15);
break;
case 1:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<BitingEmbrace>(), damage, knockBack, player.whoAmI, 1, 20);
break;
case 2:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<BitingEmbrace>(), damage, knockBack, player.whoAmI, 2, 50);
break;
blade.ai[0] = Combo;
blade.ai[1] = (Combo == 2 ? 50 : 20);
}
Combo++;
if (Combo > 2)
Combo = 0;
@@ -202,7 +202,8 @@ namespace CalamityMod.DataStructures
public override bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter)
{
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<DecaysRetort>(), damage, knockBack, player.whoAmI, 26, (float)CanLunge);
Projectile blade = Projectile.NewProjectileDirect(source, player.Center, new Vector2(speedX, speedY), ProjectileType<DecaysRetort>(), damage, knockBack, player.whoAmI, 26, (float)CanLunge);
blade.originalDamage = (int)MathF.Round(blade.originalDamage * DamageMultiplier);
CanLunge = 0;
return false;
}
@@ -283,20 +284,14 @@ namespace CalamityMod.DataStructures
public override bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter)
{
switch (Combo)
Projectile blade = Projectile.NewProjectileDirect(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueBitingEmbrace>(), damage, knockBack, player.whoAmI, 0, 15);
blade.originalDamage = (int)MathF.Round(blade.originalDamage * DamageMultiplier);
if (Combo > 0)
{
case 0:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueBitingEmbrace>(), damage, knockBack, player.whoAmI, 0, 15);
break;
case 1:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueBitingEmbrace>(), damage, knockBack, player.whoAmI, 1, 20);
break;
case 2:
Projectile.NewProjectile(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueBitingEmbrace>(), damage, knockBack, player.whoAmI, 2, 50);
break;
blade.ai[0] = Combo;
blade.ai[1] = (Combo == 2 ? 50 : 20);
}
Combo++;
if (Combo > 2)
Combo = 0;
@@ -331,6 +326,7 @@ namespace CalamityMod.DataStructures
public override bool Shoot(Player player, IEntitySource source, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack, ref int Combo, ref int CanLunge, ref int PowerLungeCounter)
{
Projectile whipProj = Projectile.NewProjectileDirect(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueGrovetendersTouch>(), damage, knockBack, player.whoAmI, 0, 0);
whipProj.originalDamage = (int)MathF.Round(whipProj.originalDamage * DamageMultiplier);
if (whipProj.ModProjectile is TrueGrovetendersTouch whip)
whip.flipped = Combo == 0 ? 1 : -1;
Combo++;
@@ -373,6 +369,7 @@ namespace CalamityMod.DataStructures
PowerLungeCounter = 0;
}
Projectile proj = Projectile.NewProjectileDirect(source, player.Center, new Vector2(speedX, speedY), ProjectileType<TrueDecaysRetort>(), damage, knockBack, player.whoAmI, 26f, CanLunge > 0 ? 1f : 0f);
proj.originalDamage = (int)MathF.Round(proj.originalDamage * DamageMultiplier);
if (proj.ModProjectile is TrueDecaysRetort rapier)
rapier.ChargedUp = powerLungeAvailable;
CanLunge--;
-9
View File
@@ -11,11 +11,6 @@ namespace CalamityMod.ExtraTextures
[Autoload(Side = ModSide.Client)]
public class ExtraTextureRefs : ModSystem
{
// Destroyer glowmasks
public static Asset<Texture2D> DestroyerHeadGlowmask;
public static Asset<Texture2D> DestroyerBodyGlowmask;
public static Asset<Texture2D> DestroyerTailGlowmask;
// WoF, These are not "exactly" the ExtraTextures
public static Asset<Texture2D> WallOfFleshDemonSickleTexture;
@@ -42,10 +37,6 @@ namespace CalamityMod.ExtraTextures
// TODO: - Every other ExtraTextures Reference could be move in here
public override void OnModLoad()
{
DestroyerHeadGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow", AssetRequestMode.AsyncLoad);
DestroyerBodyGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
DestroyerTailGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
WallOfFleshDemonSickleTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad);
FlyingCarpetVanilla = TextureAssets.FlyingCarpet;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 472 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 809 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 672 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

+2
View File
@@ -142,6 +142,8 @@ namespace CalamityMod.ILEditing
IL_UIWorldCreation.AddWorldSizeOptions += SwapSmallDescriptionKey;
On_WorldGen.MakeDungeon += LimitDungeonEntranceXPosition;
IL_WorldGen.DungeonHalls += LimitDungeonHallsXPosition;
IL_WorldGen.IslandHouse += MakeFledgingWingsMoreCommon;
IL_WorldGen.AddBuriedChest_int_int_int_bool_int_bool_ushort += DisableFledglingWingsSecondary;
// Removal of vanilla stupidity
IL_Player.StatusFromNPC += RemoveExpertBrainRandomDebuffs;
+9
View File
@@ -653,8 +653,14 @@ namespace CalamityMod.ILEditing
{
if (self.Calamity().ChaosStone)
{
if (amount <= -1)
amount = self.GetManaCost(item);
if (pay)
{
self.statMana -= item.mana;
CombinedHooks.OnConsumeMana(self, item, amount);
}
if (self.statMana < -self.statManaMax2)
self.statMana = -self.statManaMax2;
return true;
@@ -709,7 +715,10 @@ namespace CalamityMod.ILEditing
ref FluidField calamityFireDrawer = ref player.Calamity().CalamityFireDrawer;
ref Vector2 firePosition = ref player.Calamity().FireDrawerPosition;
if (calamityFireDrawer is null || calamityFireDrawer.Size != size)
{
calamityFireDrawer?.Dispose();
calamityFireDrawer = FluidFieldManager.CreateField(size, scale, 0.1f, 50f, 0.992f);
}
// Update the fire draw position.
firePosition = new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f;
+67
View File
@@ -208,5 +208,72 @@ namespace CalamityMod.ILEditing
}
#endregion Prevent Abyss/Dungeon Interactions
#region Fledgling Wings Loot Changes
/// <summary>
/// Changes the primary loot of Floating Island chests to include Fledging Wings
/// </summary>
private static void MakeFledgingWingsMoreCommon(ILContext il)
{
var cursor = new ILCursor(il);
// How the code we are moving to works:
// Set num13 equal to the number of islands generated. If greater than 3, set to a random number between 0-3 inclusive. Then use that value in a 4-branch switch statement.
// This makes num13 always be a value between 0-3, for the 4 primary items in island loot.
// To accomodate for Fledgling Wings, we must change this to check for being greater than 4, then to set to a random number between 0-4 inclusive, then make the switch have 5 branches.
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchStloc(13)))
{
LogFailure("Fledgling Wings", "Could not move to the location of determining Floating Island primary loot 1.");
return;
}
// Emit a delegate which reimplements the logic for choosing the primary loot of floating islands with Fledgling Wings, then return the ID of the item.
var label = il.DefineLabel();
cursor.EmitDelegate<Func<int>>(() =>
{
int island = GenVars.skyIslandHouseCount;
if (island > 4)
island = Main.rand.Next(5);
return island switch
{
1 => 65, // Starfury
2 => 158, // Lucky Horseshoe
3 => 2219, // Celestial Magnet
4 => 4978, // Fledgling Wings
_ => 159, // Shiny Red Balloon
};
});
// Store this value in the variable which holds the ID of the item, then branch past the original logic.
cursor.Emit(OpCodes.Stloc, 13);
cursor.Emit(OpCodes.Br, label);
if (!cursor.TryGotoNext(MoveType.AfterLabel, i => i.MatchLdsfld<WorldGen>("getGoodWorldGen")))
{
LogFailure("Fledgling Wings", "Could not move after the switch statement.");
return;
}
cursor.MarkLabel(label);
}
/// <summary>
/// Disables Fledgling Wings being added as secondary loot in floating island chests
/// </summary>
private static void DisableFledglingWingsSecondary(ILContext il)
{
var cursor = new ILCursor(il);
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdloc(9)))
{
LogFailure("Fledgling Wings", "Could not move to the code adding Fledgling Wings as secondary loot.");
return;
}
// AND with 0 (false) so that the code to add Fledgling Wings as secondary loot never runs.
cursor.Emit(OpCodes.Ldc_I4_0);
cursor.Emit(OpCodes.And);
}
#endregion
}
}
+2 -2
View File
@@ -49,8 +49,8 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient(ItemID.ArcticDivingGear).
AddIngredient<DepthCharm>().
AddIngredient<DepthCells>(10).
AddIngredient<Lumenyl>(10).
AddIngredient<DepthCells>(20).
AddIngredient<Lumenyl>(15).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -2
View File
@@ -73,8 +73,8 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<MirageMirror>().
AddIngredient<InkBomb>().
AddIngredient<DepthCells>(5).
AddIngredient<Lumenyl>(5).
AddIngredient<DepthCells>(20).
AddIngredient<Lumenyl>(15).
AddTile(TileID.MythrilAnvil).
Register();
}
-1
View File
@@ -30,7 +30,6 @@ namespace CalamityMod.Items.Fishing
CreateRecipe().
AddIngredient(ItemID.FishingBobber).
AddIngredient<AerialiteBar>(5).
AddIngredient(ItemID.Feather).
AddTile(TileID.Anvils).
Register();
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Accessories
public static int MinRegenBoost => 2;
public static int MaxRegenBoost => 6;
public static float RegenTimeBoost => 1;
public static float NaturalRegenPower => 1.5f;
public static float NaturalRegenPower => 1.75f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinRegenBoost.ToRegenPerSecond(), MaxRegenBoost.ToRegenPerSecond(), (NaturalRegenPower - 1f).ToPercent(), RegenTimeBoost.ToPercent());
public override void SetDefaults()
+1 -7
View File
@@ -28,13 +28,7 @@ namespace CalamityMod.Items.Accessories
{
player.pickSpeed -= MiningSpeedBoost;
player.Calamity().fallingBlockProtection = true;
player.Calamity().trapProtection = true;
// Doesn't stack with downgrades
if (player.chiselSpeed)
player.pickSpeed += 0.15f;
if (player.Calamity().aFossil)
player.pickSpeed += AncientFossil.MiningSpeedBoost;
player.Calamity().archaicPowder = true;
}
public override void AddRecipes()
+4 -3
View File
@@ -15,13 +15,13 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
// These values override Soaring Insignia's
public static double FlightTimeBoost = 0.5D;
public static int FlightTimeBoostFlat = CalamityUtils.SecondsToFrames(4);
public static float MoveSpeedBoost = 0.15f;
public static float JumpSpeedBoost = 0.75f; // NOTE: Tooltip shares this number with move speed % as they're equal
public static float JumpSpeedBoost = 1f;
public static float AccelerationBoost = 0.5f;
public static int AbilityDuration = CalamityUtils.SecondsToFrames(4);
public static int AbilityCooldown = CalamityUtils.SecondsToFrames(40);
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeBoost.ToPercent(), MoveSpeedBoost.ToPercent(), (1f + AccelerationBoost).Round(), AbilityDuration.FramesToSeconds(), AbilityCooldown.FramesToSeconds());
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(FlightTimeBoostFlat.FramesToSeconds(), MoveSpeedBoost.ToPercent(), JumpSpeedBoost.ToJumpSpeedPercent(), (1f + AccelerationBoost).Round(), AbilityDuration.FramesToSeconds(), AbilityCooldown.FramesToSeconds());
public override void ModifyTooltips(List<TooltipLine> list) => list.IntegrateDynamicHotkey(Item);
public override void SetDefaults()
@@ -41,6 +41,7 @@ namespace CalamityMod.Items.Accessories
player.empressBrooch = true;
player.moveSpeed += MoveSpeedBoost;
player.jumpSpeedBoost += JumpSpeedBoost - 0.5f;
player.wingTimeMax += FlightTimeBoostFlat;
}
public override void AddRecipes()
+3 -3
View File
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 50;
Item.height = 48;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.defense = 4;
Item.accessory = true;
}
@@ -41,8 +41,8 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<OrnateShield>().
AddIngredient<CoreofCalamity>().
AddIngredient(ItemID.HallowedBar, 5).
AddIngredient<CoreofCalamity>().
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient(ItemID.WarriorEmblem).
AddIngredient<UelibloomBar>(2).
AddIngredient<UelibloomBar>(12).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<CrawCarapace>().
AddIngredient<DepthCells>(12).
AddIngredient<DepthCells>(20).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -71,7 +71,8 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<BloodPact>().
AddIngredient(ItemID.CharmofMyths).
AddIngredient<BloodstoneCore>(5).
AddIngredient<Bloodstone>(12).
AddIngredient<BloodOrb>(5).
AddIngredient<AscendantSpiritEssence>(4).
AddTile<CosmicAnvil>().
Register();
+3 -2
View File
@@ -10,12 +10,13 @@ namespace CalamityMod.Items.Accessories
public class ChaosStone : ModItem, ILocalizedModType
{
public static float LostRegenPer100Mana => 8;
public static float DamageMultPer100Mana => 0.05f;
public static int BaseLostRegen => 12;
public static float DamageMultPer100Mana => 0.055f;
public new string LocalizationCategory => "Items.Accessories";
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
var regenAmount = Main.LocalPlayer.statManaMax2 == 0 ? 0 : (int)((Main.LocalPlayer.statManaMax2 / 100f) * LostRegenPer100Mana) * 0.5f;
var regenAmount = Main.LocalPlayer.statManaMax2 == 0 ? 0 : (int)((Main.LocalPlayer.statManaMax2 / 100f) * LostRegenPer100Mana + BaseLostRegen) * 0.5f;
var dmgAmount = Main.LocalPlayer.statManaMax2 == 0 ? 0 : ((Main.LocalPlayer.statManaMax2 / 100f) * DamageMultPer100Mana * 100);
tooltips.FindAndReplaceAll("[REGEN]", regenAmount.ToString("0.#"));
tooltips.FindAndReplaceAll("[DAMAGE]", dmgAmount.ToString("0.#"));
+2 -2
View File
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.corrosiveSpine = true;
player.moveSpeed += 0.05f;
modPlayer.WaterDebuffMultiplier += 0.25f;
modPlayer.SicknessDebuffMultiplier += 0.25f;
modPlayer.WaterDebuffMultiplier += 0.5f;
modPlayer.SicknessDebuffMultiplier += 0.5f;
}
}
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CosmiliteBar>(5).
AddIngredient<CosmiliteBar>(10).
AddIngredient<Elumplate>(25).
AddIngredient<ExodiumCluster>(25).
AddTile<CosmicAnvil>().
+7 -7
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 26;
Item.height = 26;
Item.value = CalamityGlobalItem.RarityLimeBuyPrice;
Item.rare = ItemRarityID.Lime;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.rare = ItemRarityID.Yellow;
Item.accessory = true;
}
@@ -33,12 +33,12 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient<SeaSpiritAmulet>().
AddIngredient<AbyssGravel>(10).
AddIngredient<DepthCells>(5).
AddIngredient<PyreMantle>(10).
AddIngredient<ScoriaBar>(5).
AddIngredient<Voidstone>(10).
AddIngredient<Lumenyl>(5).
AddIngredient<AbyssGravel>(20).
AddIngredient<PyreMantle>(20).
AddIngredient<Voidstone>(20).
AddIngredient<DepthCells>(20).
AddIngredient<Lumenyl>(15).
AddTile(TileID.MythrilAnvil).
Register();
}
@@ -13,7 +13,8 @@ using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class BlazingCore : ModItem, ILocalizedModType
[LegacyName("BlazingCore")]
public class DivineProvidence : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
@@ -42,22 +43,22 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().blazingCore = true;
player.Calamity().divineProvidence = true;
player.Calamity().AccessoryParryItem = Item;
player.noKnockback = true;
}
public static void HandleStars(Player player)
{
bool empowered = player.Calamity().blazingCoreEmpoweredParry;
bool empowered = player.Calamity().divineProvEmpoweredParry;
float divisor = 3f;
int totalFlameProjectiles = 45;
int chains = 3;
float interval = totalFlameProjectiles / chains * divisor;
double patternInterval = Math.Floor(player.Calamity().blazingCoreSuccessfulParry / interval);
double patternInterval = Math.Floor(player.Calamity().divineProvSuccessfulParry / interval);
if (player.Calamity().blazingCoreSuccessfulParry % 4 == 0) //play sound every 4 frames
if (player.Calamity().divineProvSuccessfulParry % 4 == 0) //play sound every 4 frames
{
SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact, player.Center);
}
@@ -90,19 +91,19 @@ namespace CalamityMod.Items.Accessories
offset += 10f;
}
player.Calamity().blazingCoreSuccessfulParry--;
if (player.Calamity().blazingCoreSuccessfulParry <= 0)
player.Calamity().divineProvSuccessfulParry--;
if (player.Calamity().divineProvSuccessfulParry <= 0)
{
offset = 0f;
player.Calamity().blazingCoreEmpoweredParry = false;
player.Calamity().divineProvEmpoweredParry = false;
}
}
public static void HandleParryCountdown(Player player)
{
player.Calamity().blazingCoreParry--;
player.Calamity().divineProvParry--;
if (player.Calamity().blazingCoreParry > 0)
if (player.Calamity().divineProvParry > 0)
{
player.controlJump = false;
player.controlDown = false;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

+1 -1
View File
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddRecipeGroup("AnyGoldCrown").
AddIngredient<AerialiteBar>(6).
AddIngredient<AerialiteBar>(8).
AddIngredient(ItemID.Feather, 8).
AddTile(TileID.Anvils).
Register();
+6 -6
View File
@@ -14,13 +14,13 @@ namespace CalamityMod.Items.Accessories
{
public class FrozenCube : ModItem, ILocalizedModType
{
public static int mistBaseDamage = 1;
public static int slamBaseDamage = 20;
public static int baseAttackSpeed = 90;
public static int baseAttackCooldown = 180;
public static int mistBaseDamage => 5;
public static int slamBaseDamage => 20;
public static int baseAttackSpeed => 90;
public static int baseAttackCooldown => 180;
public static int usedDefenseDivide = 3;
public static int debuff = ModContent.BuffType<WindChilled>();
public static int usedDefenseDivide => 3;
public static int debuff => ModContent.BuffType<WindChilled>();
public static readonly SoundStyle noise = new("CalamityMod/Sounds/Item/ElumphantSound") { Volume = 0.6f };
public static readonly SoundStyle cry = new("CalamityMod/Sounds/Item/ElumphantCry") { Volume = 0.6f };
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.harpyRing = true;
player.moveSpeed += 0.1f;
player.moveSpeed += 0.2f;
}
public override void AddRecipes()
+2 -2
View File
@@ -14,8 +14,8 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public static int RegenBoost = 2;
public static int ReducedDoTAmount = 8;
public static int PostDebuffRegenTimeBoost = CalamityUtils.SecondsToFrames(10);
public static int ReducedDoTAmount = 12;
public static int PostDebuffRegenTimeBoost = CalamityUtils.SecondsToFrames(15);
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RegenBoost.ToRegenPerSecond(), ReducedDoTAmount.ToRegenPerSecond(), PostDebuffRegenTimeBoost.FramesToSeconds());
public override void SetDefaults()
{
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
public new string LocalizationCategory => "Items.Accessories";
public static int RegenTimeBoost => 1;
public static float NaturalRegenPower => 1.5f;
public static float NaturalRegenPower => 1.75f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((NaturalRegenPower - 1f).ToPercent(), RegenTimeBoost.ToPercent());
public override void SetDefaults()
{
+11 -3
View File
@@ -5,6 +5,7 @@ using CalamityMod.Rarities;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
@@ -12,6 +13,13 @@ namespace CalamityMod.Items.Accessories
public class NebulousCore : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static float DamageBoost => 0.12f;
public static int HealLifeOnRevive => 300;
public static int ReviveCooldown => CalamityUtils.SecondsToFrames(90);
public static int MaxStars => 15;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), HealLifeOnRevive, ReviveCooldown.FramesToSeconds());
public override void SetStaticDefaults()
{
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<GodSlayerInferno>()];
@@ -37,12 +45,12 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.nebulousCore = true;
player.GetDamage<GenericDamageClass>() += 0.1f;
player.GetDamage<GenericDamageClass>() += DamageBoost;
// Spawn nebula stars
if (Main.rand.NextBool(15))
{
// Count the number of current active nebula stars; if this is at least 10, no more can spawn
// Count the number of current active nebula stars; if this is at least 15, no more can spawn
int numProj = 0;
foreach (Projectile p in Main.ActiveProjectiles)
{
@@ -51,7 +59,7 @@ namespace CalamityMod.Items.Accessories
numProj++;
}
}
if (Main.rand.Next(15) >= numProj && numProj < 10)
if (Main.rand.Next(15) >= numProj && numProj < MaxStars)
{
int spawnRadius = 24;
for (int j = 0; j < 50; j++) // Attempt to spawn the star randomly around the player
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient(ItemID.AvengerEmblem).
AddIngredient<PerennialBar>(2).
AddIngredient<PerennialBar>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -2
View File
@@ -37,8 +37,8 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<CryonicBar>(5).
AddIngredient(ItemID.CrystalShard, 10).
AddIngredient<CryonicBar>(12).
AddIngredient(ItemID.CrystalShard, 20).
AddTile(TileID.MythrilAnvil).
Register();
}
+3 -3
View File
@@ -20,10 +20,10 @@ namespace CalamityMod.Items.Accessories
public static int MinRegenBoost => 2;
public static int MaxRegenBoost => 8;
public static int ReducedDoTAmount => 20;
public static int PostDebuffRegenTimeBoost => CalamityUtils.SecondsToFrames(10);
public static int ReducedDoTAmount => 24;
public static int PostDebuffRegenTimeBoost => CalamityUtils.SecondsToFrames(15);
public static float RegenTimeBoost => 1;
public static float NaturalRegenPower => 1.5f;
public static float NaturalRegenPower => 1.75f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinRegenBoost.ToRegenPerSecond(),MaxRegenBoost.ToRegenPerSecond(),ReducedDoTAmount.ToRegenPerSecond(), (NaturalRegenPower - 1f).ToPercent(),RegenTimeBoost.ToPercent());
public override void SetStaticDefaults()
{
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
CreateRecipe().
AddIngredient<SandSharkToothNecklace>().
AddIngredient<ReaperTooth>(6).
AddIngredient<DepthCells>(15).
AddIngredient<DepthCells>(20).
AddTile(TileID.TinkerersWorkbench).
Register();
}
+1
View File
@@ -32,6 +32,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.Calamity();
modPlayer.regenerator = true;
player.longInvince = true; // Gives better iframes because god help you if you end up getting hit twice
player.GetDamage<GenericDamageClass>() += player.Calamity().regeneratorDamage;
}
public override void ModifyTooltips(List<TooltipLine> list)
+1 -1
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
{
CreateRecipe().
AddIngredient(ItemID.CelestialEmblem).
AddIngredient<ScoriaBar>(5).
AddIngredient<ScoriaBar>(8).
AddIngredient<AshesofCalamity>(15).
AddTile(TileID.MythrilAnvil).
Register();
+2 -2
View File
@@ -211,8 +211,8 @@ namespace CalamityMod.Items.Accessories
OnePlace((float)player.lifeRegen / 2f), // Divided by 2 to show HP/s, because vanilla! Also normally we'd divide this by 2 in Expert without Well Fed, but we disable that shit
Sign(moveSpeedBoost) + TwoPlaces(100f * moveSpeedBoost),
TwoPlaces(20f * player.GetJumpBoost()));
// Show wing stats only if over 0 flight time
if (wingFlightTime > 0f)
// Show wing stats only if over 0 flight time and wings are equipped
if (wingFlightTime > 0f && player.equippedWings != null)
stats3 += this.GetLocalization("FlightTime").Format(TwoPlaces(wingFlightTime / 60f));
stats3 += "\n" + this.GetLocalization("MiscStats").Format(
player.aggro,
+1 -1
View File
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Accessories
AddIngredient<AshesofCalamity>(12).
AddIngredient<EssenceofEleum>(15).
AddIngredient<PlagueCellCanister>(15).
AddIngredient<DepthCells>(15).
AddIngredient<DepthCells>(20).
AddIngredient<ArmoredShell>(4).
AddTile<CosmicAnvil>().
Register();
+63
View File
@@ -0,0 +1,63 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class ThePact : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public static float MaxLifeMult => 2;
public static float ChanceToBeCrit => 0.25f;
public static float CritDmgTaken => 2.25f;
public static int BoostDuration => 900;
public static int DebuffInflictionDuration => 60;
public static float NaturalRegenBoost => 1.75f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifeMult, ChanceToBeCrit.ToPercent(), CritDmgTaken);
public override void SetStaticDefaults()
{
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<Laceration>()];
}
public override void SetDefaults()
{
Item.width = 46;
Item.height = 64;
Item.value = CalamityGlobalItem.RarityLightRedBuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().CanBeCritByThePact = true;
if (player.HasBuff<FulfilledContract>() && player.miscCounter % 3 == 0 && player.potionDelay > 0)
{
player.potionDelay -= 1;
if (player.potionDelay < 0)
player.potionDelay = 0;
if (player.HasBuff(BuffID.PotionSickness))
{
for (var i = 0; i < player.buffType.Length; i++)
{
if (player.buffType[i] == BuffID.PotionSickness)
{
player.buffTime[i] = player.potionDelay;
}
}
}
}
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 775 B

+1 -1
View File
@@ -106,7 +106,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient<PerennialBar>(5).
AddIngredient<PerennialBar>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
public override float MaxAscentSpeed => 3f;
public override float BaseAscent => 0.15f;
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 10f, 3f);
public override void SetStaticDefaults() => ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(210, 10f, 3f);
public override void SetDefaults()
{
+1 -1
View File
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient<ScoriaBar>(5).
AddIngredient<ScoriaBar>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -128,7 +128,7 @@ namespace CalamityMod.Items.Accessories.Wings
CreateRecipe().
AddIngredient<AngelTreads>().
AddIngredient(ItemID.SoulofFlight,20).
AddIngredient(ItemID.LunarBar, 5).
AddIngredient(ItemID.LunarBar, 10).
AddTile(TileID.LunarCraftingStation).
Register();
}
+3 -3
View File
@@ -55,9 +55,9 @@ namespace CalamityMod.Items.Accessories.Wings
{
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient<PlantyMush>(3).
AddIngredient<EffulgentFeather>(15).
AddIngredient<AscendantSpiritEssence>(2).
AddIngredient<PlantyMush>(45).
AddIngredient<EffulgentFeather>(10).
AddIngredient<AscendantSpiritEssence>(3).
AddTile<CosmicAnvil>().
Register();
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<AerialiteBar>(5).
AddIngredient<AerialiteBar>(10).
AddIngredient(ItemID.Feather, 5).
AddTile(TileID.Anvils).
Register();
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient<CryonicBar>(5).
AddIngredient<CryonicBar>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Accessories.Wings
{
CreateRecipe().
AddIngredient(ItemID.SoulofFlight, 20).
AddIngredient<UelibloomBar>(5).
AddIngredient<UelibloomBar>(10).
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -2
View File
@@ -51,9 +51,9 @@ namespace CalamityMod.Items.Accessories
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<WulfrumMetalScrap>(5).
AddIngredient<WulfrumMetalScrap>(10).
AddIngredient<EnergyCore>().
AddIngredient(ItemID.Chain, 2).
AddIngredient(ItemID.Chain, 3).
AddTile(TileID.Anvils).
Register();
}
+2 -1
View File
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Ammo
public override void AddRecipes()
{
CreateRecipe(333).
AddIngredient<BloodstoneCore>().
AddIngredient<Bloodstone>().
AddIngredient<BloodOrb>().
AddTile(TileID.MythrilAnvil).
Register();
}
+2 -1
View File
@@ -34,7 +34,8 @@ namespace CalamityMod.Items.Ammo
public override void AddRecipes()
{
CreateRecipe(333).
AddIngredient<BloodstoneCore>().
AddIngredient<Bloodstone>().
AddIngredient<BloodOrb>().
AddTile(TileID.MythrilAnvil).
Register();
}
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Ammo
{
Item.width = 22;
Item.height = 36;
Item.damage = 12;
Item.damage = 17;
Item.DamageType = DamageClass.Ranged;
Item.maxStack = Item.CommonMaxStack;
Item.consumable = true;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Ammo
{
Item.width = 8;
Item.height = 8;
Item.damage = 10;
Item.damage = 18;
Item.DamageType = DamageClass.Ranged;
Item.maxStack = Item.CommonMaxStack;
Item.consumable = true;
Loaded 100 of 534 files, more files were not shown because too many files have changed in this diff. Show more