Tarragon falls
This commit is contained in:
1 parent
ec5b2931d3
commit
5e64fac06e
17 files changed
+172
-106
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -7,8 +8,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class TarragonCloak : ModBuff
|
||||
{
|
||||
public static double ContactDamageReduction = 0.5D;
|
||||
public override LocalizedText Description => base.Description.WithFormatArgs(ContactDamageReduction.ToPercent());
|
||||
public override LocalizedText Description => base.Description.WithFormatArgs(TarragonHeadMelee.CloakContactDamageReduction.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@ using CalamityMod.Items.Armor.OmegaBlue;
|
||||
using CalamityMod.Items.Armor.PlagueReaper;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
using CalamityMod.Items.Armor.SnowRuffian;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using CalamityMod.Items.Armor.TitanHeart;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
@@ -3812,7 +3813,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Player.AddBuff(BuffType<Buffs.StatBuffs.TarragonCloak>(), 602, false);
|
||||
Player.AddBuff(BuffType<Buffs.StatBuffs.TarragonCloak>(), TarragonHeadMelee.CloakDuration, false);
|
||||
}
|
||||
}
|
||||
if (bloodflareRanged && !Player.HasCooldown(BloodflareRangedSet.ID))
|
||||
|
||||
@@ -23,6 +23,7 @@ using CalamityMod.Items.Armor.LunicCorps;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Mounts;
|
||||
@@ -814,7 +815,7 @@ namespace CalamityMod.CalPlayer
|
||||
contactDamageReduction += 0.5;
|
||||
|
||||
if (tarragonCloak && tarraMelee && !Player.HasCooldown(Cooldowns.TarragonCloak.ID))
|
||||
contactDamageReduction += Buffs.StatBuffs.TarragonCloak.ContactDamageReduction;
|
||||
contactDamageReduction += TarragonHeadMelee.CloakContactDamageReduction;
|
||||
|
||||
if (bloodflareMelee && bloodflareFrenzy && !Player.HasCooldown(BloodflareFrenzy.ID))
|
||||
contactDamageReduction += 0.5;
|
||||
@@ -2398,7 +2399,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (tarraMelee)
|
||||
{
|
||||
Player.AddBuff(ModContent.BuffType<TarraLifeRegen>(), 120);
|
||||
Player.AddBuff(ModContent.BuffType<TarraLifeRegen>(), TarragonHeadMelee.TarraLifeDuration);
|
||||
}
|
||||
else if (xerocSet)
|
||||
{
|
||||
|
||||
@@ -10,6 +10,7 @@ using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Wings;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using CalamityMod.Items.Fishing.BrimstoneCragCatches;
|
||||
using CalamityMod.Items.Placeables.Furniture;
|
||||
using CalamityMod.Items.Potions;
|
||||
@@ -553,7 +554,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
if (tRegen)
|
||||
Player.lifeRegen += 3;
|
||||
Player.lifeRegen += TarragonHeadMelee.TarraLifeRegenBoost;
|
||||
|
||||
if (sRegen)
|
||||
Player.lifeRegen += SpiritGlyph.RegenBoost;
|
||||
|
||||
@@ -2455,7 +2455,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
tarraDefenseTime = 600;
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
Player.AddCooldown(Cooldowns.TarragonCloak.ID, CalamityUtils.SecondsToFrames(30));
|
||||
Player.AddCooldown(Cooldowns.TarragonCloak.ID, TarragonHeadMelee.CloakCooldown);
|
||||
}
|
||||
|
||||
for (int j = 0; j < 2; j++)
|
||||
@@ -2481,11 +2481,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (tarragonImmunity && !disableAllDodges)
|
||||
Player.GiveUniversalIFrames(2, true);
|
||||
|
||||
if (tarraThrowingCrits >= 50)
|
||||
if (tarraThrowingCrits >= TarragonHeadRogue.CritsToActivateImmunity)
|
||||
{
|
||||
tarraThrowingCrits = 0;
|
||||
if (Player.whoAmI == Main.myPlayer && !disableAllDodges)
|
||||
Player.AddBuff(ModContent.BuffType<Buffs.StatBuffs.TarragonImmunity>(), 150, false);
|
||||
Player.AddBuff(ModContent.BuffType<Buffs.StatBuffs.TarragonImmunity>(), TarragonHeadRogue.ImmunityDuration, false);
|
||||
}
|
||||
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
@@ -2493,10 +2493,10 @@ namespace CalamityMod.CalPlayer
|
||||
int buffID = Player.buffType[l];
|
||||
if (Player.buffTime[l] <= 2 && buffID == ModContent.BuffType<Buffs.StatBuffs.TarragonImmunity>())
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
Player.AddCooldown(Cooldowns.TarragonImmunity.ID, CalamityUtils.SecondsToFrames(25));
|
||||
Player.AddCooldown(Cooldowns.TarragonImmunity.ID, TarragonHeadRogue.ImmunityCooldown);
|
||||
|
||||
if (CalamityBuffSets.IsDebuff[buffID])
|
||||
Player.GetDamage<RogueDamageClass>() += 0.1f;
|
||||
Player.GetDamage<RogueDamageClass>() += TarragonHeadRogue.RogueDamageBoostWhileDebuffed;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3907,7 +3907,7 @@ namespace CalamityMod.CalPlayer
|
||||
// If the timer rolls over, it's time to deal damage. Only run this code for the client which is wearing the armor.
|
||||
if (tarraLifeAuraTimer == 0 && Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int damage = (int)Player.CalcDamage<SummonDamageClass>(120);
|
||||
int damage = (int)Player.CalcDamage<SummonDamageClass>(TarragonHeadSummon.AuraDamage);
|
||||
|
||||
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
|
||||
var source = Player.GetSource_FromThis(TarragonHeadSummon.LifeAuraEntitySourceContext);
|
||||
|
||||
@@ -16,6 +16,7 @@ using CalamityMod.Items.Armor.Plaguebringer;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.SnowRuffian;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using CalamityMod.Items.Armor.TitanHeart;
|
||||
using CalamityMod.Items.Armor.Umbraphile;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
@@ -796,11 +797,11 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (tarraRanged && proj.CountsAsClass<RangedDamageClass>() && tarraRangedCooldown <= 0)
|
||||
{
|
||||
tarraRangedCooldown = 60;
|
||||
tarraRangedCooldown = TarragonHeadRanged.OnHitEffectCooldown;
|
||||
for (int l = 0; l < 2; l++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int leafDamage = CalamityUtils.DamageSoftCap((int)(0.25f * proj.damage), 150);
|
||||
int leafDamage = CalamityUtils.DamageSoftCap((int)(proj.damage * TarragonHeadRanged.LeafDamageRatio), TarragonHeadRanged.LeafDamageSoftcap);
|
||||
int leaf = Projectile.NewProjectile(source, position, velocity, ProjectileID.Leaf, leafDamage, 0f, Player.whoAmI);
|
||||
if (leaf.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
@@ -813,7 +814,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int projCount = 0; projCount < 2; projCount++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int energyDamage = CalamityUtils.DamageSoftCap((int)(0.33f * proj.damage), 200);
|
||||
int energyDamage = CalamityUtils.DamageSoftCap((int)(proj.damage * TarragonHeadRanged.EnergyDamageRatio), TarragonHeadRanged.EnergyDamageSoftcap);
|
||||
Projectile.NewProjectile(source, proj.Center, velocity, ProjectileType<TarraEnergy>(), energyDamage, 0f, proj.owner);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using static CalamityMod.Items.Armor.Tarragon.TarragonHeadMelee;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
@@ -83,7 +84,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(CalamityUtils.GetArmorSetBonusKey()));
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(TarraLifeRegenBoost.ToRegenPerSecond(), CalamityUtils.GetArmorSetBonusKey(), CloakDuration.FramesToSeconds(), CloakCooldown.FramesToSeconds()));
|
||||
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using static CalamityMod.Items.Armor.Tarragon.TarragonHeadRogue;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Auric
|
||||
{
|
||||
@@ -81,7 +82,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());
|
||||
line.Text = (setBonusTooltipNumber == 3 ? LocalizedText.Format(CalamityKeybinds.GodSlayerDashHotKey.TooltipHotkeyString(), GodslayerArmorDash.GodslayerCooldown) : setBonusTooltipNumber == 2 ? LocalizedText.Format() : LocalizedText.Format(CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds(), RogueDamageBoostWhileDebuffed.ToPercent()));
|
||||
line.OverrideColor = armorColors[setBonusTooltipNumber - 1];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -10,21 +11,28 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonBreastplate : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float DamageBoost = 0.12f;
|
||||
public static int CritBoost = 8;
|
||||
public static int RegenBoost = 4;
|
||||
public static float DamageReductionBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), CritBoost, RegenBoost.ToRegenPerSecond(), DamageReductionBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.lifeRegen = 3;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 40;
|
||||
Item.defense = 36;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.statLifeMax2 += 25;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
player.GetCritChance<GenericDamageClass>() += 5;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
player.lifeRegen += RegenBoost;
|
||||
player.endurance += DamageReductionBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -12,19 +13,27 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonHeadMagic : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static int MaxManaBoost = 100;
|
||||
public static float ManaCostReduction = 0.15f;
|
||||
public static float MagicDamageBoost = 0.15f;
|
||||
public static int MagicCritBoost = 10;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, ManaCostReduction.ToPercent(), MagicDamageBoost.ToPercent(), MagicCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int CritsToSpawnLeaves = 5;
|
||||
public static float LeafDamageRatio = 0.2f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 15; // 90
|
||||
Item.defense = 16; // 76
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -42,11 +51,10 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost -= 0.15f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.15f;
|
||||
player.GetCritChance<MagicDamageClass>() += 10;
|
||||
player.endurance += 0.1f;
|
||||
player.statManaMax2 += 100;
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
player.manaCost -= ManaCostReduction;
|
||||
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
|
||||
player.GetCritChance<MagicDamageClass>() += MagicCritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -12,19 +13,29 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonHeadMelee : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float MeleeDamageBoost = 0.10f;
|
||||
public static int MeleeCritBoost = 5;
|
||||
public static float MeleeSpeedBoost = 0.15f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent(), MeleeCritBoost, MeleeSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int TarraLifeDuration = CalamityUtils.SecondsToFrames(5);
|
||||
public static int TarraLifeRegenBoost = 3;
|
||||
public static double CloakContactDamageReduction = 0.5D;
|
||||
public static int CloakDuration = CalamityUtils.SecondsToFrames(10);
|
||||
public static int CloakCooldown = CalamityUtils.SecondsToFrames(30);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 42; // 117
|
||||
Item.defense = 40; // 100
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -37,16 +48,15 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraMelee = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.15f;
|
||||
player.aggro += 800;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(CalamityUtils.GetArmorSetBonusKey()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(TarraLifeRegenBoost.ToRegenPerSecond(), CalamityUtils.GetArmorSetBonusKey(), CloakDuration.FramesToSeconds(), CloakCooldown.FramesToSeconds()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.12f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 7;
|
||||
player.endurance += 0.1f;
|
||||
player.GetDamage<MeleeDamageClass>() += MeleeDamageBoost;
|
||||
player.GetCritChance<MeleeDamageClass>() += MeleeCritBoost;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += MeleeSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -12,19 +13,28 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonHeadRanged : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float RangedDamageBoost = 0.1f;
|
||||
public static int RangedCritBoost = 7;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent(), RangedCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int OnHitEffectCooldown = CalamityUtils.SecondsToFrames(1);
|
||||
public static float LeafDamageRatio = 0.25f;
|
||||
public static int LeafDamageSoftcap = 150;
|
||||
public static float EnergyDamageRatio = 0.33f;
|
||||
public static int EnergyDamageSoftcap = 200;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 27; // 102
|
||||
Item.defense = 28; // 88
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -42,9 +52,8 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
player.GetCritChance<RangedDamageClass>() += 10;
|
||||
player.endurance += 0.1f;
|
||||
player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -12,19 +13,29 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonHeadRogue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float RogueDamageBoost = 0.1f;
|
||||
public static int RogueCritBoost = 7;
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost, MoveSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 1.15f;
|
||||
public static int CritsToActivateImmunity = 50;
|
||||
public static int ImmunityDuration = CalamityUtils.SecondsToFrames(2.5f);
|
||||
public static int ImmunityCooldown = CalamityUtils.SecondsToFrames(25);
|
||||
public static float RogueDamageBoostWhileDebuffed = 0.1f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 20; // 95
|
||||
Item.defense = 24; // 84
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -37,17 +48,16 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraThrowing = true;
|
||||
modPlayer.rogueStealthMax += 1.15f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), CritsToActivateImmunity, ImmunityDuration.FramesToSeconds(), ImmunityCooldown.FramesToSeconds(), RogueDamageBoostWhileDebuffed.ToPercent()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 10;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.endurance += 0.1f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -14,19 +15,25 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
internal static string LifeAuraEntitySourceContext => "SetBonus_Calamity_Tarragon";
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.25f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost, SummonDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusMinionSlotBoost = 2;
|
||||
public static float SetBonusSummonDamageBoost = 0.3f;
|
||||
public static int AuraDamage = 120;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 10; // 85
|
||||
Item.defense = 10; // 70
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TarragonBreastplate>() && legs.type == ModContent.ItemType<TarragonLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -40,15 +47,15 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraSummon = true;
|
||||
modPlayer.WearingPostMLSummonerSet = true;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
player.GetDamage<SummonDamageClass>() += 0.5f;
|
||||
player.maxMinions += 3;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost, SetBonusSummonDamageBoost.ToPercent()) + "\n" + CalamityUtils.GetTextValueFromModItem<TarragonBreastplate>("CommonSetBonus");
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SetBonusSummonDamageBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.endurance += 0.1f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Tarragon
|
||||
@@ -10,20 +11,26 @@ namespace CalamityMod.Items.Armor.Tarragon
|
||||
public class TarragonLeggings : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PostMoonLord";
|
||||
|
||||
public static float DamageBoost = 0.08f;
|
||||
public static int CritBoost = 8; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.defense = 35;
|
||||
Item.defense = 24;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.08f;
|
||||
player.GetCritChance<GenericDamageClass>() += 8;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -10,6 +10,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Ammo;
|
||||
using CalamityMod.Items.Armor.Hydrothermic;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.Tarragon;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
@@ -397,12 +398,12 @@ namespace CalamityMod.Items
|
||||
}
|
||||
if (modPlayer.tarraMage && !item.channel)
|
||||
{
|
||||
if (modPlayer.tarraCrits >= 5 && player.whoAmI == Main.myPlayer)
|
||||
if (modPlayer.tarraCrits >= TarragonHeadMagic.CritsToSpawnLeaves && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
modPlayer.tarraCrits = 0;
|
||||
// Tarragon Mage Leaves: (8-10) x 20%, soft cap starts at 200 base damage
|
||||
int leafAmt = 8 + Main.rand.Next(3); // 8, 9, or 10
|
||||
int leafDamage = (int)(damage * 0.2f);
|
||||
int leafDamage = (int)(damage * TarragonHeadMagic.LeafDamageRatio);
|
||||
|
||||
for (int l = 0; l < leafAmt; l++)
|
||||
{
|
||||
|
||||
@@ -598,8 +598,8 @@ TarragonBreastplate: {
|
||||
DisplayName: Tarragon Breastplate
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased damage and 5% increased critical strike chance
|
||||
+1.5 HP/s life regen and +40 max life
|
||||
{0}% increased damage and {1}% increased critical strike chance
|
||||
+{2} HP/s life regen and {3}% increased damage reduction
|
||||
'''
|
||||
CommonSetBonus:
|
||||
'''
|
||||
@@ -612,8 +612,8 @@ TarragonHeadMagic: {
|
||||
DisplayName: Tarragon Mask
|
||||
Tooltip:
|
||||
'''
|
||||
15% increased magic damage and 10% increased magic critical strike chance
|
||||
10% increased damage reduction, +100 max mana, and 15% reduced mana usage
|
||||
{$CommonItemTooltip.IncreasesMaxManaBy} and {$CommonItemTooltip.PercentReducedManaCost@1}
|
||||
{$CommonItemTooltip.PercentIncreasedMagicDamage@2} and {$CommonItemTooltip.PercentIncreasedMagicCritChance@3}
|
||||
'''
|
||||
SetBonus: "{$TarragonHeadMagic.SetBonusEffect}"
|
||||
SetBonusEffect: On every 5th critical strike you will fire a leaf storm
|
||||
@@ -623,60 +623,60 @@ TarragonHeadMelee: {
|
||||
DisplayName: Tarragon Helm
|
||||
Tooltip:
|
||||
'''
|
||||
12% increased melee damage and 7% increased melee critical strike chance
|
||||
10% increased damage reduction
|
||||
{$CommonItemTooltip.PercentIncreasedMeleeDamage} and {$CommonItemTooltip.PercentIncreasedMeleeCritChance@1}
|
||||
{$CommonItemTooltip.PercentIncreasedMeleeSpeed@2}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
15% increased melee speed
|
||||
Enemies are more likely to target you
|
||||
{$Common.AggroBoost}
|
||||
{$TarragonHeadMelee.SetBonusEffect}
|
||||
'''
|
||||
SetBonusEffect:
|
||||
'''
|
||||
Taking damage gives the Tarra Life buff, which grants +1.5 HP/s life regen
|
||||
{0} to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds
|
||||
This has a 30 second cooldown
|
||||
Taking damage gives the Tarra Life buff, which grants +{0} HP/s life regen
|
||||
{1} to cloak yourself in life energy that heavily reduces enemy contact damage for {2} seconds
|
||||
This has a {3} second cooldown
|
||||
'''
|
||||
}
|
||||
|
||||
TarragonHeadRanged: {
|
||||
DisplayName: Tarragon Visage
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased ranged damage and critical strike chance
|
||||
10% increased damage reduction
|
||||
'''
|
||||
Tooltip: "{$CommonItemTooltip.PercentIncreasedRangedDamage} and {$CommonItemTooltip.PercentIncreasedRangedCritChance@1}"
|
||||
SetBonus: "{$TarragonHeadRanged.SetBonusEffect}"
|
||||
SetBonusEffect: Ranged projectiles split into homing life energy and leaves on death
|
||||
SetBonusEffect: Ranged projectiles spawn homing life energy and leaves on enemy hits
|
||||
}
|
||||
|
||||
TarragonHeadRogue: {
|
||||
DisplayName: Tarragon Helmet
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased rogue damage and critical strike chance
|
||||
10% increased damage reduction and 5% increased movement speed
|
||||
{$Common.RogueDamage} and {$Common.RogueCrit@1}
|
||||
{$CommonItemTooltip.PercentIncreasedMovementSpeed@2}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
+115 maximum stealth
|
||||
{$TarragonHeadRogue.SetBonusEffect}
|
||||
{$Common.RogueStealth}
|
||||
{$TarragonHeadRogue.SetBonusEffect@1}
|
||||
'''
|
||||
SetBonusEffect:
|
||||
'''
|
||||
After every 50 rogue critical hits you will gain 2.5 seconds of damage immunity
|
||||
This effect has a cooldown of 25 seconds
|
||||
While under the effects of a debuff you gain 10% increased rogue damage
|
||||
After every {0} rogue critical hits you will gain {1} seconds of damage immunity
|
||||
This effect has a cooldown of {2} seconds
|
||||
While under the effects of a debuff you gain {3}% increased rogue damage
|
||||
'''
|
||||
}
|
||||
|
||||
TarragonHeadSummon: {
|
||||
DisplayName: Tarragon Horned Helm
|
||||
Tooltip: 10% increased damage reduction and 5% increased summon damage
|
||||
Tooltip:
|
||||
'''
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
50% increased summon damage and +3 max minions
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
{$TarragonHeadSummon.SetBonusEffect}
|
||||
'''
|
||||
SetBonusEffect: Summons a life aura around you that damages nearby enemies
|
||||
@@ -686,7 +686,7 @@ TarragonLeggings: {
|
||||
DisplayName: Tarragon Leggings
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased movement speed
|
||||
8% increased damage and critical strike chance
|
||||
{$CommonItemTooltip.PercentIncreasedDamageCritChance}
|
||||
{$CommonItemTooltip.PercentIncreasedMovementSpeed@1}
|
||||
'''
|
||||
}
|
||||
Reference in new issue
Block a user