Daedalus stat shuffle
This commit is contained in:
1 parent
628746df29
commit
806878ef52
12 files changed
+137
-95
No files matched your search
@@ -72,8 +72,6 @@
|
||||
internal static readonly int AmalgamDodgeCooldownMax = 5400;
|
||||
internal static readonly int MirrorDodgeCooldownMin = 1200;
|
||||
internal static readonly int MirrorDodgeCooldownMax = 5400;
|
||||
internal static readonly int DaedalusReflectCooldownMin = 1200;
|
||||
internal static readonly int DaedalusReflectCooldownMax = 5400;
|
||||
internal static readonly int EvolutionReflectCooldownMin = 1200;
|
||||
internal static readonly int EvolutionReflectCooldownMax = 5400;
|
||||
#endregion
|
||||
|
||||
@@ -14,6 +14,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Armor.Aerospec;
|
||||
using CalamityMod.Items.Armor.Daedalus;
|
||||
using CalamityMod.Items.Armor.Demonshade;
|
||||
using CalamityMod.Items.Armor.LunicCorps;
|
||||
using CalamityMod.Items.Armor.Silva;
|
||||
@@ -1453,7 +1454,7 @@ namespace CalamityMod.CalPlayer
|
||||
int daedalusReflectIFrames = Player.ComputeReflectIFrames();
|
||||
Player.GiveUniversalIFrames(daedalusReflectIFrames, true);
|
||||
|
||||
int cooldownDuration = (int)MathHelper.Lerp(BalancingConstants.DaedalusReflectCooldownMin, BalancingConstants.DaedalusReflectCooldownMax, cooldownDurationScalar);
|
||||
int cooldownDuration = (int)MathHelper.Lerp(DaedalusHeadMelee.ReflectCooldownMin, DaedalusHeadMelee.ReflectCooldownMax, cooldownDurationScalar);
|
||||
Player.AddCooldown(GlobalDodge.ID, cooldownDuration);
|
||||
}
|
||||
}
|
||||
@@ -2280,9 +2281,9 @@ namespace CalamityMod.CalPlayer
|
||||
victideBarrierHeal += healAmt;
|
||||
}
|
||||
|
||||
if (daedalusAbsorb && Main.rand.NextBool(10))
|
||||
if (daedalusAbsorb && Main.rand.NextBool(DaedalusHeadMagic.AbsorptionChanceDenominator))
|
||||
{
|
||||
int healAmt = (int)(hurtInfo.Damage / 2D);
|
||||
int healAmt = (int)(hurtInfo.Damage * DaedalusHeadMagic.DamageAbsorptionPercent);
|
||||
Player.HealPlayer(healAmt);
|
||||
}
|
||||
|
||||
@@ -2676,7 +2677,7 @@ namespace CalamityMod.CalPlayer
|
||||
double startAngle = Math.Atan2(Player.velocity.X, Player.velocity.Y) - spread / 2;
|
||||
double deltaAngle = spread / 8f;
|
||||
double offsetAngle;
|
||||
int sDamage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(60);
|
||||
int sDamage = (int)Player.GetTotalDamage<RangedDamageClass>().ApplyTo(DaedalusHeadRanged.ShardDamage);
|
||||
|
||||
if (Player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Daedalus
|
||||
@@ -9,6 +10,10 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusBreastplate : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float DamageBoost = 0.08f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent());
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -23,14 +28,10 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 19; //41
|
||||
Item.defense = 19;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += 0.03f;
|
||||
player.GetCritChance<GenericDamageClass>() += 3;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => 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.Daedalus
|
||||
@@ -11,19 +12,27 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusHeadMagic : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int MaxManaBoost = 80;
|
||||
public static float ManaCostReduction = 0.1f;
|
||||
public static float MagicDamageBoost = 0.13f;
|
||||
public static int MagicCritBoost = 7;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxManaBoost, ManaCostReduction.ToPercent(), MagicDamageBoost.ToPercent(), MagicCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int AbsorptionChanceDenominator = 10;
|
||||
public static float DamageAbsorptionPercent = 0.5f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 5; //35
|
||||
Item.defense = 5; // 39
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -33,18 +42,17 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(AbsorptionChanceDenominator.GetChanceFromDenominator(), DamageAbsorptionPercent.ToPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.daedalusAbsorb = true;
|
||||
player.GetDamage<MagicDamageClass>() += 0.05f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.manaCost -= 0.1f;
|
||||
player.GetDamage<MagicDamageClass>() += 0.13f;
|
||||
player.GetCritChance<MagicDamageClass>() += 7;
|
||||
player.statManaMax2 += 60;
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
player.manaCost -= ManaCostReduction;
|
||||
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
|
||||
player.GetCritChance<MagicDamageClass>() += MagicCritBoost;
|
||||
}
|
||||
|
||||
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.Daedalus
|
||||
@@ -11,19 +12,27 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusHeadMelee : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float MeleeDamageBoost = 0.1f;
|
||||
public static int MeleeCritBoost = 10; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public static float MeleeSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent(), MeleeSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusAggroBoost = 500;
|
||||
public static int ReflectCooldownMin = CalamityUtils.SecondsToFrames(20);
|
||||
public static int ReflectCooldownMax = CalamityUtils.SecondsToFrames(90);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 21; //51
|
||||
Item.defense = 21; // 55
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -36,14 +45,14 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.daedalusReflect = true;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 0.1f;
|
||||
player.aggro += 500;
|
||||
player.aggro += SetBonusAggroBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.15f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 10;
|
||||
player.GetDamage<MeleeDamageClass>() += MeleeDamageBoost;
|
||||
player.GetCritChance<MeleeDamageClass>() += MeleeCritBoost;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += MeleeSpeedBoost;
|
||||
}
|
||||
|
||||
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.Daedalus
|
||||
@@ -11,19 +12,25 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusHeadRanged : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RangedDamageBoost = 0.13f;
|
||||
public static int RangedCritBoost = 7;
|
||||
// NOTE: Ammo conservation is a bool so the number is manually added in the tooltip and equip
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent(), RangedCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int ShardDamage = 60;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 9; //39
|
||||
Item.defense = 9; // 43
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -36,14 +43,13 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.daedalusShard = true;
|
||||
player.GetDamage<RangedDamageClass>() += 0.05f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
player.ammoCost80 = true;
|
||||
player.GetDamage<RangedDamageClass>() += 0.13f;
|
||||
player.GetCritChance<RangedDamageClass>() += 7;
|
||||
}
|
||||
|
||||
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.Daedalus
|
||||
@@ -11,19 +12,29 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusHeadRogue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.13f;
|
||||
public static int RogueCritBoost = 5;
|
||||
public static float RogueVelocityBoost = 0.15f;
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), RogueCritBoost, RogueVelocityBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 1.05f;
|
||||
public static int ShardCountLimit = 15;
|
||||
public static double ShardDamageRatio = 0.25D;
|
||||
public static int ShardDamageSoftcap = 30;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 7; //37
|
||||
Item.defense = 7; // 41
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -33,20 +44,19 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.daedalusSplit = true;
|
||||
modPlayer.rogueStealthMax += 1.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().rogueVelocity += 0.15f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.13f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 7;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
player.Calamity().rogueVelocity += RogueVelocityBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -6,6 +6,7 @@ using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Daedalus
|
||||
@@ -15,6 +16,14 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusHeadSummon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MinionSlotBoost, SummonDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static float SetBonusSummonDamageBoost = 0.1f;
|
||||
public static int CrystalDamage = 95;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -23,13 +32,10 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 3; //33
|
||||
Item.defense = 3; // 37
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
}
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs) => body.type == ModContent.ItemType<DaedalusBreastplate>() && legs.type == ModContent.ItemType<DaedalusLeggings>();
|
||||
|
||||
public override void ArmorSetShadows(Player player)
|
||||
{
|
||||
@@ -39,7 +45,7 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMinionSlotBoost, SetBonusSummonDamageBoost.ToPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.daedalusCrystal = true;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
@@ -57,13 +63,14 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
p.originalDamage = CrystalDamage;
|
||||
}
|
||||
}
|
||||
player.GetDamage<SummonDamageClass>() += 0.2f;
|
||||
player.maxMinions += 2;
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SetBonusSummonDamageBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
}
|
||||
|
||||
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.Daedalus
|
||||
@@ -9,19 +10,24 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
public class DaedalusLeggings : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.Hardmode";
|
||||
|
||||
public static int CritBoost = 8;
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritBoost, MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityPinkBuyPrice;
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.defense = 15; //41
|
||||
Item.defense = 15;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<GenericDamageClass>() += 3;
|
||||
player.moveSpeed += 0.1f;
|
||||
player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -62,35 +62,29 @@ BrimflameRobes: {
|
||||
|
||||
DaedalusBreastplate: {
|
||||
DisplayName: Daedalus Breastplate
|
||||
Tooltip: 3% increased damage and critical strike chance
|
||||
Tooltip: "{$CommonItemTooltip.PercentIncreasedDamage}"
|
||||
}
|
||||
|
||||
DaedalusHeadMagic: {
|
||||
DisplayName: Daedalus Hood
|
||||
Tooltip:
|
||||
'''
|
||||
13% increased magic damage and 7% increased magic critical strike chance
|
||||
10% reduced mana usage and +60 max mana
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased magic damage
|
||||
You have a 10% chance to absorb physical attacks and projectiles when hit
|
||||
If you absorb an attack you are healed for 1/2 of that attack's damage
|
||||
{$CommonItemTooltip.IncreasesMaxManaBy} and {$CommonItemTooltip.PercentReducedManaCost@1}
|
||||
{$CommonItemTooltip.PercentIncreasedMagicDamage@2} and {$CommonItemTooltip.PercentIncreasedMagicCritChance@3}
|
||||
'''
|
||||
SetBonus: You have a {0}% chance to heal back {1}% of taken damage
|
||||
}
|
||||
|
||||
DaedalusHeadMelee: {
|
||||
DisplayName: Daedalus Helm
|
||||
Tooltip:
|
||||
'''
|
||||
15% increased melee damage
|
||||
10% increased melee critical strike chance
|
||||
{$CommonItemTooltip.PercentIncreasedMeleeDamageCritChance}
|
||||
{$CommonItemTooltip.PercentIncreasedMeleeSpeed@1}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
10% increased melee speed
|
||||
Enemies are more likely to target you
|
||||
{$Common.AggroBoost}
|
||||
You reflect projectiles back at enemies
|
||||
Reflected projectiles deal 50% less damage to you
|
||||
{$Common.ReflectInformation}
|
||||
@@ -101,37 +95,37 @@ DaedalusHeadRanged: {
|
||||
DisplayName: Daedalus Headgear
|
||||
Tooltip:
|
||||
'''
|
||||
13% increased ranged damage and 7% increased ranged critical strike chance
|
||||
Reduces ammo usage by 20%
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased ranged damage
|
||||
Getting hit causes you to emit a blast of crystal shards
|
||||
{$CommonItemTooltip.PercentIncreasedRangedDamage} and {$CommonItemTooltip.PercentIncreasedRangedCritChance@1}
|
||||
20% chance to save ammo
|
||||
'''
|
||||
SetBonus: Getting hit causes you to emit a blast of crystal shards
|
||||
}
|
||||
|
||||
DaedalusHeadRogue: {
|
||||
DisplayName: Daedalus Facemask
|
||||
Tooltip:
|
||||
'''
|
||||
13% increased rogue damage and 7% increased rogue critical strike chance
|
||||
15% increased rogue velocity and 5% increased movement speed
|
||||
{$Common.RogueDamage} and {$Common.RogueCrit@1}
|
||||
{$Common.RogueVelocity@2} and {$CommonItemTooltip.PercentIncreasedMovementSpeed@3}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased rogue damage
|
||||
+105 maximum stealth
|
||||
{$Common.RogueStealth}
|
||||
Rogue projectiles throw out crystal shards as they travel
|
||||
'''
|
||||
}
|
||||
|
||||
DaedalusHeadSummon: {
|
||||
DisplayName: Daedalus Mask
|
||||
Tooltip: 5% increased summon damage
|
||||
Tooltip:
|
||||
'''
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
20% increased summon damage and +2 max minions
|
||||
{$CommonItemTooltip.IncreasesMaxMinionsBy}
|
||||
{$CommonItemTooltip.PercentIncreasedSummonDamage@1}
|
||||
A daedalus crystal floats above you to protect you
|
||||
'''
|
||||
}
|
||||
@@ -140,8 +134,8 @@ DaedalusLeggings: {
|
||||
DisplayName: Daedalus Leggings
|
||||
Tooltip:
|
||||
'''
|
||||
3% increased critical strike chance
|
||||
10% increased movement speed
|
||||
{$CommonItemTooltip.PercentIncreasedCritChance}
|
||||
{$CommonItemTooltip.PercentIncreasedMovementSpeed@1}
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ using CalamityMod.Events;
|
||||
using CalamityMod.ExtraTextures;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Ammo;
|
||||
using CalamityMod.Items.Armor.Daedalus;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.NPCs;
|
||||
@@ -3302,10 +3303,9 @@ namespace CalamityMod.Projectiles
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileID.CrystalShard] < 15)
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileID.CrystalShard] < DaedalusHeadRogue.ShardCountLimit)
|
||||
{
|
||||
// Daedalus Rogue Crystals: 25%, soft cap starts at 120 base damage
|
||||
int crystalDamage = CalamityUtils.DamageSoftCap(projectile.damage * 0.25, 30);
|
||||
int crystalDamage = CalamityUtils.DamageSoftCap(projectile.damage * DaedalusHeadRogue.ShardDamageRatio, DaedalusHeadRogue.ShardDamageSoftcap);
|
||||
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int shard = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, velocity, ProjectileID.CrystalShard, crystalDamage, 0f, projectile.owner);
|
||||
|
||||
@@ -95,6 +95,8 @@ namespace CalamityMod
|
||||
public static string ToJumpSpeedPercent(this float boost) => Round(boost * 20f, "N2");
|
||||
public static string ToStealth(this float stealth) => Round(stealth * 100f, "N0");
|
||||
|
||||
public static string GetChanceFromDenominator(this int denominator) => ToPercent(1 / (float)denominator);
|
||||
|
||||
public static string ToPercent(this float percent, string precision = "N1") => Round(percent * 100f, precision);
|
||||
public static string ToPercent(this double percent, string precision = "N1") => Round(percent * 100D, precision);
|
||||
// Double-rounded for proper digit cutoffs
|
||||
|
||||
Reference in new issue
Block a user