Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
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)
|
||||
|
||||
@@ -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;
|
||||
@@ -3523,19 +3526,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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3748,10 +3748,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 (brimflameSet && !Player.HasCooldown(BrimflameFrenzy.ID))
|
||||
{
|
||||
@@ -3920,6 +3916,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
|
||||
|
||||
@@ -4898,7 +4918,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;
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
@@ -27,24 +28,6 @@ namespace CalamityMod
|
||||
ParticleLimit = (int)Utils.Clamp(ParticleLimit, MinParticleLimit, MaxParticleLimit);
|
||||
}
|
||||
|
||||
internal static void SaveConfig()
|
||||
{
|
||||
// There is no current way to manually save a mod configuration file in tModLoader.
|
||||
// The method which saves mod config files is private in ConfigManager, so reflection is used to invoke it.
|
||||
try
|
||||
{
|
||||
MethodInfo saveMethodInfo = typeof(ConfigManager).GetMethod("Save", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
if (saveMethodInfo is not null)
|
||||
saveMethodInfo.Invoke(null, [Instance]);
|
||||
else
|
||||
CalamityMod.Instance.Logger.Error("TML ConfigManager.Save reflection failed. Method signature has changed. Notify Calamity Devs if you see this in your log.");
|
||||
}
|
||||
catch
|
||||
{
|
||||
CalamityMod.Instance.Logger.Error("An error occurred while manually saving Calamity mod configuration. This may be due to a complex mod conflict. It is safe to ignore this error.");
|
||||
}
|
||||
}
|
||||
|
||||
#region Graphics Changes
|
||||
[Header("Graphics")]
|
||||
|
||||
@@ -287,8 +270,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
@@ -1,7 +1,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
namespace CalamityMod.Items.Placeables.FurnitureDriftwood
|
||||
{
|
||||
public class Driftwood : ModItem, ILocalizedModType
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.Wood;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.Driftwood>());
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureDriftwood.Driftwood>());
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
|
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 233 B |
@@ -1,9 +1,9 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Astral
|
||||
namespace CalamityMod.Items.Placeables.FurnitureMonolith
|
||||
{
|
||||
public class AstralMonolith : ModItem, ILocalizedModType
|
||||
{
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Placeables.Astral
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ItemID.Wood;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.Astral.AstralMonolith>());
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureMonolith.AstralMonolith>());
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
|
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
@@ -1,7 +1,8 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
namespace CalamityMod.Items.Placeables.FurnitureNavystone
|
||||
{
|
||||
public class PolishedNavystoneBrick : ModItem, ILocalizedModType
|
||||
{
|
||||
@@ -11,7 +12,7 @@ namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.PolishedNavystoneBrick>());
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureNavystone.PolishedNavystoneBrick>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 214 B |
@@ -0,0 +1,30 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureRunestone
|
||||
{
|
||||
public class RunestoneTerracotta : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 200;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureRunestone.RunestoneTerracotta>());
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// CreateRecipe().
|
||||
// AddIngredient<RunestoneWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 200 B |
@@ -0,0 +1,30 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureShellstone
|
||||
{
|
||||
public class ShellTrimBrick : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureShellstone.ShellTrimBrick>());
|
||||
|
||||
//public override void AddRecipes()
|
||||
//{
|
||||
// CreateRecipe().
|
||||
// AddIngredient<Shellstone>().
|
||||
// AddTile(TileID.HeavyWorkBench).
|
||||
// Register();
|
||||
// CreateRecipe().
|
||||
// AddIngredient<ShellstoneSlabWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 290 B |
@@ -1,8 +1,8 @@
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureShellstone
|
||||
{
|
||||
public class ShellstoneSlab : ModItem, ILocalizedModType
|
||||
{
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.ShellstoneSlab>());
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureShellstone.ShellstoneSlab>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
Before Width: | Height: | Size: 274 B After Width: | Height: | Size: 274 B |
@@ -0,0 +1,18 @@
|
||||
using CalamityMod.Tiles.SunkenSea;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.SunkenSea
|
||||
{
|
||||
public class AridSoil : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
ItemID.Sets.ShimmerTransformToItem[Type] = ModContent.ItemType<Dunesand>();
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.SunkenSea.AridSoil>());
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 308 B |
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureDriftwood;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Items.Placeables.FurnitureShellstone;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class ShellTrimBrickWall : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.ShellTrimBrickWall>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(4).
|
||||
AddIngredient<ShellTrimBrick>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 421 B |
@@ -1,7 +1,7 @@
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureShellstone;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureDriftwood;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureDriftwood;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using CalamityMod.Items.BaseItems;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using CalamityMod.Projectiles.Melee;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureDriftwood;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
string goreType = Main.rand.NextBool() ? "EmptyAnimosityShell" : "EmptyAnimosityShell2";
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type);
|
||||
Gore.NewGore(source, position, velocity.RotatedBy(2f * -player.direction) * Main.rand.NextFloat(0.6f, 0.7f), Mod.Find<ModGore>(goreType).Type, 0.75f);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Items.Placeables.FurnitureDriftwood;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Astral;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
@@ -80,30 +80,6 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
Vector2 itemSize = new Vector2(Item.width, Item.height);
|
||||
Vector2 itemOrigin = new Vector2(-5, 6);
|
||||
|
||||
|
||||
//Sniper's horizontal recoil; can be a bit subtle but it is noticeable
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
//Recoil:
|
||||
int anim = 0;
|
||||
for (int r = 0; r < Item.useAnimation; ++r)
|
||||
{
|
||||
if (anim == 10 && r < Item.useAnimation / 2) //animates every 10 frames so that the player notices a recoil because this happens way too fast
|
||||
{
|
||||
itemPosition.X -= player.direction * 0.025f;
|
||||
itemPosition.Y -= player.direction * 0.025f;
|
||||
anim = 0;
|
||||
}
|
||||
else if (anim == 10 && r > Item.useAnimation / 2)
|
||||
{
|
||||
itemPosition.X += player.direction * 0.025f;
|
||||
itemPosition.Y += player.direction * 0.025f;
|
||||
anim = 0;
|
||||
}
|
||||
++anim;
|
||||
}
|
||||
}
|
||||
|
||||
CalamityUtils.CleanHoldStyle(player, itemRotation, itemPosition, itemSize, itemOrigin);
|
||||
base.UseStyle(player, heldItemFrame);
|
||||
}
|
||||
@@ -116,7 +92,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
float animProgress = 1 - player.itemTime / (float)player.itemTimeMax;
|
||||
float rotation = (player.Center - player.Calamity().mouseWorld).ToRotation() * player.gravDir + MathHelper.PiOver2;
|
||||
if (animProgress < 0.5)
|
||||
rotation += (player.altFunctionUse == 2 ? -1f : -0.45f) * (float)Math.Pow((0.5f - animProgress) / 0.5f, 2) * player.direction;
|
||||
rotation += -0.45f * (float)Math.Pow((0.5f - animProgress) / 0.5f, 2) * player.direction;
|
||||
player.SetCompositeArmFront(true, Player.CompositeArmStretchAmount.Full, rotation); //must be here otherwise it will vibrate
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
// Plain stat boosts
|
||||
RogueDamage: "{0}% increased rogue damage"
|
||||
RogueCrit: "{0}% increased rogue critical strike chance"
|
||||
RogueVelocity: "{0}% increased rogue velocity"
|
||||
RogueStealth: +{0} maximum stealth
|
||||
// Armor Set Bonus key states
|
||||
BothArmorSetBonusKeys: Press {0} or Double tap {1}
|
||||
NoArmorSetBonusKey: Press the Armor Set Bonus key
|
||||
ArmorSetBonusKey: Press {0}
|
||||
DoubleTapDown: Double tap {0}
|
||||
// Miscellaneous stats/info
|
||||
AggroBoost: Enemies are more likely to target you
|
||||
AggroReduction: Enemies are less likely to target you
|
||||
AbyssLightLevel1: Provides a small amount of light in the abyss
|
||||
AbyssLightLevel2: Provides a moderate amount of light in the abyss
|
||||
AbyssLightLevel3: Provides a large amount of light in the abyss
|
||||
@@ -8,9 +21,6 @@ AlcoholWarning: Drinking more than 3 different alcohols might not end well with
|
||||
ArmorPenetration: Ignores {0} points of enemy Defense
|
||||
CanMineUelibloom: Can mine Uelibloom Ore
|
||||
NotConsumable: Not consumable
|
||||
RogueDamage: "{0}% increased rogue damage"
|
||||
RogueCrit: "{0}% increased rogue critical strike chance"
|
||||
RogueVelocity: "{0}% increased rogue velocity"
|
||||
SummonTagDamageFlat: "{0} summon tag damage"
|
||||
SummonTagDamageMult: "{0}x summon tag damage"
|
||||
SummonTagCrit: "{0}% summon tag critical strike chance"
|
||||
|
||||
@@ -50,7 +50,6 @@ Drops: {
|
||||
}
|
||||
|
||||
// Other conditions
|
||||
PotionConfig: While the Town NPC Potion Selling configuration option is enabled
|
||||
HasFlareGun: While holding a Flare Gun upgrade
|
||||
LacewingBestiary: When at least 40% of the Bestiary has been completed
|
||||
HasRogueArmor: While wearing rogue armor
|
||||
@@ -61,9 +60,3 @@ InSulph: In the Sulphurous Sea
|
||||
InSunken: In the Sunken Sea
|
||||
InRev: In Revengeance Mode
|
||||
InRevOrMM: In Revengeance Mode or in Master Mode
|
||||
PostCal: After defeating Calamitas Clone
|
||||
PostAureus: After defeating Astrum Aureus
|
||||
PostPolter: After defeating Polterghast
|
||||
PostOD: After defeating the Old Duke
|
||||
PostDoG: After defeating the Devourer of Gods
|
||||
PostYharon: After defeating Yharon
|
||||
@@ -50,15 +50,6 @@ CalamityClientConfig: {
|
||||
'''
|
||||
}
|
||||
|
||||
CalamityArmorSetBonusDoubleTap: {
|
||||
Label: "[i:CalamityMod/DesertProwlerHat] Calamity Armor Set Bonuses Can Use Vanilla Hotkey"
|
||||
Tooltip:
|
||||
'''
|
||||
Allows Calamity armor set bonuses to be triggered by the vanilla double-tap {$Key.DOWN} hotkey (or {$Key.UP} depending on your settings).
|
||||
Also allows vanilla armor set bonuses to be triggered by Calamity's armor set bonus hotkey.
|
||||
'''
|
||||
}
|
||||
|
||||
ChargeMeter: {
|
||||
Label: "[i:CalamityMod/DraedonPowerCell] Display Charge Meter"
|
||||
Tooltip:
|
||||
@@ -253,6 +244,21 @@ CalamityClientConfig: {
|
||||
'''
|
||||
}
|
||||
|
||||
SetBonusDoubleTap: {
|
||||
Label: "[i:VortexHelmet] Allow Double Tap for Armor Set Bonuses"
|
||||
Tooltip:
|
||||
'''
|
||||
Allows all armor set bonuses to be triggered by the vanilla double-tap {$Key.DOWN} hotkey (or {$Key.UP} depending on your settings).
|
||||
Set to Auto to automatically turn off double-tap as long as Calamity's {$Keybinds.ArmorSetBonus.DisplayName} hotkey is bound.
|
||||
'''
|
||||
|
||||
Options: {
|
||||
On: Always On
|
||||
Auto: Auto
|
||||
Off: Always Off
|
||||
}
|
||||
}
|
||||
|
||||
ShopNewAlert: {
|
||||
Label: "[i:GoldChest] New Shop Inventory Alerts"
|
||||
Tooltip: Adds an icon that appears over Town NPCs when they have new items in their shops.
|
||||
@@ -551,3 +557,5 @@ CalamityServerConfig: {
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
SetBonusDoubleTapOptions.Tooltip: ""
|
||||
@@ -1455,7 +1455,7 @@ RampartofDeities: {
|
||||
This effect scales from 10 frames at full HP to 40 frames at 25% or less HP
|
||||
Being struck for over 200 damage grants 30 additional invincibility frames
|
||||
Grants immunity to knockback
|
||||
Puts a shell around the owner when below 50% life that reduces damage taken
|
||||
Puts a shell around the owner when below 50% life that reduces damage by 25%
|
||||
Absorbs 25% of damage done to players on your team when above 25% life
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -2,21 +2,21 @@ AstralBreastplate: {
|
||||
DisplayName: Astral Breastplate
|
||||
Tooltip:
|
||||
'''
|
||||
7% increased damage
|
||||
+80 max mana
|
||||
{$CommonItemTooltip.IncreasesMaxManaBy}
|
||||
{$CommonItemTooltip.PercentIncreasedDamage@1}
|
||||
'''
|
||||
}
|
||||
|
||||
AstralHelm: {
|
||||
DisplayName: Astral Helm
|
||||
Tooltip: 5% increased damage and 10% increased critical strike chance
|
||||
Tooltip: "{$CommonItemTooltip.PercentIncreasedDamage} and {$CommonItemTooltip.PercentIncreasedCritChance}"
|
||||
SetBonus:
|
||||
'''
|
||||
+3 max minions
|
||||
10% increased damage and critical strike chance
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedDamageCritChance@1}
|
||||
Detects nearby creatures, enemy projectiles, danger sources, and treasure
|
||||
Whenever you crit an enemy, a barrage of stars will rain down
|
||||
This effect has a 1 second cooldown before it can trigger again
|
||||
This effect has a {2} {^2:second;seconds} cooldown before it can trigger again
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@ AstralLeggings: {
|
||||
DisplayName: Astral Leggings
|
||||
Tooltip:
|
||||
'''
|
||||
5% increased damage
|
||||
15% increased movement speed
|
||||
{$CommonItemTooltip.PercentIncreasedDamage}
|
||||
{$CommonItemTooltip.PercentIncreasedMovementSpeed@1}
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ BrimflameScowl: {
|
||||
SetBonus:
|
||||
'''
|
||||
Grants an additional 15% increased magic damage and critical strike chance
|
||||
Press {0} to trigger a brimflame frenzy effect
|
||||
{0} to trigger a brimflame frenzy effect
|
||||
While under this effect, you get an additional 40% increase to magic damage
|
||||
However, this inflicts rapid life loss and disables mana regeneration and mana potions
|
||||
This can be toggled off, however, brimflame frenzy has a 30 second cooldown
|
||||
@@ -189,7 +189,7 @@ ForbiddenCirclet: {
|
||||
SetBonus:
|
||||
'''
|
||||
+40 maximum stealth
|
||||
Press {0} to call an ancient storm to the cursor location
|
||||
{0} to call an ancient storm to the cursor location
|
||||
The ancient storm costs {1} mana and benefits from both summon and rogue bonuses
|
||||
Rogue stealth strikes spawn homing eaters on enemy hits
|
||||
Rogue and summon attacks will scale off of the stat with a higher boost
|
||||
@@ -403,7 +403,7 @@ PlagueReaperMask: {
|
||||
25% reduced ammo usage and 5% increased flight time
|
||||
Enemies receive 10% more damage from ranged projectiles when afflicted by the Plague
|
||||
Getting hit causes plague cinders to rain from above
|
||||
Press {0} to blind yourself for 5 seconds but massively boost your ranged damage
|
||||
{0} to blind yourself for 5 seconds but massively boost your ranged damage
|
||||
This has a 25 second cooldown
|
||||
'''
|
||||
}
|
||||
|
||||