Titan Heart stat shuffle
+ Umbraphile cleanup
This commit is contained in:
1 parent
63d243c53e
commit
b64c4e6485
10 files changed
+85
-63
No files matched your search
@@ -28,6 +28,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.TitanHeart;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Dyes;
|
||||
@@ -1144,7 +1145,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool titanHeartSet = false;
|
||||
public bool titanHeartMask = false;
|
||||
public bool titanHeartMantle = false;
|
||||
public bool titanHeartBoots = false;
|
||||
public int titanCooldown = 0;
|
||||
public bool umbraphileSet = false;
|
||||
public bool reaverSpeed = false;
|
||||
@@ -2382,7 +2382,6 @@ namespace CalamityMod.CalPlayer
|
||||
titanHeartSet = false;
|
||||
titanHeartMask = false;
|
||||
titanHeartMantle = false;
|
||||
titanHeartBoots = false;
|
||||
umbraphileSet = false;
|
||||
plagueReaper = false;
|
||||
plaguebringerPatronSet = false;
|
||||
@@ -3123,7 +3122,6 @@ namespace CalamityMod.CalPlayer
|
||||
titanHeartSet = false;
|
||||
titanHeartMask = false;
|
||||
titanHeartMantle = false;
|
||||
titanHeartBoots = false;
|
||||
titanCooldown = 0;
|
||||
umbraphileSet = false;
|
||||
fathomSwarmer = false;
|
||||
@@ -4575,20 +4573,11 @@ namespace CalamityMod.CalPlayer
|
||||
if (moscowMule)
|
||||
knockback += MoscowMule.KnockbackBoost;
|
||||
|
||||
if (titanHeartMask && rogue)
|
||||
knockback += 0.05f;
|
||||
|
||||
if (titanHeartMantle && rogue)
|
||||
knockback += 0.05f;
|
||||
|
||||
if (titanHeartBoots && rogue)
|
||||
knockback += 0.05f;
|
||||
|
||||
if (titanHeartSet && rogue)
|
||||
knockback += 0.2f;
|
||||
knockback += TitanHeartMantle.RogueKnockbackBoost;
|
||||
|
||||
if (titanHeartSet && StealthStrikeAvailable() && rogue)
|
||||
knockback += 1f;
|
||||
knockback *= TitanHeartMask.StealthStrikeKnockbackMult;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@ using CalamityMod.Items.Armor.Astral;
|
||||
using CalamityMod.Items.Armor.Reaver;
|
||||
using CalamityMod.Items.Armor.SnowRuffian;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Armor.TitanHeart;
|
||||
using CalamityMod.Items.Armor.Umbraphile;
|
||||
using CalamityMod.Items.Fishing.AstralCatches;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.NPCs;
|
||||
@@ -1120,7 +1122,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (titanHeartSet && modProj.stealthStrike && titanCooldown <= 0 && modProj.stealthStrikeHitCount < 3)
|
||||
{
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(40);
|
||||
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(TitanHeartMask.ExplosionDamage);
|
||||
|
||||
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<TitanHeartBoom>(), damage, proj.knockBack, proj.owner, 1f, 0f);
|
||||
SoundEngine.PlaySound(SoundID.Item14, proj.Center);
|
||||
@@ -1150,9 +1152,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Umbraphile cannot trigger off of itself. It is guaranteed on stealth strikes and 20% chance otherwise.
|
||||
if (umbraphileSet && ((modProj.stealthStrike && modProj.stealthStrikeHitCount < 3) || Main.rand.NextBool(5)))
|
||||
{
|
||||
// Umbraphile Rogue Blasts: 20%, softcap starts at 50 base damage
|
||||
int umbraBlastDamage = CalamityUtils.DamageSoftCap(proj.damage * 0.20, 50);
|
||||
|
||||
int umbraBlastDamage = CalamityUtils.DamageSoftCap(proj.damage * UmbraphileHood.ExplosionDamageRatio, UmbraphileHood.ExplosionDamageSoftcap);
|
||||
Projectile.NewProjectile(spawnSource, proj.Center, Vector2.Zero, ProjectileType<UmbraphileBoom>(), umbraBlastDamage, 0f, Player.whoAmI);
|
||||
}
|
||||
if (electricianGlove && modProj.stealthStrike && modProj.stealthStrikeHitCount < 3)
|
||||
@@ -1233,7 +1233,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (titanHeartMask)
|
||||
{
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), 120);
|
||||
target.AddBuff(BuffType<AstralInfectionDebuff>(), TitanHeartMask.OnHitDebuffDuration);
|
||||
}
|
||||
}
|
||||
if (summon)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.TitanHeart
|
||||
@@ -10,6 +11,10 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public class TitanHeartBoots : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.07f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -19,12 +24,7 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
Item.defense = 10;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().titanHeartBoots = true;
|
||||
player.Calamity().rogueVelocity += 0.1f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.04f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.TitanHeart
|
||||
@@ -10,6 +11,11 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public class TitanHeartMantle : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.1f;
|
||||
public static float RogueKnockbackBoost = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueKnockbackBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -33,7 +39,7 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().titanHeartMantle = true;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.FurnitureMonolith;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.TitanHeart
|
||||
@@ -11,6 +12,17 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
public class TitanHeartMask : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.07f;
|
||||
public static float RogueVelocityBoost = 0.1f;
|
||||
public static int OnHitDebuffDuration = CalamityUtils.SecondsToFrames(2);
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueVelocityBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 1f;
|
||||
public static float StealthStrikeKnockbackMult = 2f;
|
||||
public static int ExplosionDamage = 40;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -20,18 +32,14 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
Item.defense = 8; // 32
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TitanHeartMantle>() && legs.type == ModContent.ItemType<TitanHeartBoots>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<TitanHeartMantle>() && legs.type == ModContent.ItemType<TitanHeartBoots>();
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth(), StealthStrikeKnockbackMult);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.titanHeartSet = true;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.10f;
|
||||
modPlayer.rogueStealthMax += 1f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.noKnockback = true;
|
||||
}
|
||||
@@ -40,7 +48,8 @@ namespace CalamityMod.Items.Armor.TitanHeart
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.titanHeartMask = true;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
modPlayer.rogueVelocity += RogueVelocityBoost;
|
||||
}
|
||||
|
||||
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.Umbraphile
|
||||
@@ -9,6 +10,12 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
public class UmbraphileBoots : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.09f;
|
||||
public static int RogueCritBoost = 6;
|
||||
public static float MoveSpeedBoost = 0.2f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost, MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
@@ -20,9 +27,9 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.2f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.09f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 6;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
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.Umbraphile
|
||||
@@ -10,6 +11,16 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
public class UmbraphileHood : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.08f;
|
||||
public static float RogueVelocityBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueVelocityBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 1.1f;
|
||||
public static double ExplosionDamageRatio = 0.2D;
|
||||
public static int ExplosionDamageSoftcap = 50;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
@@ -19,29 +30,23 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
Item.defense = 10;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<UmbraphileRegalia>() && legs.type == ModContent.ItemType<UmbraphileBoots>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<UmbraphileRegalia>() && legs.type == ModContent.ItemType<UmbraphileBoots>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
player.armorEffectDrawShadow = true;
|
||||
}
|
||||
public override void ArmorSetShadows(Player player) => player.armorEffectDrawShadow = true;
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.umbraphileSet = true;
|
||||
modPlayer.rogueStealthMax += 1.1f;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth());
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.08f;
|
||||
player.Calamity().rogueVelocity += 0.1f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.Calamity().rogueVelocity += RogueVelocityBoost;
|
||||
}
|
||||
|
||||
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.Umbraphile
|
||||
@@ -9,6 +10,11 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
public class UmbraphileRegalia : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.1f;
|
||||
public static int RogueCritBoost = 10; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
@@ -20,8 +26,8 @@ namespace CalamityMod.Items.Armor.Umbraphile
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 10;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -12,6 +12,7 @@ DoubleTapDown: Double tap {0}
|
||||
// Miscellaneous stats/info
|
||||
AggroBoost: Enemies are more likely to target you
|
||||
AggroReduction: Enemies are less likely to target you
|
||||
KnockbackImmunity: Grants immunity to knockback
|
||||
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
|
||||
|
||||
@@ -489,27 +489,26 @@ ReaverScaleMail: {
|
||||
|
||||
TitanHeartBoots: {
|
||||
DisplayName: Titan Heart Boots
|
||||
Tooltip: 4% increased rogue damage, 10% increased rogue velocity, and 5% increased rogue knockback
|
||||
Tooltip: "{$Common.RogueDamage}"
|
||||
}
|
||||
|
||||
TitanHeartMantle: {
|
||||
DisplayName: Titan Heart Mantle
|
||||
Tooltip: 5% boosted rogue damage and knockback
|
||||
Tooltip: "{$Common.RogueDamage} and {1}% increased rogue knockback"
|
||||
}
|
||||
|
||||
TitanHeartMask: {
|
||||
DisplayName: Titan Heart Mask
|
||||
Tooltip:
|
||||
'''
|
||||
5% increased rogue damage and knockback
|
||||
{$Common.RogueDamage} and {$Common.RogueVelocity@1}
|
||||
Rogue weapons inflict the Astral Infection debuff
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
10% increased rogue damage and 20% increased rogue knockback
|
||||
+100 maximum stealth
|
||||
Stealth strikes deal double knockback and cause an astral explosion
|
||||
Grants immunity to knockback
|
||||
{$Common.RogueStealth}
|
||||
Stealth strikes deal {1}x knockback and cause an astral explosion
|
||||
{$Common.KnockbackImmunity}
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -517,17 +516,17 @@ UmbraphileBoots: {
|
||||
DisplayName: Umbraphile Boots
|
||||
Tooltip:
|
||||
'''
|
||||
9% increased rogue damage and 6% increased rogue crit
|
||||
20% increased movement speed
|
||||
{$Common.RogueDamage} and {$Common.RogueCrit@1}
|
||||
{$CommonItemTooltip.PercentIncreasedMovementSpeed@2}
|
||||
'''
|
||||
}
|
||||
|
||||
UmbraphileHood: {
|
||||
DisplayName: Umbraphile Hood
|
||||
Tooltip: 8% increased rogue damage and 10% increased rogue velocity
|
||||
Tooltip: "{$Common.RogueDamage} and {$Common.RogueVelocity@1}"
|
||||
SetBonus:
|
||||
'''
|
||||
+110 maximum stealth
|
||||
{$Common.RogueStealth}
|
||||
Rogue weapons have a chance to create explosions on hit
|
||||
Stealth strikes always create an explosion
|
||||
'''
|
||||
@@ -535,5 +534,5 @@ UmbraphileHood: {
|
||||
|
||||
UmbraphileRegalia: {
|
||||
DisplayName: Umbraphile Regalia
|
||||
Tooltip: 10% increased rogue damage and 10% increased rogue crit
|
||||
Tooltip: "{$Common.RogueDamageCrit}"
|
||||
}
|
||||
Reference in new issue
Block a user