Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into VictideSet
This commit is contained in:
commit
7069d236b4
774 files changed
+3053
-1829
No files matched your search
@@ -56,6 +56,55 @@ namespace CalamityMod.Backgrounds
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!Main.dedServ && (Main.LocalPlayer.InModBiome(ModContent.GetInstance<BiomeManagers.TimelessShoresBiome>())))
|
||||
{
|
||||
int drawLimitX = Main.screenWidth / 16;
|
||||
int drawLimitY = Main.screenHeight / 16;
|
||||
Point drawPoint = (Main.screenPosition / 16).ToPoint();
|
||||
for (int i = 0; i < drawLimitX; i++)
|
||||
{
|
||||
for (int j = 0; j < drawLimitY; j++)
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0 &&
|
||||
Main.tile[pos.X, pos.Y].LiquidAmount == 0)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!Main.dedServ && (Main.LocalPlayer.InModBiome(ModContent.GetInstance<BiomeManagers.PolypForestBiome>())))
|
||||
{
|
||||
int drawLimitX = Main.screenWidth / 16;
|
||||
int drawLimitY = Main.screenHeight / 16;
|
||||
Point drawPoint = (Main.screenPosition / 16).ToPoint();
|
||||
for (int i = 0; i < drawLimitX; i++)
|
||||
{
|
||||
for (int j = 0; j < drawLimitY; j++)
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!Main.dedServ && (Main.LocalPlayer.InModBiome(ModContent.GetInstance<BiomeManagers.RadiantReefsBiome>())))
|
||||
{
|
||||
int drawLimitX = Main.screenWidth / 16;
|
||||
int drawLimitY = Main.screenHeight / 16;
|
||||
Point drawPoint = (Main.screenPosition / 16).ToPoint();
|
||||
for (int i = 0; i < drawLimitX; i++)
|
||||
{
|
||||
for (int j = 0; j < drawLimitY; j++)
|
||||
{
|
||||
Point pos = drawPoint + new Point(i, j);
|
||||
if (!Main.tile[pos.X, pos.Y].HasTile &&
|
||||
Main.tile[pos.X, pos.Y].WallType == 0)
|
||||
Lighting.AddLight(pos.X, pos.Y, TorchID.White, 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawToTarget(On_Main.orig_CheckMonoliths orig)
|
||||
|
||||
+36
-16
@@ -21,6 +21,7 @@ using CalamityMod.Items.Armor.Bloodflare;
|
||||
using CalamityMod.Items.Armor.Brimflame;
|
||||
using CalamityMod.Items.Armor.Daedalus;
|
||||
using CalamityMod.Items.Armor.Demonshade;
|
||||
using CalamityMod.Items.Armor.DesertProwler;
|
||||
using CalamityMod.Items.Armor.Empyrean;
|
||||
using CalamityMod.Items.Armor.LunicCorps;
|
||||
using CalamityMod.Items.Armor.OmegaBlue;
|
||||
@@ -28,7 +29,9 @@ using CalamityMod.Items.Armor.PlagueReaper;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
using CalamityMod.Items.Armor.SnowRuffian;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Mounts.Minecarts;
|
||||
using CalamityMod.Items.PermanentBoosters;
|
||||
@@ -3535,19 +3538,16 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
PlayerLoader.ArmorSetBonusActivated(Player);
|
||||
|
||||
if (CalamityClientConfig.Instance.CalamityArmorSetBonusDoubleTap)
|
||||
// Activate vanilla set bonuses
|
||||
if (Player.setVortex && !Player.mount.Active)
|
||||
Player.vortexStealthActive = !Player.vortexStealthActive;
|
||||
|
||||
if (Player.setForbidden)
|
||||
{
|
||||
// Activate vanilla set bonuses
|
||||
if (Player.setVortex && !Player.mount.Active)
|
||||
Player.vortexStealthActive = !Player.vortexStealthActive;
|
||||
Player.MinionRestTargetAim();
|
||||
|
||||
if (Player.setForbidden)
|
||||
{
|
||||
Player.MinionRestTargetAim();
|
||||
|
||||
if (!Player.setForbiddenCooldownLocked)
|
||||
Player.CommandForbiddenStorm();
|
||||
}
|
||||
if (!Player.setForbiddenCooldownLocked)
|
||||
Player.CommandForbiddenStorm();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3760,10 +3760,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void ArmorSetBonusActivated()
|
||||
{
|
||||
// Don't trigger set bonuses if the config is disabled and the double-tap hotkey was triggered
|
||||
if (!(CalamityKeybinds.ArmorSetBonusHotKey.JustPressed || CalamityClientConfig.Instance.CalamityArmorSetBonusDoubleTap))
|
||||
return;
|
||||
|
||||
// TODO -- It would be nice if triggerable set bonuses used interfaces instead of having to go through this large if chain.
|
||||
if (victideBurrowSet && !Player.tongued && !Player.shimmering && !Player.HasCooldown(BubblyBurrow.ID))
|
||||
{
|
||||
@@ -3956,6 +3952,30 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (prismaticSet && !Player.HasCooldown(PrismaticLaser.ID) && prismaticLasers <= 0)
|
||||
prismaticLasers = CalamityUtils.SecondsToFrames(35f);
|
||||
if (WulfrumHat.HasArmorSet(Player))
|
||||
{
|
||||
//Only activate if no cooldown & available scrap.
|
||||
if (cooldowns.TryGetValue(WulfrumBastion.ID, out CooldownInstance cd))
|
||||
{
|
||||
// Quick dismount if activated again
|
||||
if (cd.timeLeft > WulfrumHat.BastionCooldown && cd.timeLeft < WulfrumHat.BastionCooldown + WulfrumHat.BastionTime - 60 * 3)
|
||||
{
|
||||
cd.timeLeft = WulfrumHat.BastionCooldown + 1;
|
||||
SyncCooldownDictionary(false);
|
||||
}
|
||||
}
|
||||
|
||||
else if (Player.HasItem(ItemType<WulfrumMetalScrap>()))
|
||||
{
|
||||
Player.ConsumeItem(ItemType<WulfrumMetalScrap>());
|
||||
//I Thiiiinnnk there's no need to add mp syncing packets since cooldowns get auto synced right
|
||||
Player.AddCooldown(WulfrumBastion.ID, WulfrumHat.BastionCooldown + WulfrumHat.BastionTime);
|
||||
//Though do I need to sync that or is the player inventory auto synced?
|
||||
WulfrumHat.DummyCannon.SetDefaults(ItemType<WulfrumFusionCannon>());
|
||||
}
|
||||
}
|
||||
if (DesertProwlerHat.HasArmorSet(Player) && !Player.HasCooldown(SandsmokeBomb.ID))
|
||||
Player.AddCooldown(SandsmokeBomb.ID, DesertProwlerHat.SmokeCooldown + DesertProwlerHat.SmokeDuration);
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -4942,7 +4962,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (!Player.mount.Active)
|
||||
{
|
||||
Player.velocity.Y *= 0.9f;
|
||||
Player.velocity.Y *= SnowRuffianMask.GlideFallSpeedMult;
|
||||
Player.wingFrame = 3;
|
||||
}
|
||||
Player.noFallDmg = true;
|
||||
|
||||
@@ -17,6 +17,7 @@ using CalamityMod.Items.Armor.Aerospec;
|
||||
using CalamityMod.Items.Armor.Demonshade;
|
||||
using CalamityMod.Items.Armor.LunicCorps;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
@@ -31,6 +32,7 @@ using CalamityMod.NPCs.Other;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
@@ -1015,7 +1017,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.Calamity().trapProtection && isReducedTrap)
|
||||
modifiers.SourceDamage *= 0.35f;
|
||||
|
||||
// Reduce damage dealt by rainbow trails depending on how faded they are.
|
||||
// Reduce damage dealt by rainbow trails
|
||||
if (proj.type == ProjectileID.HallowBossLastingRainbow)
|
||||
{
|
||||
// Find the oldPos of the projectile that is intersecting the player hitbox.
|
||||
@@ -1030,11 +1032,10 @@ namespace CalamityMod.CalPlayer
|
||||
hitbox.X = (int)trailHitbox.X;
|
||||
hitbox.Y = (int)trailHitbox.Y;
|
||||
|
||||
// Adjust damage based on what part of the trail intersected the player hitbox.
|
||||
if (hitbox.Intersects(Player.Hitbox))
|
||||
{
|
||||
if (k > startOfDamageFalloff)
|
||||
modifiers.SourceDamage *= MathHelper.Lerp(0.4f, 1f, 1f - (k - startOfDamageFalloff) / (float)(trailLength - startOfDamageFalloff));
|
||||
modifiers.SourceDamage *= EmpressofLightAI.EverlastingRainbowTrailDamageMult;
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -1300,7 +1301,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Main.npc[proj.Calamity().ParentNPCIndex].active)
|
||||
{
|
||||
if (sulphurSet)
|
||||
Main.npc[proj.Calamity().ParentNPCIndex].AddBuff(BuffID.Poisoned, 60);
|
||||
Main.npc[proj.Calamity().ParentNPCIndex].AddBuff(BuffID.Poisoned, SulphurousHelmet.SetBonusPoisonDuration);
|
||||
if (ilSpark)
|
||||
Main.npc[proj.Calamity().ParentNPCIndex].Calamity().shocked = 120;
|
||||
}
|
||||
@@ -1363,54 +1364,10 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.AddBuff(BuffID.BrokenArmor, 600);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CursedFlameHostile || proj.type == ProjectileID.EyeFire)
|
||||
{
|
||||
// Guaranteed Cursed Inferno for 1 second (vanilla also has a 68.75% chance of Cursed Inferno for 2 to 3 seconds)
|
||||
Player.AddBuff(BuffID.CursedInferno, 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.DesertDjinnCurse)
|
||||
{
|
||||
Player.AddBuff(BuffID.Cursed, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.ThornBall)
|
||||
{
|
||||
Player.AddBuff(BuffID.Venom, 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBall)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossIceMist)
|
||||
{
|
||||
if (!Player.frozen)
|
||||
Player.AddBuff(BuffID.Frozen, 60);
|
||||
|
||||
Player.AddBuff(BuffID.Chilled, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
|
||||
{
|
||||
Player.AddBuff(BuffID.Electrified, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.AncientDoomProjectile)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBallClone)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalBolt || proj.type == ProjectileID.PhantasmalEye)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalSphere)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 210);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 300);
|
||||
}
|
||||
else if (proj.type == ProjectileID.BloodNautilusShot)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 240);
|
||||
@@ -1423,6 +1380,47 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<MiracleBlight>(), 600);
|
||||
}
|
||||
|
||||
if (CalamityWorld.revenge)
|
||||
{
|
||||
if (proj.type == ProjectileID.CursedFlameHostile || proj.type == ProjectileID.EyeFire)
|
||||
{
|
||||
// Guaranteed Cursed Inferno for 1 second (vanilla also has a 68.75% chance of Cursed Inferno for 2 to 3 seconds)
|
||||
Player.AddBuff(BuffID.CursedInferno, 60);
|
||||
}
|
||||
else if (proj.type == ProjectileID.ThornBall)
|
||||
{
|
||||
Player.AddBuff(BuffID.Venom, 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBall)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossIceMist && proj.ai[1] == 1f) // Main ice mists only; no shards
|
||||
{
|
||||
Player.AddBuff(BuffID.Chilled, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
|
||||
{
|
||||
Player.AddBuff(BuffID.Electrified, 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBallClone)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 240);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalBolt || proj.type == ProjectileID.PhantasmalEye)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalSphere)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 180);
|
||||
}
|
||||
else if (proj.type == ProjectileID.PhantasmalDeathray)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<Nightwither>(), 240);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// As these reflects do not cancel damage, they need to be in OnHit rather than ModifyHit
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(vermillionFlux, fluxDoT);
|
||||
ApplyDoTDebuff(elementalMix, 50, purity); // Never inflicted on the player
|
||||
ApplyDoTDebuff(trueVHex, 50);
|
||||
int dragonfireDoT = ((Player.name == "JFL" || Player.name == "MrJFL") ? 240 : 50) / (dynamoStemCells ? 2 : 1);
|
||||
int dragonfireDoT = ((Player.name == "JFL" || Player.name == "MrJFL") ? 200 : 50) / (dynamoStemCells ? 2 : 1);
|
||||
ApplyDoTDebuff(dragonFire, dragonfireDoT);
|
||||
ApplyDoTDebuff(miracleBlight, 60);
|
||||
ApplyDoTDebuff(banishingFire, 60); // Never inflicted on the player
|
||||
|
||||
@@ -222,11 +222,6 @@ namespace CalamityMod.CalPlayer
|
||||
// Apply stealth damage to rogue.
|
||||
Player.GetDamage<RogueDamageClass>() += stealthDamage;
|
||||
|
||||
//Slow the player down after any other speed modifiers might have been applied.
|
||||
//Todo - Move this back to the wulfrum set class whenever statmodifiers are implemented for stats other than damage
|
||||
if (WulfrumHat.PowerModeEngaged(Player, out _))
|
||||
Player.moveSpeed *= 0.8f;
|
||||
|
||||
if ((XykVisualsBlue || XykVisualsOrange))
|
||||
{
|
||||
bool Orange = XykVisualsOrange;
|
||||
@@ -2583,7 +2578,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Permafrost's Concoction bonuses/debuffs
|
||||
if (permafrostsConcoction)
|
||||
{
|
||||
Player.manaCost *= 0.85f;
|
||||
Player.manaCost -= 0.15f;
|
||||
Player.statManaMax2 += 50;
|
||||
}
|
||||
|
||||
@@ -3515,7 +3510,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (starBeamRye)
|
||||
{
|
||||
Player.GetDamage<MagicDamageClass>() += StarBeamRye.MagicDamageBoost;
|
||||
Player.manaCost *= (1f - StarBeamRye.ManaCostReduction);
|
||||
Player.manaCost -= StarBeamRye.ManaCostReduction;
|
||||
Player.statManaMax2 += StarBeamRye.MaxManaBoost;
|
||||
}
|
||||
|
||||
@@ -3977,7 +3972,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (eArtifact)
|
||||
{
|
||||
Player.manaCost *= 0.75f;
|
||||
Player.manaCost -= 0.25f;
|
||||
Player.maxMinions++;
|
||||
}
|
||||
|
||||
@@ -4828,7 +4823,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (DesertProwlerHat.ShroudedInSmoke(Player, out _))
|
||||
Player.statDefense -= (int)(Player.statDefense * 0.75);
|
||||
Player.statDefense -= (int)(Player.statDefense * DesertProwlerHat.SmokeDefenseMult);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@ using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Astral;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.SnowRuffian;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.NPCs;
|
||||
@@ -630,7 +633,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (astralStarRain && crit && astralStarRainCooldown <= 0)
|
||||
{
|
||||
astralStarRainCooldown = 60;
|
||||
astralStarRainCooldown = AstralHelm.StarRainCooldown;
|
||||
for (int n = 0; n < 3; n++)
|
||||
{
|
||||
int projectileType = Utils.SelectRandom(Main.rand, new int[]
|
||||
@@ -641,7 +644,7 @@ namespace CalamityMod.CalPlayer
|
||||
ProjectileID.StarCannonStar
|
||||
});
|
||||
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(AstralHelm.StarDamage);
|
||||
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 12f, projectileType, astralStarDamage, 5f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
@@ -700,7 +703,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (astralStarRain && crit && astralStarRainCooldown <= 0)
|
||||
{
|
||||
astralStarRainCooldown = 60;
|
||||
astralStarRainCooldown = AstralHelm.StarRainCooldown;
|
||||
for (int n = 0; n < 3; n++)
|
||||
{
|
||||
int projectileType = Utils.SelectRandom(Main.rand, new int[]
|
||||
@@ -711,7 +714,7 @@ namespace CalamityMod.CalPlayer
|
||||
ProjectileID.StarCannonStar
|
||||
});
|
||||
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(120);
|
||||
int astralStarDamage = (int)Player.GetBestClassDamage().ApplyTo(AstralHelm.StarDamage);
|
||||
|
||||
Projectile star = CalamityUtils.ProjectileRain(source, position, 400f, 100f, 500f, 800f, 25f, projectileType, astralStarDamage, 5f, Player.whoAmI);
|
||||
if (star.whoAmI.WithinBounds(Main.maxProjectiles))
|
||||
@@ -1293,7 +1296,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (omegaBlueChestplate)
|
||||
target.AddBuff(BuffType<HadopelagicPressure>(), 180);
|
||||
if (sulphurSet)
|
||||
target.AddBuff(BuffID.Poisoned, 60);
|
||||
target.AddBuff(BuffID.Poisoned, SulphurousHelmet.SetBonusPoisonDuration);
|
||||
if (ilSpark && Player.Calamity().countsAsAnyWet)
|
||||
{
|
||||
int duration = 60;
|
||||
@@ -1313,7 +1316,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (snowRuffianSet && ranged && crit)
|
||||
{
|
||||
target.AddBuff(BuffID.Frostburn, 300, false);
|
||||
target.AddBuff(BuffID.Frostburn, SnowRuffianMask.SetBonusFrostburnDuration, false);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace CalamityMod
|
||||
|
||||
public static readonly Condition PlayerHasRogueArmor = Create("HasRogueArmor", () => Main.LocalPlayer.Calamity().rogueStealthMax > 0f && Main.LocalPlayer.Calamity().wearingRogueArmor);
|
||||
public static readonly Condition PlayerHasWings = Create("HasWings", () => Main.LocalPlayer.wingTimeMax > 0);
|
||||
public static readonly Condition PlayerAlcoholPoisoned = Create("AlcoholPoison", () => Main.LocalPlayer.Calamity().alcoholPoisoning);
|
||||
|
||||
//
|
||||
// Calamity Event Flag conditions
|
||||
|
||||
+5
-2
@@ -1,6 +1,7 @@
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Serialization;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.UI;
|
||||
using CalamityMod.UI.DraedonsArsenal;
|
||||
using CalamityMod.UI.Rippers;
|
||||
@@ -287,8 +288,10 @@ namespace CalamityMod
|
||||
public bool FasterFallHotkey { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(true)]
|
||||
public bool CalamityArmorSetBonusDoubleTap { get; set; }
|
||||
[SliderColor(224, 165, 56, 128)]
|
||||
[DrawTicks]
|
||||
[DefaultValue(SetBonusDoubleTapOptions.Auto)]
|
||||
public SetBonusDoubleTapOptions SetBonusDoubleTap { get; set; }
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[DefaultValue(false)]
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using Terraria.ModLoader.Config;
|
||||
|
||||
namespace CalamityMod.Enums
|
||||
{
|
||||
public enum SetBonusDoubleTapOptions
|
||||
{
|
||||
[LabelKey("$Mods.CalamityMod.Configs.CalamityClientConfig.SetBonusDoubleTap.Options.On")]
|
||||
On,
|
||||
[LabelKey("$Mods.CalamityMod.Configs.CalamityClientConfig.SetBonusDoubleTap.Options.Auto")]
|
||||
Auto,
|
||||
[LabelKey("$Mods.CalamityMod.Configs.CalamityClientConfig.SetBonusDoubleTap.Options.Off")]
|
||||
Off
|
||||
}
|
||||
}
|
||||
@@ -76,6 +76,7 @@ namespace CalamityMod.ILEditing
|
||||
IL_Player.DashMovement += FixAllDashMechanics;
|
||||
On_Player.DashMovement += DashMovementEdits;
|
||||
On_Player.DoCommonDashHandle += ApplyDashKeybind;
|
||||
On_Player.KeyDoubleTap += DisableDoubleTapOnConfig;
|
||||
IL_Player.GiveImmuneTimeForCollisionAttack += MakeShieldSlamIFramesConsistent;
|
||||
IL_Player.Update_NPCCollision += NerfShieldOfCthulhuBonkSafety;
|
||||
On_WorldGen.OpenDoor += OpenDoor_LabDoorOverride;
|
||||
|
||||
@@ -6,6 +6,7 @@ using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.FluidSimulation;
|
||||
using CalamityMod.Items.Accessories;
|
||||
@@ -312,6 +313,20 @@ namespace CalamityMod.ILEditing
|
||||
self.dashTime = 0;
|
||||
}
|
||||
}
|
||||
|
||||
private static void DisableDoubleTapOnConfig(On_Player.orig_KeyDoubleTap orig, Player self, int keyDir)
|
||||
{
|
||||
if (self.whoAmI != Main.myPlayer)
|
||||
{
|
||||
orig(self, keyDir);
|
||||
return;
|
||||
}
|
||||
|
||||
if ((CalamityKeybinds.ArmorSetBonusHotKey.GetAssignedKeys().Count != 0 && CalamityClientConfig.Instance.SetBonusDoubleTap == SetBonusDoubleTapOptions.Auto) || CalamityClientConfig.Instance.SetBonusDoubleTap == SetBonusDoubleTapOptions.Off)
|
||||
return;
|
||||
|
||||
orig(self, keyDir);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Prevent Vanilla Bosses From Being Marked as Defeated in Boss Rush
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
player.statManaMax2 += 150;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.manaCost *= 0.9f;
|
||||
player.manaCost -= 0.1f;
|
||||
player.GetCritChance<MagicDamageClass>() += 5;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.manaMagnet = true;
|
||||
player.statManaMax2 += 100;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.manaCost *= 0.9f;
|
||||
player.manaCost -= 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -13,9 +13,9 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MagicDamageBoost = 0.1f;
|
||||
public static int MaxManaBoost = 30;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), MaxManaBoost);
|
||||
public static float MagicDamageBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, MagicDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusManaCostReduction = 0.08f;
|
||||
|
||||
@@ -18,9 +18,9 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 0.8f;
|
||||
public static float SetBonusMoveSpeedBoost = 0.05f;
|
||||
public static int SetBonusRogueCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal
|
||||
public static float SetBonusRogueStealth = 0.8f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent(), SetBonusRogueStealth.ToStealth())
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), SetBonusMoveSpeedBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.aeroSet = true;
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusSummonDamageBoost = 0.11f;
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static float SetBonusSummonDamageBoost = 0.11f;
|
||||
public static int ValkyrieDamage = 20;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost)
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost, SetBonusSummonDamageBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.valkyrie = true;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Astral
|
||||
@@ -9,6 +10,11 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
public class AstralBreastplate : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int MaxManaBoost = 80;
|
||||
public static float DamageBoost = 0.07f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, DamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -20,8 +26,8 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.statManaMax2 += 80;
|
||||
player.GetDamage<GenericDamageClass>() += 0.07f;
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Astral
|
||||
@@ -10,6 +11,18 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
public class AstralHelm : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float DamageBoost = 0.05f;
|
||||
public static int CritBoost = 10;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), CritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusMinionSlotBoost = 3;
|
||||
public static float SetBonusDamageBoost = 0.1f;
|
||||
public static int SetBonusCritBoost = 10; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public static int StarRainCooldown = CalamityUtils.SecondsToFrames(1);
|
||||
public static int StarDamage = 120;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -31,20 +44,20 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost, SetBonusDamageBoost.ToPercent(), StarRainCooldown.FramesToSeconds());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.astralStarRain = true;
|
||||
modPlayer.omniscience = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
player.maxMinions += 3;
|
||||
player.GetCritChance<GenericDamageClass>() += 10;
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
player.GetDamage<GenericDamageClass>() += SetBonusDamageBoost;
|
||||
player.GetCritChance<GenericDamageClass>() += SetBonusCritBoost;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += 0.05f;
|
||||
player.GetCritChance<GenericDamageClass>() += 10;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Astral
|
||||
@@ -9,6 +10,11 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
public class AstralLeggings : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float DamageBoost = 0.05f;
|
||||
public static float MoveSpeedBoost = 0.15f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -20,8 +26,8 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.15f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.05f;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.auricBoost = true;
|
||||
player.manaCost *= 0.8f;
|
||||
player.manaCost -= 0.2f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.3f;
|
||||
player.GetCritChance<MagicDamageClass>() += 20;
|
||||
player.statManaMax2 += 100;
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
|
||||
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()));
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityUtils.GetArmorSetBonusKey()));
|
||||
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
|
||||
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()) : LocalizedText.Format());
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format(CalamityUtils.GetArmorSetBonusKey()) : LocalizedText.Format());
|
||||
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
Color[] armorColors = { AuricTeslaBodyArmor.tooltipTarragonColor, AuricTeslaBodyArmor.tooltipBloodflareColor, AuricTeslaBodyArmor.tooltipGodslayerColor };
|
||||
var LocalizedText = CalamityUtils.GetTextFromModItem(Type, $"SetBonus{setBonusTooltipNumber}");
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString()));
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format());
|
||||
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost *= 0.83f;
|
||||
player.manaCost -= 0.17f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.2f;
|
||||
player.GetCritChance<MagicDamageClass>() += 10;
|
||||
player.statManaMax2 += 100;
|
||||
|
||||
@@ -39,8 +39,7 @@ namespace CalamityMod.Items.Armor.Bloodflare
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.bloodflareSet = true;
|
||||
modPlayer.bloodflareRanged = true;
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem<BloodflareBodyArmor>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey()) + "\n" + CalamityUtils.GetTextValueFromModItem<BloodflareBodyArmor>("CommonSetBonus");
|
||||
player.crimsonRegen = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ namespace CalamityMod.Items.Armor.Brimflame
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.Items.Armor.Brimflame
|
||||
player.GetDamage<MagicDamageClass>() += 0.05f;
|
||||
player.GetCritChance<MagicDamageClass>() += 5;
|
||||
player.statManaMax2 += 80;
|
||||
player.manaCost *= 0.9f;
|
||||
player.manaCost -= 0.1f;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
@@ -77,8 +77,7 @@ namespace CalamityMod.Items.Armor.Brimflame
|
||||
modPlayer.brimflameSet = true;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.GetCritChance<MagicDamageClass>() += 15;
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost *= 0.9f;
|
||||
player.manaCost -= 0.1f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.13f;
|
||||
player.GetCritChance<MagicDamageClass>() += 7;
|
||||
player.statManaMax2 += 60;
|
||||
|
||||
@@ -47,8 +47,7 @@ namespace CalamityMod.Items.Armor.Demonshade
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey, (1f + MultDamageBoost).Round(), (1D + MultDamageTakenBoost).Round());
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey(), (1f + MultDamageBoost).Round(), (1D + MultDamageTakenBoost).Round());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.dsSetBonus = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
|
||||
@@ -31,11 +31,13 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueDamageBoost = 0.05f;
|
||||
public static float SetBonusRogueStealth = 0.5f;
|
||||
public static int SmokeCooldown = 25 * 60;
|
||||
public static int SmokeDuration = 5 * 60;
|
||||
public static int LightsOutReset = (int)(1.5f * 60);
|
||||
public static float SmokeMoveSpeedMult = 1.5f;
|
||||
public static float SmokeDefenseMult = 0.75f;
|
||||
public static float SmokeAggroMult = 0.5f;
|
||||
public static int SmokeCooldown = CalamityUtils.SecondsToFrames(25);
|
||||
public static int SmokeDuration = CalamityUtils.SecondsToFrames(5);
|
||||
public static int LightsOutReset = CalamityUtils.SecondsToFrames(2);
|
||||
public static int FreeCrit = 200;
|
||||
public static int BonusDamageCap = 200;
|
||||
|
||||
@@ -46,32 +48,13 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
return (hasSmokebombCD && cd.timeLeft > SmokeCooldown);
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
Terraria.On_Player.KeyDoubleTap += ActivateSetBonus;
|
||||
}
|
||||
|
||||
private void ActivateSetBonus(Terraria.On_Player.orig_KeyDoubleTap orig, Player player, int keyDir)
|
||||
{
|
||||
if (keyDir == (Main.ReversedUpDownArmorSetBonuses ? 1 : 0) && HasArmorSet(player) && !player.mount.Active)
|
||||
{
|
||||
// The set bonus can only be activated if the player does not have the cooldown.
|
||||
if (!player.Calamity().cooldowns.TryGetValue(SandsmokeBomb.ID, out CooldownInstance cd))
|
||||
{
|
||||
player.AddCooldown(SandsmokeBomb.ID, SmokeCooldown + SmokeDuration);
|
||||
}
|
||||
}
|
||||
|
||||
orig(player, keyDir);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1; //6
|
||||
Item.defense = 2; // 9
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ItemType<DesertProwlerShirt>() && legs.type == ItemType<DesertProwlerPants>();
|
||||
@@ -83,10 +66,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueDamageBoost.ToPercent(), SetBonusRogueStealth.ToStealth()); //More gets edited in elsewhere
|
||||
Color AbilityBriefColor = Color.Lerp(new Color(255, 229, 156), new Color(233, 225, 198), 0.5f + 0.5f * MathF.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), AbilityBriefColor.Hex3(), CalamityUtils.GetArmorSetBonusKey(), FreeCrit, BonusDamageCap, LightsOutReset.FramesToSeconds()); //More gets edited in elsewhere
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
player.Calamity().rogueStealthMax += SetBonusRogueStealth;
|
||||
player.GetDamage<ThrowingDamageClass>() += SetBonusRogueDamageBoost;
|
||||
|
||||
DesertProwlerPlayer armorPlayer = player.GetModPlayer<DesertProwlerPlayer>();
|
||||
armorPlayer.desertProwlerSet = true;
|
||||
@@ -96,9 +79,9 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
if (cd.timeLeft == SmokeCooldown + SmokeDuration)
|
||||
armorPlayer.SetBonusStartEffect();
|
||||
|
||||
player.moveSpeed *= 1.5f;
|
||||
player.moveSpeed *= SmokeMoveSpeedMult;
|
||||
player.invis = true;
|
||||
player.aggro = (int)(player.aggro * 0.5f);
|
||||
player.aggro = (int)(player.aggro * SmokeAggroMult);
|
||||
player.noKnockback = true;
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
@@ -162,32 +145,9 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
dhusvtt.fadeIn = 1f;
|
||||
Vector2 dustVelocity = dustDirection.RotatedBy(MathHelper.PiOver2) * 0.04f * dustDistance;
|
||||
dhusvtt.velocity = dustVelocity;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void ModifySetTooltips(ModItem item, List<TooltipLine> tooltips)
|
||||
{
|
||||
if (HasArmorSet(Main.LocalPlayer))
|
||||
{
|
||||
int setBonusIndex = tooltips.FindIndex(x => x.Name == "SetBonus" && x.Mod == "Terraria");
|
||||
|
||||
if (setBonusIndex != -1)
|
||||
{
|
||||
string dir = Language.GetTextValue(Main.ReversedUpDownArmorSetBonuses ? "Key.UP" : "Key.DOWN");
|
||||
TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextFromModItem<DesertProwlerHat>("AbilityBrief").Format(dir));
|
||||
setBonus1.OverrideColor = Color.Lerp(new Color(255, 229, 156), new Color(233, 225, 198), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
tooltips.Insert(setBonusIndex + 1, setBonus1);
|
||||
|
||||
TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem<DesertProwlerHat>("AbilityDescription").Format(FreeCrit, BonusDamageCap, LightsOutReset / 60f));
|
||||
setBonus2.OverrideColor = new Color(204, 181, 72);
|
||||
tooltips.Insert(setBonusIndex + 2, setBonus2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -206,8 +166,8 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
public string BulkTexture => "CalamityMod/Items/Armor/DesertProwler/DesertProwlerShirt_Bulk";
|
||||
|
||||
public static int RogueCritBoost = 5;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost);
|
||||
public static float RogueDamageBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -226,12 +186,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 3;
|
||||
Item.defense = 4;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -249,8 +207,8 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
public static int RogueCritBoost = 4;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -258,15 +216,13 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2;
|
||||
Item.defense = 3;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -281,9 +237,6 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public class DesertProwlerPlayer : ModPlayer
|
||||
{
|
||||
public static int BastionShootDamage = 10;
|
||||
public static float BastionShootSpeed = 18f;
|
||||
public static int BastionShootTime = 10;
|
||||
internal SlotId SmokeBombSoundSlot;
|
||||
|
||||
public bool desertProwlerSet = false;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Armor.Fearmonger
|
||||
{
|
||||
player.statManaMax2 += 60;
|
||||
player.GetDamage<SummonDamageClass>() += 0.1f;
|
||||
player.manaCost *= 0.9f;
|
||||
player.manaCost -= 0.1f;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
|
||||
@@ -44,8 +44,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
int stormMana = (int)(manaCost * player.manaCost);
|
||||
string hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey, stormMana);
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey(), stormMana);
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.forbiddenCirclet = true;
|
||||
modPlayer.rogueStealthMax += 0.4f;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Armor.Hydrothermic
|
||||
modPlayer.ataxiaBlaze = true;
|
||||
modPlayer.ataxiaMage = true;
|
||||
player.GetDamage<MagicDamageClass>() += 0.05f;
|
||||
player.manaCost *= 0.85f;
|
||||
player.manaCost -= 0.15f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
// Set Bonus
|
||||
public static float LiftRaiseSpeed = 2f;
|
||||
public static float MaxLiftHeight = 138f;
|
||||
public static float LiftHeightOffset = 22f; // Height of the lift itself minus the foot offset; 138 + 22 = 160 (10 tiles)
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
@@ -91,7 +92,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Marnite Lift"; //Replaced below
|
||||
Color AbilityBriefColor = Color.Lerp(new Color(255, 243, 161), new Color(137, 162, 255), 0.5f + 0.5f * MathF.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(AbilityBriefColor.Hex3(), (MaxLiftHeight + LiftHeightOffset).ToTiles());
|
||||
player.GetModPlayer<MarniteArchitectPlayer>().setEquipped = true;
|
||||
}
|
||||
|
||||
@@ -105,27 +107,6 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
}
|
||||
}
|
||||
|
||||
public static void ModifySetTooltips(ModItem item, List<TooltipLine> tooltips)
|
||||
{
|
||||
if (HasArmorSet(Main.LocalPlayer))
|
||||
{
|
||||
int setBonusIndex = tooltips.FindIndex(x => x.Name == "SetBonus" && x.Mod == "Terraria");
|
||||
|
||||
if (setBonusIndex != -1)
|
||||
{
|
||||
tooltips[setBonusIndex].Text = CalamityUtils.GetTextValueFromModItem<MarniteArchitectHeadgear>("AbilityBrief");
|
||||
tooltips[setBonusIndex].OverrideColor = Color.Lerp(new Color(255, 243, 161), new Color(137, 162, 255), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
|
||||
TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextValueFromModItem<MarniteArchitectHeadgear>("AbilityDescription"));
|
||||
setBonus1.OverrideColor = new Color(145, 197, 239);
|
||||
tooltips.Insert(setBonusIndex + 1, setBonus1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => ModifySetTooltips(this, tooltips);
|
||||
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
@@ -152,12 +133,6 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/MarniteArchitect/MarniteArchitectToga_Legs", EquipType.Legs, this);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -173,9 +148,6 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
player.wallSpeed += PlacementSpeedBoost;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => MarniteArchitectHeadgear.ModifySetTooltips(this, tooltips);
|
||||
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -66,8 +66,7 @@ namespace CalamityMod.Items.Armor.OmegaBlue
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
|
||||
|
||||
var mp = player.Calamity();
|
||||
player.maxMinions += 2;
|
||||
|
||||
@@ -37,8 +37,7 @@ namespace CalamityMod.Items.Armor.PlagueReaper
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.plagueReaper = true;
|
||||
player.ammoCost75 = true;
|
||||
|
||||
@@ -38,10 +38,9 @@ namespace CalamityMod.Items.Armor.Prismatic
|
||||
{
|
||||
player.Calamity().prismaticSet = true;
|
||||
player.statManaMax2 += 40;
|
||||
player.manaCost *= 0.85f;
|
||||
player.manaCost -= 0.15f;
|
||||
player.manaRegenBonus += 8;
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey);
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey());
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor.Silva
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost *= 0.81f;
|
||||
player.manaCost -= 0.19f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.23f;
|
||||
player.GetCritChance<MagicDamageClass>() += 13;
|
||||
player.statManaMax2 += 100;
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
public static int RangedCritBoost = 4;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedCritBoost);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.defense = 4; //12
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost;
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -10,13 +10,13 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public class SnowRuffianMask : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
private bool shouldBoost = false;
|
||||
|
||||
public static float RangedDamageBoost = 0.02f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent());
|
||||
public static int RangedCritBoost = 4;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedCritBoost);
|
||||
|
||||
public static float SetBonusRangedDamageBoost = 0.04f;
|
||||
public static int SetBonusRangedCritBoost = 4; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
// Set Bonus
|
||||
public static float GlideFallSpeedMult = 0.9f;
|
||||
public static int SetBonusFrostburnDuration = CalamityUtils.SecondsToFrames(3);
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
@@ -32,40 +32,19 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 3; //12
|
||||
Item.defense = 3; // 12
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<SnowRuffianChestplate>() && legs.type == ModContent.ItemType<SnowRuffianGreaves>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<SnowRuffianChestplate>() && legs.type == ModContent.ItemType<SnowRuffianGreaves>();
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.snowRuffianSet = true;
|
||||
player.GetCritChance<RangedDamageClass>() += SetBonusRangedCritBoost;
|
||||
player.GetDamage<RangedDamageClass>() += SetBonusRangedDamageBoost;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRangedDamageBoost.ToPercent());
|
||||
|
||||
if (player.controlJump)
|
||||
{
|
||||
player.noFallDmg = true;
|
||||
player.UpdateJumpHeight();
|
||||
if (shouldBoost && !player.mount.Active)
|
||||
{
|
||||
player.velocity.X *= 1.1f;
|
||||
shouldBoost = false;
|
||||
}
|
||||
|
||||
}
|
||||
else if (!shouldBoost && player.velocity.Y == 0)
|
||||
{
|
||||
shouldBoost = true;
|
||||
}
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusFrostburnDuration.FramesToSeconds());
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -78,21 +57,8 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
public class SnowRuffianWings : EquipTexture
|
||||
{
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
{
|
||||
ascentWhenFalling = 0.5f;
|
||||
ascentWhenRising = 0f;
|
||||
maxCanAscendMultiplier = 0f;
|
||||
maxAscentMultiplier = 0f;
|
||||
constantAscend = 0f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 2f;
|
||||
acceleration *= 1.25f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(12).
|
||||
AddIngredient<BlightedGel>(12).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(7).
|
||||
AddIngredient<BlightedGel>(7).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,11 +14,11 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MagicDamageBoost = 0.1f;
|
||||
public static float ManaCostReduction = 0.1f;
|
||||
public static int MagicCritBoost = 7;
|
||||
public static int MaxManaBoost = 40;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MagicDamageBoost.ToPercent(), ManaCostReduction.ToPercent(), MagicCritBoost, MaxManaBoost);
|
||||
public static float ManaCostReduction = 0.1f;
|
||||
public static float MagicDamageBoost = 0.1f;
|
||||
public static int MagicCritBoost = 7;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, ManaCostReduction.ToPercent(), MagicDamageBoost.ToPercent(), MagicCritBoost);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(5).
|
||||
AddIngredient<BlightedGel>(5).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelArmor>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(5).
|
||||
AddIngredient<BlightedGel>(5).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(5).
|
||||
AddIngredient<BlightedGel>(5).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelHeadMagic>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(5).
|
||||
AddIngredient<BlightedGel>(5).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelArmor>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public static float SummonKBBoost = 1.5f;
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusSummonDamageBoost = 0.18f;
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static float SetBonusSummonDamageBoost = 0.18f;
|
||||
public static int SlimeDamage = 18;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost)
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost, SetBonusSummonDamageBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
CreateRecipe().
|
||||
AddIngredient<PurifiedGel>(5).
|
||||
AddIngredient<BlightedGel>(5).
|
||||
AddTile<StaticRefiner>().
|
||||
AddTile(TileID.Solidifier).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<StatigelHeadRogue>()).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
@@ -14,8 +14,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.06f;
|
||||
public static int RogueCritBoost = 4;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost);
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -26,11 +25,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
Item.rare = ItemRarityID.Green;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.ExtraJumps;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
@@ -15,11 +15,11 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.04f;
|
||||
public static int RogueCritBoost = 2;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost);
|
||||
public static int RogueCritBoost = 6;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusPoisonDuration = CalamityUtils.SecondsToFrames(1);
|
||||
public static float SetBonusRogueStealth = 0.65f;
|
||||
public static int BubbleDamage = 20;
|
||||
|
||||
@@ -39,18 +39,16 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth());
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), SetBonusPoisonDuration.FramesToSeconds());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.sulphurSet = true;
|
||||
player.GetJumpState<SulphurJump>().Enable();
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.ignoreWater = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
player.gills = true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
@@ -13,9 +13,8 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public static float SubmergedMoveSpeedBoostBuff = 0.25f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent(), SubmergedMoveSpeedBoostBuff.ToPercent());
|
||||
public static float RogueDamageBoost = 0.04f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -26,7 +25,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
Item.rare = ItemRarityID.Green;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost + (player.Calamity().countsAsAnyWet ? SubmergedMoveSpeedBoostBuff : 0f);
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost *= 0.85f;
|
||||
player.manaCost -= 0.15f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.GetCritChance<MagicDamageClass>() += 10;
|
||||
player.endurance += 0.1f;
|
||||
|
||||
@@ -39,8 +39,7 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
modPlayer.tarraMelee = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
|
||||
player.aggro += 800;
|
||||
var hotkey = CalamityKeybinds.ArmorSetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(hotkey) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -39,13 +39,12 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static int BastionDefenseBoost = 13;
|
||||
public static int BastionDefenseBoost = 12;
|
||||
public static float BastionDRBoost = 0.1f;
|
||||
public static int BastionBuildTime = (int)(0.55f * 60);
|
||||
public static int BastionTime = 30 * 60;
|
||||
public static int TimeLostPerHit = 2 * 60;
|
||||
public static int BastionCooldown = 20 * 60;
|
||||
public static int BastionBuildTime = CalamityUtils.SecondsToFrames(0.55f);
|
||||
public static int BastionTime = CalamityUtils.SecondsToFrames(30);
|
||||
public static int TimeLostPerHit = CalamityUtils.SecondsToFrames(2);
|
||||
public static int BastionCooldown = CalamityUtils.SecondsToFrames(20);
|
||||
|
||||
internal static Item DummyCannon = new Item(); //Used for the attack swap. Basically we force the player to hold a fake item.
|
||||
|
||||
@@ -63,7 +62,6 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
EquipLoader.AddEquipTexture(Mod, "CalamityMod/Items/Armor/Wulfrum/WulfrumHat_FemaleHead", EquipType.Head, name: "WulfrumHatFemale");
|
||||
}
|
||||
|
||||
On_Player.KeyDoubleTap += ActivateSetBonus;
|
||||
On_Main.DrawPendingMouseText += SpoofMouseItem;
|
||||
}
|
||||
|
||||
@@ -73,33 +71,6 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
DummyCannon = null;
|
||||
}
|
||||
|
||||
private void ActivateSetBonus(On_Player.orig_KeyDoubleTap orig, Player player, int keyDir)
|
||||
{
|
||||
if (keyDir == (Main.ReversedUpDownArmorSetBonuses ? 1 : 0) && HasArmorSet(player) && !player.mount.Active)
|
||||
{
|
||||
//Only activate if no cooldown & available scrap.
|
||||
if (player.Calamity().cooldowns.TryGetValue(WulfrumBastion.ID, out CooldownInstance cd))
|
||||
{
|
||||
if (cd.timeLeft > BastionCooldown && cd.timeLeft < BastionCooldown + BastionTime - 60 * 3)
|
||||
{
|
||||
cd.timeLeft = BastionCooldown + 1;
|
||||
player.Calamity().SyncCooldownDictionary(false);
|
||||
}
|
||||
}
|
||||
|
||||
else if (player.HasItem(ItemType<WulfrumMetalScrap>()))
|
||||
{
|
||||
player.ConsumeItem(ItemType<WulfrumMetalScrap>());
|
||||
//I Thiiiinnnk there's no need to add mp syncing packets since cooldowns get auto synced right
|
||||
player.AddCooldown(WulfrumBastion.ID, BastionCooldown + BastionTime);
|
||||
//Though do I need to sync that or is the player inventory auto synced?
|
||||
DummyCannon.SetDefaults(ItemType<WulfrumFusionCannon>());
|
||||
}
|
||||
}
|
||||
|
||||
orig(player, keyDir);
|
||||
}
|
||||
|
||||
//Replaces the tooltip of the armor set with the fusion cannon if the player holds shift
|
||||
private void SpoofMouseItem(On_Main.orig_DrawPendingMouseText orig)
|
||||
{
|
||||
@@ -123,6 +94,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ItemType<WulfrumJacket>() && legs.type == ItemType<WulfrumOveralls>();
|
||||
@@ -138,8 +110,9 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
armorPlayer.wulfrumSet = true;
|
||||
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost); //The cooler part of the set bonus happens in modifytooltips because I can't recolor it otherwise. Madge
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
Color AbilityBriefColor = Color.Lerp(new Color(194, 255, 67), new Color(112, 244, 244), 0.5f + 0.5f * MathF.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(AbilityBriefColor.Hex3(), CalamityUtils.GetArmorSetBonusKey(), BastionTime.FramesToSeconds(), TimeLostPerHit.FramesToSeconds());
|
||||
|
||||
if (PowerModeEngaged(player, out var cd))
|
||||
{
|
||||
if (cd.timeLeft == BastionCooldown + BastionTime)
|
||||
@@ -228,37 +201,6 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
GeneralParticleHandler.SpawnParticle(gun);
|
||||
}
|
||||
|
||||
public static void ModifySetTooltips(ModItem item, List<TooltipLine> tooltips)
|
||||
{
|
||||
if (HasArmorSet(Main.LocalPlayer))
|
||||
{
|
||||
int setBonusIndex = tooltips.FindIndex(x => x.Name == "SetBonus" && x.Mod == "Terraria");
|
||||
|
||||
if (setBonusIndex != -1)
|
||||
{
|
||||
string dir = Language.GetTextValue(Main.ReversedUpDownArmorSetBonuses ? "Key.UP" : "Key.DOWN");
|
||||
TooltipLine setBonus1 = new TooltipLine(item.Mod, "CalamityMod:SetBonus1", CalamityUtils.GetTextFromModItem<WulfrumHat>("AbilityBrief").Format(dir));
|
||||
setBonus1.OverrideColor = Color.Lerp(new Color(194, 255, 67), new Color(112, 244, 244), 0.5f + 0.5f * (float)Math.Sin(Main.GlobalTimeWrappedHourly * 3f));
|
||||
tooltips.Insert(setBonusIndex + 1, setBonus1);
|
||||
|
||||
int AmmoItem = ItemType<WulfrumMetalScrap>();
|
||||
string AmmoDisplay = $"[i:{AmmoItem}] {CalamityUtils.GetItemName(AmmoItem)}";
|
||||
TooltipLine setBonus2 = new TooltipLine(item.Mod, "CalamityMod:SetBonus2", CalamityUtils.GetTextFromModItem<WulfrumHat>("AbilityDescription").Format(AmmoDisplay));
|
||||
setBonus2.OverrideColor = new Color(110, 192, 93);
|
||||
tooltips.Insert(setBonusIndex + 2, setBonus2);
|
||||
|
||||
if (!Main.keyState.PressingShift())
|
||||
{
|
||||
TooltipLine itemDisplay = new TooltipLine(item.Mod, "CalamityMod:ArmorItemDisplay", CalamityUtils.GetTextValueFromModItem<WulfrumHat>("ShiftToExpand"));
|
||||
itemDisplay.OverrideColor = new Color(190, 190, 190);
|
||||
tooltips.Add(itemDisplay);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -277,8 +219,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float SummonDamageBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent());
|
||||
public static int MinionSlotBoost = 1;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -299,9 +241,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
public override void UpdateEquip(Player player) => player.maxMinions += MinionSlotBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -319,8 +259,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
public static float SummonDamageBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -336,9 +276,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
ArmorIDs.Legs.Sets.HidesBottomSkin[equipSlot] = true;
|
||||
}
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost;
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -617,6 +617,10 @@ namespace CalamityMod.Items
|
||||
// "Buffed" Step Stool
|
||||
if (item.type == ItemID.PortableStool)
|
||||
EditTooltipByNum(0, (line) => line.Text += AddedTooltip("PortableStool"));
|
||||
|
||||
// Replace the double tap line if double tap dash is overridden
|
||||
if ((item.type == ItemID.EoCShield || item.type == ItemID.Tabi) && CalamityKeybinds.DashHotkey.GetAssignedKeys().Count != 0)
|
||||
EditTooltipByNum(1, (line) => line.Text = CalamityUtils.GetText("Vanilla.DashKey").Format(CalamityKeybinds.DashHotkey.TooltipHotkeyString()));
|
||||
#endregion
|
||||
|
||||
// For boss summon item clarity
|
||||
@@ -783,18 +787,11 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.HandOfCreation)
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("25%", "15%"));
|
||||
|
||||
// Frozen Turtle Shell rebalance.
|
||||
if (item.type == ItemID.FrozenTurtleShell)
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("25%", "15%"));
|
||||
|
||||
if (item.type == ItemID.FrozenShield)
|
||||
EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("25%", "15%"));
|
||||
|
||||
// Ale and Sake rebalance and Alcohol Poisoning.
|
||||
if (item.type == ItemID.Ale || item.type == ItemID.Sake)
|
||||
EditTooltipByNum(0, (line) => line.Text = EditedTooltip("AleSake"));
|
||||
|
||||
//Flame Waker Boots buff.
|
||||
// Flame Waker Boots buff.
|
||||
if (item.type == ItemID.FlameWakerBoots)
|
||||
EditTooltipByNum(0, (line) => line.Text = EditedTooltip("FlameWakerBoots"));
|
||||
|
||||
@@ -898,7 +895,7 @@ namespace CalamityMod.Items
|
||||
|
||||
// Magic Power Potion nerf
|
||||
if (item.type == ItemID.MagicPowerPotion)
|
||||
EditTooltipByNum(0, (line) => line.Text = EditedTooltip("MagicPowerPotion"));
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("20%", "10%"));
|
||||
|
||||
// Featherfall Potion being stupid broken with Aero Stone
|
||||
if (item.type == ItemID.FeatherfallPotion)
|
||||
@@ -982,6 +979,14 @@ namespace CalamityMod.Items
|
||||
|
||||
// Pre-Hardmode armor tooltip edits
|
||||
#region Pre-Hardmode Armor
|
||||
// Gladiator
|
||||
if (item.type == ItemID.GladiatorHelmet)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueDamage").Format(GladiatorArmorSetChange.HelmetRogueDamageBoostPercent));
|
||||
if (item.type == ItemID.GladiatorBreastplate)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueCrit").Format(GladiatorArmorSetChange.ChestplateRogueCritBoostPercent));
|
||||
if (item.type == ItemID.GladiatorLeggings)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" + CalamityUtils.GetText("Common.RogueVelocity").Format(GladiatorArmorSetChange.LeggingRogueVelocityBoostPercent));
|
||||
|
||||
// Jungle
|
||||
if (item.type == ItemID.JungleHat || item.type == ItemID.AncientCobaltHelmet)
|
||||
{
|
||||
@@ -1153,18 +1158,14 @@ namespace CalamityMod.Items
|
||||
|
||||
EditTooltipByName("SetBonus", (line) => VanillaArmorChangeManager.ApplySetBonusTooltipChanges(item, ref line.Text));
|
||||
|
||||
// Gladiator
|
||||
if (item.type == ItemID.GladiatorHelmet)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueDamage").Format(GladiatorArmorSetChange.HelmetRogueDamageBoostPercent));
|
||||
if (item.type == ItemID.GladiatorBreastplate)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueCrit").Format(GladiatorArmorSetChange.ChestplateRogueCritBoostPercent));
|
||||
if (item.type == ItemID.GladiatorLeggings)
|
||||
EditTooltipByName("Defense", (line) => line.Text += "\n" +CalamityUtils.GetText("Common.RogueVelocity").Format(GladiatorArmorSetChange.LeggingRogueVelocityBoostPercent));
|
||||
|
||||
// Forbidden (UNLESS you are wearing the Circlet, which is Summon/Rogue and does not get this line)
|
||||
if ((item.type == ItemID.AncientBattleArmorHat || item.type == ItemID.AncientBattleArmorShirt || item.type == ItemID.AncientBattleArmorPants)
|
||||
&& !Main.LocalPlayer.Calamity().forbiddenCirclet)
|
||||
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Forbidden").Format(Language.GetTextValue(Main.ReversedUpDownArmorSetBonuses ? "Key.UP" : "Key.DOWN")));
|
||||
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Forbidden").Format(CalamityUtils.GetArmorSetBonusKey()));
|
||||
|
||||
// Vortex (hotkey spoof)
|
||||
if (item.type == ItemID.VortexHelmet || item.type == ItemID.VortexBreastplate || item.type == ItemID.VortexLeggings)
|
||||
EditTooltipByName("SetBonus", (line) => line.Text = CalamityUtils.GetText($"Vanilla.Armor.SetBonus.Vortex").Format(CalamityUtils.GetArmorSetBonusKey()));
|
||||
#endregion
|
||||
|
||||
// Provide the full stats of every vanilla yoyo
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.Navystone>(), 1, 20, 50),
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.EutrophicSand>(), 1, 20, 50),
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.Driftwood>(), 1, 20, 50)
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.FurnitureDriftwood.Driftwood>(), 1, 20, 50)
|
||||
}));
|
||||
|
||||
itemLoot.AddBiomeCrateLootRules(false);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches
|
||||
{
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.Navystone>(), 1, 20, 50),
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.EutrophicSand>(), 1, 20, 50),
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.SunkenSea.Driftwood>(), 1, 20, 50)
|
||||
ItemDropRule.NotScalingWithLuck(ModContent.ItemType<Items.Placeables.FurnitureDriftwood.Driftwood>(), 1, 20, 50)
|
||||
}));
|
||||
|
||||
itemLoot.AddBiomeCrateLootRules();
|
||||
|
||||
@@ -73,7 +73,6 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"fryzahh",
|
||||
"HaguriHat",
|
||||
"Heart Plus Up!",
|
||||
"Hugekraken",
|
||||
"LordMetarex",
|
||||
"Memes",
|
||||
"Mercutio 'Merkalto' Takle",
|
||||
@@ -137,6 +136,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings
|
||||
"Graydee",
|
||||
"Grox the Great",
|
||||
"Hectique",
|
||||
"Hugekraken",
|
||||
"Huggles",
|
||||
"Ian-1KV",
|
||||
"IbanPlay",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using CalamityMod.Tiles.Furniture.Monoliths;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -5,7 +5,7 @@ using CalamityMod.Items.Placeables.FurnitureAncient;
|
||||
using CalamityMod.Items.Placeables.FurnitureAshen;
|
||||
using CalamityMod.Items.Placeables.FurnitureBotanic;
|
||||
using CalamityMod.Items.Placeables.FurnitureCosmilite;
|
||||
using CalamityMod.Items.Placeables.FurnitureEutrophic;
|
||||
using CalamityMod.Items.Placeables.FurnitureNavystone;
|
||||
using CalamityMod.Items.Placeables.FurnitureExo;
|
||||
using CalamityMod.Items.Placeables.FurnitureMarnite;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Placeables.Furniture
|
||||
AddIngredient<AshenChair>().
|
||||
AddIngredient<BotanicChair>().
|
||||
AddIngredient<CosmiliteChair>().
|
||||
AddIngredient<EutrophicChair>().
|
||||
AddIngredient<NavystoneChair>().
|
||||
AddIngredient<ExoChair>().
|
||||
AddIngredient<MarniteChair>().
|
||||
AddIngredient<MonolithChair>().
|
||||
|
||||
@@ -3,8 +3,9 @@ using CalamityMod.Items.Placeables.Walls;
|
||||
using CalamityMod.Tiles.Abyss;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Tiles.FurnitureAcidwood;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Abyss
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAcidwood
|
||||
{
|
||||
public class Acidwood : ModItem, ILocalizedModType
|
||||
{
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
+3
-8
@@ -4,28 +4,23 @@ using CalamityMod.Items.Placeables.Ores;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
public class AncientAltar : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CraftingStations.AncientAltar>());
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureAncient.AncientAltar>());
|
||||
Item.value = Item.sellPrice(gold: 2);
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.CraftingObjects;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(10).
|
||||
AddIngredient<ScorchedBone>(5).
|
||||
AddTile(TileID.Anvils).
|
||||
AddTile(ModContent.TileType<Tiles.Furniture.CraftingStations.AshenAltar>()).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(10).
|
||||
AddIngredient<ScorchedBone>(5).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(14).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(20).
|
||||
AddIngredient(ItemID.Book, 10).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(4).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
AddIngredient<BrimstoneSlag>(4).
|
||||
AddIngredient(ItemID.Torch, 4).
|
||||
AddIngredient(ItemID.Chain).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(6).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(16).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(3).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(6).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
AddIngredient<BrimstoneSlag>(10).
|
||||
AddRecipeGroup("IronBar", 3).
|
||||
AddIngredient(ItemID.Glass, 6).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
AddIngredient<BrimstoneSlag>(15).
|
||||
AddIngredient(ItemID.Bone, 4).
|
||||
AddIngredient(ItemID.Book).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(6).
|
||||
AddIngredient(ItemID.LavaBucket).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(5).
|
||||
AddIngredient(ItemID.Silk, 2).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(8).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Placeables.FurnitureAncient
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<BrimstoneSlag>(10).
|
||||
AddTile<AncientAltar>().
|
||||
AddTile<AshenAltar>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(14).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(8).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(20).
|
||||
AddIngredient(ItemID.Book, 10).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(5).
|
||||
AddIngredient(ItemID.Torch, 3).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(4).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(4).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
AddIngredient<UelibloomBrick>(4).
|
||||
AddIngredient(ItemID.Torch, 4).
|
||||
AddIngredient(ItemID.Chain).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(8).
|
||||
AddRecipeGroup("IronBar", 2).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
AddIngredient<UelibloomBrick>(10).
|
||||
AddRecipeGroup("IronBar", 3).
|
||||
AddIngredient(ItemID.Glass, 6).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(6).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(16).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(3).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(6).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
AddIngredient<UelibloomBrick>(15).
|
||||
AddIngredient(ItemID.Bone, 4).
|
||||
AddIngredient(ItemID.Book).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
+3
-8
@@ -1,28 +1,23 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Furniture.CraftingStations
|
||||
namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
{
|
||||
public class BotanicPlanter : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Furniture.CraftingStations.BotanicPlanter>());
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureBotanic.BotanicPlanter>());
|
||||
Item.value = Item.sellPrice(gold: 2);
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.CraftingObjects;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(20).
|
||||
AddIngredient(ItemID.JungleSpores, 5).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Placeables.FurnitureBotanic
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBrick>(6).
|
||||
AddIngredient(ItemID.HoneyBucket).
|
||||
AddTile<BotanicPlanter>().
|
||||
AddTile(TileID.LivingLoom).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 774 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user