Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into VictideSet
No files matched your search
@@ -1067,6 +1067,8 @@ namespace CalamityMod.CalPlayer
|
||||
/// <summary> Calamity's Silver armor set bonus; taking over 20 damage heals 10 health if the player avoids damage for 2 seconds. </summary>
|
||||
public bool silverMedkit = false;
|
||||
public int silverMedkitTimer = 0;
|
||||
/// <summary> Calamity's Tungsten armor set bonus; makes grappling hooks fly and retract faster. </summary>
|
||||
public bool tungstenArmorHookBoost = false;
|
||||
/// <summary> Calamity's Gold armor set bonus; makes enemies drop Gold Coins. </summary>
|
||||
public bool goldArmorGoldDrops = false;
|
||||
/// <summary> Calamity's Mining armor set bonus; gives a chance for extra items to drop when mining ores. </summary>
|
||||
@@ -2366,6 +2368,7 @@ namespace CalamityMod.CalPlayer
|
||||
forbiddenCirclet = false;
|
||||
|
||||
silverMedkit = false;
|
||||
tungstenArmorHookBoost = false;
|
||||
goldArmorGoldDrops = false;
|
||||
|
||||
miningSet = false;
|
||||
@@ -3079,6 +3082,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Armor Set Bonuses
|
||||
silverMedkit = false;
|
||||
silverMedkitTimer = 0;
|
||||
tungstenArmorHookBoost = false;
|
||||
goldArmorGoldDrops = false;
|
||||
miningSet = false;
|
||||
miningSetCooldown = 0;
|
||||
|
||||
@@ -1374,7 +1374,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.ThornBall)
|
||||
{
|
||||
Player.AddBuff(BuffID.Poisoned, 420);
|
||||
Player.AddBuff(BuffID.Venom, 120);
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossFireBall)
|
||||
{
|
||||
@@ -2550,13 +2550,13 @@ namespace CalamityMod.CalPlayer
|
||||
if (!canTriggerHitEffects)
|
||||
return;
|
||||
|
||||
if (aeroSet && hurtInfo.Damage > 25)
|
||||
if (aeroSet && hurtInfo.Damage > AerospecBreastplate.SetBonusHurtDamageThreshold)
|
||||
{
|
||||
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
|
||||
var source = Player.GetSource_OnHurt(hurtInfo.DamageSource, AerospecBreastplate.FeatherEntitySourceContext);
|
||||
for (int n = 0; n < 4; n++)
|
||||
{
|
||||
int featherDamage = (int)Player.GetBestClassDamage().ApplyTo(30);
|
||||
int featherDamage = (int)Player.GetBestClassDamage().ApplyTo(AerospecBreastplate.SetBonusFeatherDamage);
|
||||
|
||||
CalamityUtils.ProjectileRain(source, Player.Center, 400f, 100f, 500f, 800f, 20f, ModContent.ProjectileType<StickyFeatherAero>(), featherDamage, 1f, Player.whoAmI);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ using CalamityMod.ExtraTextures;
|
||||
using CalamityMod.Items;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Ammo;
|
||||
using CalamityMod.Items.Armor.Aerospec;
|
||||
using CalamityMod.Items.Armor.Bloodflare;
|
||||
using CalamityMod.Items.Armor.Brimflame;
|
||||
using CalamityMod.Items.Armor.DesertProwler;
|
||||
@@ -1293,7 +1294,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (!Player.wet)
|
||||
{
|
||||
if (aeroSet)
|
||||
Player.maxFallSpeed = 15f;
|
||||
Player.maxFallSpeed = AerospecBreastplate.SetBonusFallSpeed;
|
||||
if (Player.PortalPhysicsEnabled)
|
||||
Player.maxFallSpeed = 20f;
|
||||
}
|
||||
@@ -4409,7 +4410,7 @@ namespace CalamityMod.CalPlayer
|
||||
break;
|
||||
case BuffID.Confused:
|
||||
Player.confused = false;
|
||||
Player.statDefense += 10;
|
||||
Player.statDefense += 15;
|
||||
break;
|
||||
case BuffID.Cursed:
|
||||
Player.cursed = false;
|
||||
|
||||
@@ -45,18 +45,6 @@ namespace CalamityMod
|
||||
}
|
||||
}
|
||||
|
||||
#region Multi-Threading Settings
|
||||
[Header("Multithreading")]
|
||||
|
||||
[BackgroundColor(192, 54, 64, 192)]
|
||||
[SliderColor(224, 165, 56, 128)]
|
||||
[Range(0f, 2f)]
|
||||
[DefaultValue(0f)]
|
||||
[Increment(1f)]
|
||||
[DrawTicks]
|
||||
public float SunkenSeaMultiThreading { get; set; }
|
||||
#endregion
|
||||
|
||||
#region Graphics Changes
|
||||
[Header("Graphics")]
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Armor.Sulphurous;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
@@ -46,7 +47,7 @@ namespace CalamityMod.ExtraJumps
|
||||
if (modPlayer.sulphurBubbleCooldown <= 0)
|
||||
{
|
||||
var source = player.GetSource_Misc("0");
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(SulphurousHelmet.BubbleDamage);
|
||||
|
||||
int bubble = Projectile.NewProjectile(source, new Vector2(player.position.X, player.position.Y + (player.gravDir == -1f ? 20 : -20)), Vector2.Zero, ModContent.ProjectileType<SulphuricAcidBubbleFriendly>(), damage, 0f, player.whoAmI, 1f, 0f);
|
||||
if (bubble.WithinBounds(Main.maxProjectiles))
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Aerospec
|
||||
@@ -11,6 +12,15 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
internal static string FeatherEntitySourceContext => "SetBonus_Calamity_Aerospec";
|
||||
|
||||
public static float DamageBoost = 0.03f;
|
||||
public static int CritBoost = 3; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent());
|
||||
|
||||
// Common Set Bonus
|
||||
public static int SetBonusHurtDamageThreshold = 25;
|
||||
public static int SetBonusFeatherDamage = 30;
|
||||
public static float SetBonusFallSpeed = 15f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -22,8 +32,8 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += 0.03f;
|
||||
player.GetCritChance<GenericDamageClass>() += 3;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
}
|
||||
|
||||
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.Aerospec
|
||||
@@ -11,6 +12,16 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecHeadMagic : ModItem, ILocalizedModType
|
||||
{
|
||||
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);
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusManaCostReduction = 0.08f;
|
||||
public static float SetBonusMoveSpeedBoost = 0.05f;
|
||||
public static int SetBonusMagicCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -32,19 +43,20 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<AerospecBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusManaCostReduction.ToPercent(), SetBonusMoveSpeedBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.aeroSet = true;
|
||||
player.noFallDmg = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.manaCost -= 0.08f;
|
||||
player.GetCritChance<MagicDamageClass>() += 5;
|
||||
player.moveSpeed += SetBonusMoveSpeedBoost;
|
||||
player.manaCost -= SetBonusManaCostReduction;
|
||||
player.GetCritChance<MagicDamageClass>() += SetBonusMagicCritBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MagicDamageClass>() += 0.1f;
|
||||
player.statManaMax2 += 30;
|
||||
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
}
|
||||
|
||||
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.Aerospec
|
||||
@@ -11,6 +12,15 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecHeadMelee : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MeleeDamageBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusMoveSpeedBoost = 0.05f;
|
||||
public static int SetBonusMeleeCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal
|
||||
public static int SetBonusAggroBoost = 300;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -32,19 +42,17 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<AerospecBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.aeroSet = true;
|
||||
player.noFallDmg = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 5;
|
||||
player.aggro += 300;
|
||||
player.moveSpeed += SetBonusMoveSpeedBoost;
|
||||
player.GetCritChance<MeleeDamageClass>() += SetBonusMeleeCritBoost;
|
||||
player.aggro += SetBonusAggroBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<MeleeDamageClass>() += MeleeDamageBoost;
|
||||
|
||||
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.Aerospec
|
||||
@@ -11,6 +12,14 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecHeadRanged : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float RangedDamageBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusMoveSpeedBoost = 0.05f;
|
||||
public static int SetBonusRangedCritBoost = 5; // NOTE: Tooltip shares this number with move speed % as they're equal
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -32,18 +41,16 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<AerospecBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.aeroSet = true;
|
||||
player.noFallDmg = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetCritChance<RangedDamageClass>() += 5;
|
||||
player.moveSpeed += SetBonusMoveSpeedBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += SetBonusRangedCritBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
|
||||
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.Aerospec
|
||||
@@ -11,6 +12,16 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecHeadRogue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float RogueDamageBoost = 0.1f;
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RogueDamageBoost.ToPercent(), MoveSpeedBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
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()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
@@ -38,20 +49,21 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<AerospecBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusMoveSpeedBoost.ToPercent(), SetBonusRogueStealth.ToStealth())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.aeroSet = true;
|
||||
modPlayer.rogueStealthMax += 0.8f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
player.noFallDmg = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 5;
|
||||
player.moveSpeed += SetBonusMoveSpeedBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += SetBonusRogueCritBoost;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Aerospec
|
||||
@@ -14,6 +15,14 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecHeadSummon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float SummonDamageBoost = 0.1f;
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
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 int ValkyrieDamage = 20;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -37,7 +46,8 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<AerospecBreastplate>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost)
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<AerospecBreastplate>("CommonSetBonus").Format(AerospecBreastplate.SetBonusHurtDamageThreshold);
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.valkyrie = true;
|
||||
modPlayer.aeroSet = true;
|
||||
@@ -58,14 +68,14 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
Main.projectile[p].originalDamage = ValkyrieDamage;
|
||||
}
|
||||
}
|
||||
player.GetDamage<SummonDamageClass>() += 0.11f;
|
||||
player.maxMinions++;
|
||||
player.GetDamage<SummonDamageClass>() += SetBonusSummonDamageBoost;
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.1f;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
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.Aerospec
|
||||
@@ -9,6 +10,10 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
public class AerospecLeggings : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.12f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -18,10 +23,7 @@ namespace CalamityMod.Items.Armor.Aerospec
|
||||
Item.defense = 6;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.12f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -27,6 +27,12 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
public static readonly SoundStyle SmokeBombEndSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerSmokeBombEnd");
|
||||
public static readonly SoundStyle CDResetSound = new("CalamityMod/Sounds/Custom/AbilitySounds/DesertProwlerCDReset");
|
||||
|
||||
public static int RogueCritBoost = 4;
|
||||
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);
|
||||
@@ -77,10 +83,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(); //More gets edited in elsewhere
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueDamageBoost.ToPercent(), SetBonusRogueStealth.ToStealth()); //More gets edited in elsewhere
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
player.Calamity().rogueStealthMax += 0.5f;
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.05f;
|
||||
player.Calamity().rogueStealthMax += SetBonusRogueStealth;
|
||||
player.GetDamage<ThrowingDamageClass>() += SetBonusRogueDamageBoost;
|
||||
|
||||
DesertProwlerPlayer armorPlayer = player.GetModPlayer<DesertProwlerPlayer>();
|
||||
armorPlayer.desertProwlerSet = true;
|
||||
@@ -182,10 +188,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<ThrowingDamageClass>() += 4;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -203,6 +206,9 @@ 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 override void SetStaticDefaults()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -225,10 +231,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<ThrowingDamageClass>() += 5;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -245,6 +248,10 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
public class DesertProwlerPants : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -253,11 +260,13 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => DesertProwlerHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.moveSpeed += 0.1f;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -16,6 +16,7 @@ using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using static Microsoft.Xna.Framework.Input.Keys;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
@@ -32,6 +33,10 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
public static readonly SoundStyle LiftGoAwaySound = new("CalamityMod/Sounds/Item/MarniteLiftUnsummon");
|
||||
public static readonly SoundStyle LiftHummSound = new("CalamityMod/Sounds/Item/MarniteLiftHumm") { IsLooped = true };
|
||||
|
||||
public static int TileRangeBoost = 5;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(TileRangeBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static float LiftRaiseSpeed = 2f;
|
||||
public static float MaxLiftHeight = 138f;
|
||||
|
||||
@@ -95,8 +100,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
//Tile range is a static variable did you know that? That's quite funny. I assume it's just because its not like other players would need to know about the players reach
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
Player.tileRangeX += 5;
|
||||
Player.tileRangeY += 5; //Extendo grip also increases vertical tile range by one less than horizontal <-- This is silly lmao
|
||||
Player.tileRangeX += TileRangeBoost;
|
||||
Player.tileRangeY += TileRangeBoost; //Extendo grip also increases vertical tile range by one less than horizontal <-- This is silly lmao
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,6 +141,10 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
public class MarniteArchitectToga : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float PlacementSpeedBoost = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(PlacementSpeedBoost.ToPercent());
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -160,8 +169,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.tileSpeed += 0.5f;
|
||||
player.wallSpeed += 0.5f;
|
||||
player.tileSpeed += PlacementSpeedBoost;
|
||||
player.wallSpeed += PlacementSpeedBoost;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => MarniteArchitectHeadgear.ModifySetTooltips(this, tooltips);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
@@ -8,6 +9,10 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public class SnowRuffianChestplate : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static int RangedCritBoost = 4;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedCritBoost);
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.dedServ)
|
||||
@@ -19,7 +24,6 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
@@ -38,10 +42,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.defense = 5; //12
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
@@ -8,6 +9,10 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
public class SnowRuffianGreaves : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -17,10 +22,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
Item.defense = 4; //12
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
@@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
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 float SetBonusRangedDamageBoost = 0.04f;
|
||||
public static int SetBonusRangedCritBoost = 4; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
@@ -38,9 +44,9 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
{
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.snowRuffianSet = true;
|
||||
player.GetCritChance<RangedDamageClass>() += 4;
|
||||
player.GetDamage<RangedDamageClass>() += 0.04f;
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.GetCritChance<RangedDamageClass>() += SetBonusRangedCritBoost;
|
||||
player.GetDamage<RangedDamageClass>() += SetBonusRangedDamageBoost;
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRangedDamageBoost.ToPercent());
|
||||
|
||||
if (player.controlJump)
|
||||
{
|
||||
@@ -59,10 +65,7 @@ namespace CalamityMod.Items.Armor.SnowRuffian
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.02f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -10,9 +11,18 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelArmor : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static int CritBoost = 5;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(CritBoost);
|
||||
|
||||
// Common Set Bonus
|
||||
public static int SetBonusHurtDamageThreshold = 100;
|
||||
public static int SetBonusIFrameExtension = 30;
|
||||
public static float SetBonusJumpSpeedBoost = 0.6f;
|
||||
public static float SetBonusJumpHeightPercentBoost = 0.3334f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.dedServ)
|
||||
return;
|
||||
|
||||
@@ -31,7 +41,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
Item.defense = 10;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<GenericDamageClass>() += 5;
|
||||
public override void UpdateEquip(Player player) => player.GetCritChance<GenericDamageClass>() += CritBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -10,6 +11,11 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelGreaves : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float DamageBoost = 0.05f;
|
||||
public static float MoveSpeedBoost = 0.05f; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -21,8 +27,8 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<GenericDamageClass>() += 0.05f;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -12,6 +13,13 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelHeadMagic : ModItem, ILocalizedModType
|
||||
{
|
||||
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 override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -28,20 +36,20 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = CalamityUtils.GetTextValueFromModItem<StatigelArmor>("CommonSetBonus");
|
||||
player.setBonus = CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.GetJumpState<StatigelJump>().Enable();
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
||||
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MagicDamageClass>() += 0.1f;
|
||||
player.GetCritChance<MagicDamageClass>() += 7;
|
||||
player.manaCost *= 0.9f;
|
||||
player.statManaMax2 += 40;
|
||||
player.GetDamage<MagicDamageClass>() += MagicDamageBoost;
|
||||
player.GetCritChance<MagicDamageClass>() += MagicCritBoost;
|
||||
player.manaCost -= ManaCostReduction;
|
||||
player.statManaMax2 += MaxManaBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -12,6 +13,15 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelHeadMelee : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MeleeDamageBoost = 0.1f;
|
||||
public static float MeleeSpeedBoost = 0.1f; // NOTE: Tooltip shares this number with damage % as they're equal
|
||||
public static int MeleeCritBoost = 7;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MeleeDamageBoost.ToPercent(), MeleeCritBoost);
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusAggroBoost = 400;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -28,20 +38,21 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<StatigelArmor>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus")
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.GetJumpState<StatigelJump>().Enable();
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
player.aggro += 400;
|
||||
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
||||
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
||||
player.aggro += SetBonusAggroBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<MeleeDamageClass>() += 0.1f;
|
||||
player.GetCritChance<MeleeDamageClass>() += 7;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() += 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.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -12,6 +13,11 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelHeadRanged : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float RangedDamageBoost = 0.1f;
|
||||
public static int RangedCritBoost = 7;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(RangedDamageBoost.ToPercent(), RangedCritBoost);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -28,18 +34,18 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = CalamityUtils.GetTextValueFromModItem<StatigelArmor>("CommonSetBonus");
|
||||
player.setBonus = CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.GetJumpState<StatigelJump>().Enable();
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
||||
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<RangedDamageClass>() += 0.1f;
|
||||
player.GetCritChance<RangedDamageClass>() += 7;
|
||||
player.GetDamage<RangedDamageClass>() += RangedDamageBoost;
|
||||
player.GetCritChance<RangedDamageClass>() += RangedCritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Statigel
|
||||
@@ -12,6 +13,15 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelHeadRogue : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
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 = 0.9f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -28,21 +38,22 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<StatigelArmor>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth())
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.GetJumpState<StatigelJump>().Enable();
|
||||
modPlayer.rogueStealthMax += 0.9f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
||||
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.1f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 7;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
player.moveSpeed += MoveSpeedBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -16,6 +16,12 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
public class StatigelHeadSummon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float SummonKBBoost = 1.5f;
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusSummonDamageBoost = 0.18f;
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static int SlimeDamage = 18;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -34,15 +40,16 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus") + "\n" + CalamityUtils.GetTextValueFromModItem<StatigelArmor>("CommonSetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusSummonDamageBoost.ToPercent(), SetBonusMinionSlotBoost)
|
||||
+ "\n" + CalamityUtils.GetTextFromModItem<StatigelArmor>("CommonSetBonus").Format(StatigelArmor.SetBonusHurtDamageThreshold, StatigelArmor.SetBonusJumpSpeedBoost.ToJumpSpeedPercent());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.slimeGod = true;
|
||||
player.GetJumpState<StatigelJump>().Enable();
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
player.GetDamage<SummonDamageClass>() += 0.18f;
|
||||
player.maxMinions++;
|
||||
Player.jumpHeight += (int)(StatigelArmor.SetBonusJumpHeightPercentBoost * 15);
|
||||
player.jumpSpeedBoost += StatigelArmor.SetBonusJumpSpeedBoost;
|
||||
player.GetDamage<SummonDamageClass>() += SetBonusSummonDamageBoost;
|
||||
player.maxMinions += SetBonusMinionSlotBoost;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
var source = player.GetSource_Accessory(Item);
|
||||
@@ -64,10 +71,7 @@ namespace CalamityMod.Items.Armor.Statigel
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetKnockback<SummonDamageClass>() += 1.5f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetKnockback<SummonDamageClass>() += SummonKBBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Sulphurous
|
||||
@@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
public class SulphurousBreastplate : ModItem, ILocalizedModType
|
||||
{
|
||||
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 void SetDefaults()
|
||||
{
|
||||
Item.width = 24;
|
||||
@@ -22,8 +28,8 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.06f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 4;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Sulphurous
|
||||
@@ -13,6 +14,15 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
public class SulphurousHelmet : ModItem, ILocalizedModType
|
||||
{
|
||||
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);
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 0.65f;
|
||||
public static int BubbleDamage = 20;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 26;
|
||||
@@ -29,19 +39,19 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(SetBonusRogueStealth.ToStealth());
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.sulphurSet = true;
|
||||
player.GetJumpState<SulphurJump>().Enable();
|
||||
modPlayer.rogueStealthMax += 0.65f;
|
||||
modPlayer.rogueStealthMax += SetBonusRogueStealth;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.ignoreWater = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.04f;
|
||||
player.GetCritChance<ThrowingDamageClass>() += 2;
|
||||
player.GetDamage<ThrowingDamageClass>() += RogueDamageBoost;
|
||||
player.GetCritChance<ThrowingDamageClass>() += RogueCritBoost;
|
||||
if (player.Calamity().countsAsAnyWet)
|
||||
player.gills = true;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Placeables.Abyss;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.Sulphurous
|
||||
@@ -11,6 +12,11 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
public class SulphurousLeggings : ModItem, ILocalizedModType
|
||||
{
|
||||
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 override void SetDefaults()
|
||||
{
|
||||
Item.width = 22;
|
||||
@@ -20,10 +26,7 @@ namespace CalamityMod.Items.Armor.Sulphurous
|
||||
Item.rare = ItemRarityID.Green;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += player.Calamity().countsAsAnyWet ? 0.35f : 0.1f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost + (player.Calamity().countsAsAnyWet ? SubmergedMoveSpeedBoostBuff : 0f);
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -35,7 +35,13 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public static readonly SoundStyle SetBreakSound = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreak");
|
||||
public static readonly SoundStyle SetBreakSoundSafe = new("CalamityMod/Sounds/Custom/AbilitySounds/WulfrumBastionBreakSafely");
|
||||
|
||||
public static int MinionSlotBoost = 1;
|
||||
public static float SummonDamageBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static int SetBonusMinionSlotBoost = 1;
|
||||
public static int BastionDefenseBoost = 13;
|
||||
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;
|
||||
@@ -132,8 +138,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
armorPlayer.wulfrumSet = true;
|
||||
|
||||
player.setBonus = this.GetLocalization("SetBonus").Format(MinionSlotBoost); //The cooler part of the set bonus happens in modifytooltips because I can't recolor it otherwise. Madge
|
||||
player.maxMinions += MinionSlotBoost;
|
||||
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;
|
||||
if (PowerModeEngaged(player, out var cd))
|
||||
{
|
||||
if (cd.timeLeft == BastionCooldown + BastionTime)
|
||||
@@ -142,8 +148,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
}
|
||||
|
||||
//Stats
|
||||
player.statDefense += 13;
|
||||
player.endurance += 0.1f;
|
||||
player.statDefense += BastionDefenseBoost;
|
||||
player.endurance += BastionDRBoost;
|
||||
|
||||
//Can't account for previous fullbody transformations but at this point, whatever
|
||||
bool transformed = player.Transformation().Type == ItemType<AbandonedWulfrumHelmet>();
|
||||
@@ -253,10 +259,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -273,6 +276,10 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public class WulfrumJacket : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float SummonDamageBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
@@ -294,10 +301,7 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips);
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.GetDamage<SummonDamageClass>() += 0.05f;
|
||||
}
|
||||
public override void UpdateEquip(Player player) => player.GetDamage<SummonDamageClass>() += SummonDamageBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -314,6 +318,10 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
public class WulfrumOveralls : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Armor.PreHardmode";
|
||||
|
||||
public static float MoveSpeedBoost = 0.05f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MoveSpeedBoost.ToPercent());
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
@@ -329,10 +337,8 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
}
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => WulfrumHat.ModifySetTooltips(this, tooltips);
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.05f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player) => player.moveSpeed += MoveSpeedBoost;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
@@ -347,10 +353,6 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
public class WulfrumArmorPlayer : ModPlayer
|
||||
{
|
||||
public static int BastionShootDamage = 10;
|
||||
public static float BastionShootSpeed = 18f;
|
||||
public static int BastionShootTime = 10;
|
||||
|
||||
public bool wulfrumSet = false;
|
||||
|
||||
public override void ResetEffects()
|
||||
|
||||
@@ -84,11 +84,13 @@ namespace CalamityMod.Items.BaseItems
|
||||
{
|
||||
public override void Load()
|
||||
{
|
||||
On_Player.ResetVisibleAccessories += ResetTransformation;
|
||||
On_Player.UpdateVisibleAccessory += SetTransformationItem;
|
||||
}
|
||||
|
||||
internal TransformationAccessory currentTransformation = null;
|
||||
int prevSlot = -1;
|
||||
int previousHighest = -1;
|
||||
int currentHighest = -1;
|
||||
|
||||
public int Type
|
||||
{
|
||||
@@ -107,20 +109,36 @@ namespace CalamityMod.Items.BaseItems
|
||||
}
|
||||
}
|
||||
|
||||
private void ResetTransformation(On_Player.orig_ResetVisibleAccessories orig, Player self)
|
||||
{
|
||||
orig(self);
|
||||
|
||||
Reset(self);
|
||||
}
|
||||
|
||||
private void Reset(Player p)
|
||||
{
|
||||
previousHighest = currentHighest;
|
||||
currentHighest = -1;
|
||||
|
||||
if (p.Transformation().currentTransformation != null && !p.Transformation().currentTransformation.IsForced)
|
||||
p.Transformation().currentTransformation = null;
|
||||
}
|
||||
|
||||
private void SetTransformationItem(On_Player.orig_UpdateVisibleAccessory orig, Player self, int itemSlot, Item item, bool modded)
|
||||
{
|
||||
orig(self, itemSlot, item, modded);
|
||||
|
||||
if (self.Transformation().currentTransformation == null || !self.Transformation().currentTransformation.IsForced)
|
||||
{
|
||||
if (self.Transformation().prevSlot > itemSlot) //determines if we're on the first visible slot (as this isnt called on non-visible slots)
|
||||
self.Transformation().currentTransformation = null;
|
||||
|
||||
if (item.ModItem is TransformationAccessory transformation && transformation.ShouldTransform.Invoke(self) && (currentTransformation == null || transformation.Priority >= currentTransformation.Priority))
|
||||
self.Transformation().currentTransformation = transformation;
|
||||
}
|
||||
|
||||
if (self.Transformation().currentTransformation != null && itemSlot == 19) // last item slot, can set equip slots to our transformation if one is equipped
|
||||
if (currentHighest < itemSlot)
|
||||
currentHighest = itemSlot;
|
||||
|
||||
if (self.Transformation().currentTransformation != null && itemSlot == previousHighest) // last item slot, can set equip slots to our transformation if one is equipped
|
||||
{
|
||||
TransformationAccessory trans = self.Transformation().currentTransformation;
|
||||
bool[] list = new bool[15];
|
||||
@@ -133,11 +151,9 @@ namespace CalamityMod.Items.BaseItems
|
||||
list[(int)Type] = true;
|
||||
}
|
||||
}
|
||||
if(trans.ShouldHideAccessories)
|
||||
if (trans.ShouldHideAccessories)
|
||||
self.HideAccessories();
|
||||
}
|
||||
|
||||
self.Transformation().prevSlot = itemSlot;
|
||||
}
|
||||
|
||||
public override void UpdateAutopause()
|
||||
@@ -151,6 +167,8 @@ namespace CalamityMod.Items.BaseItems
|
||||
SetEquipSlot(Player, EquipType.Head, Mod, name);
|
||||
}
|
||||
}
|
||||
|
||||
Reset(Player);
|
||||
}
|
||||
|
||||
public override void ModifyDrawInfo(ref PlayerDrawSet drawInfo)
|
||||
|
||||
@@ -716,41 +716,6 @@ namespace CalamityMod.Items
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (player.ActiveItem().type == ModContent.ItemType<IgneousExaltation>())
|
||||
{
|
||||
bool hasBlades = false;
|
||||
foreach (Projectile p in Main.ActiveProjectiles)
|
||||
{
|
||||
if (p.type == ModContent.ProjectileType<IgneousBlade>() && p.owner == player.whoAmI && p.localAI[1] == 0f)
|
||||
{
|
||||
hasBlades = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (hasBlades)
|
||||
{
|
||||
foreach (Projectile p in Main.ActiveProjectiles)
|
||||
{
|
||||
if (p.ModProjectile is IgneousBlade)
|
||||
{
|
||||
if (p.ModProjectile<IgneousBlade>().Firing)
|
||||
continue;
|
||||
}
|
||||
if (p.type == ModContent.ProjectileType<IgneousBlade>() && p.owner == player.whoAmI && p.localAI[1] == 0f)
|
||||
{
|
||||
p.rotation = MathHelper.PiOver2 + MathHelper.PiOver4;
|
||||
// 14NOV2024: Ozzatron: clamped mouse position unnecessary, only used for direction
|
||||
p.velocity = p.SafeDirectionTo(Main.MouseWorld, Vector2.UnitY) * 22f;
|
||||
p.rotation += p.velocity.ToRotation();
|
||||
p.ai[0] = 180f;
|
||||
p.ModProjectile<IgneousBlade>().Firing = true;
|
||||
p.tileCollide = true;
|
||||
p.netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (player.ActiveItem().type == ModContent.ItemType<VoidConcentrationStaff>() && player.ownedProjectileCounts[ModContent.ProjectileType<VoidConcentrationBlackhole>()] == 0)
|
||||
{
|
||||
foreach (Projectile p in Main.ActiveProjectiles)
|
||||
|
||||
@@ -980,64 +980,8 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(1, (line) => line.Text = EditedTooltip("Gi"));
|
||||
#endregion
|
||||
|
||||
// Pre-Hardmode ore armor tooltip edits
|
||||
#region Pre-Hardmode Ore Armor
|
||||
// Copper
|
||||
if (item.type == ItemID.CopperHelmet)
|
||||
AddTooltip("CopperHelmet");
|
||||
if (item.type == ItemID.CopperChainmail)
|
||||
AddTooltip("CopperChainmail");
|
||||
if (item.type == ItemID.CopperGreaves)
|
||||
AddTooltip("CopperGreaves");
|
||||
|
||||
// Tin
|
||||
if (item.type == ItemID.TinHelmet)
|
||||
AddTooltip("TinHelmet");
|
||||
if (item.type == ItemID.TinChainmail)
|
||||
AddTooltip("TinChainmail");
|
||||
if (item.type == ItemID.TinGreaves)
|
||||
AddTooltip("TinGreaves");
|
||||
|
||||
// Iron
|
||||
if (item.type == ItemID.IronHelmet || item.type == ItemID.AncientIronHelmet || item.type == ItemID.IronChainmail || item.type == ItemID.IronGreaves)
|
||||
AddTooltip("IronPieces");
|
||||
|
||||
// Lead
|
||||
if (item.type == ItemID.LeadHelmet || item.type == ItemID.LeadChainmail || item.type == ItemID.LeadGreaves)
|
||||
AddTooltip("LeadPieces");
|
||||
|
||||
// Silver
|
||||
if (item.type == ItemID.SilverHelmet)
|
||||
AddTooltip("SilverHelmet");
|
||||
if (item.type == ItemID.SilverChainmail)
|
||||
AddTooltip("SilverChainmail");
|
||||
if (item.type == ItemID.SilverGreaves)
|
||||
AddTooltip("SilverGreaves");
|
||||
|
||||
// Tungsten
|
||||
if (item.type == ItemID.TungstenHelmet)
|
||||
AddTooltip("TungstenHelmet");
|
||||
if (item.type == ItemID.TungstenChainmail)
|
||||
AddTooltip("TungstenChainmail");
|
||||
if (item.type == ItemID.TungstenGreaves)
|
||||
AddTooltip("TungstenGreaves");
|
||||
|
||||
// Gold
|
||||
if (item.type == ItemID.GoldHelmet || item.type == ItemID.AncientGoldHelmet)
|
||||
AddTooltip("GoldHelmet");
|
||||
if (item.type == ItemID.GoldChainmail)
|
||||
AddTooltip("GoldChainmail");
|
||||
if (item.type == ItemID.GoldGreaves)
|
||||
AddTooltip("GoldGreaves");
|
||||
|
||||
// Platinum
|
||||
if (item.type == ItemID.PlatinumHelmet)
|
||||
AddTooltip("PlatinumHelmet");
|
||||
if (item.type == ItemID.PlatinumChainmail)
|
||||
AddTooltip("PlatinumChainmail");
|
||||
if (item.type == ItemID.PlatinumGreaves)
|
||||
AddTooltip("PlatinumGreaves");
|
||||
|
||||
// Pre-Hardmode armor tooltip edits
|
||||
#region Pre-Hardmode Armor
|
||||
// Jungle
|
||||
if (item.type == ItemID.JungleHat || item.type == ItemID.AncientCobaltHelmet)
|
||||
{
|
||||
@@ -1065,7 +1009,7 @@ namespace CalamityMod.Items
|
||||
#endregion
|
||||
|
||||
// Hardmode armor tooltip edits
|
||||
#region Hardmode Ore Armor
|
||||
#region Hardmode Armor
|
||||
// Cobalt
|
||||
if (item.type == ItemID.CobaltHat)
|
||||
EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("40", $"{CobaltArmorSetChange.MaxManaBoost + 40}"));
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureDriftwood
|
||||
{
|
||||
public class DriftwoodToilet : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureDriftwood.DriftwoodToilet>());
|
||||
Item.value = Item.sellPrice(copper: 30);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<Driftwood>(4).
|
||||
AddTile(TileID.Sawmill).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 336 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumBathtub : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumBathtub>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(14).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 500 B |
@@ -0,0 +1,27 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumBookcase : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumBookcase>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(20).
|
||||
AddIngredient(ItemID.Book, 10).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 795 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumChair : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumChair>());
|
||||
Item.value = Item.sellPrice(copper: 30);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(4).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 449 B |
@@ -0,0 +1,27 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumChandelier : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumChandelier>());
|
||||
Item.value = Item.sellPrice(silver: 1);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(4).
|
||||
AddIngredient(ItemID.Torch, 4).
|
||||
AddIngredient(ItemID.Chain).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 547 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumChest : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumChest>());
|
||||
Item.value = Item.sellPrice(silver: 1);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(8).
|
||||
AddRecipeGroup("IronBar", 2).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 833 B |
|
After Width: | Height: | Size: 482 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumDeskLight : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumDeskLight>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(4).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 363 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumDoor : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumDoorClosed >());
|
||||
Item.value = Item.sellPrice(copper: 40);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(6).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 508 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumDresser : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumDresser>());
|
||||
Item.value = Item.sellPrice(silver: 1);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(16).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 599 B |
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumJukebox : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumJukebox>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(15).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 937 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumLamp : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumLamp>());
|
||||
Item.value = Item.sellPrice(silver: 1);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(3).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 449 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumLantern : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumLantern>());
|
||||
Item.value = Item.sellPrice(copper: 30);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(6).
|
||||
AddIngredient(ItemID.Torch).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 468 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumSink : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumSink>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(6).
|
||||
AddIngredient(ItemID.WaterBucket).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 652 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumSleepingPod : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumSleepingPod>());
|
||||
Item.value = Item.sellPrice(silver: 4);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(15).
|
||||
AddIngredient(ItemID.Silk, 5).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 647 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumSofa : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumSofa>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(5).
|
||||
AddIngredient(ItemID.Silk, 2).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 648 B |
@@ -0,0 +1,25 @@
|
||||
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumTable : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumTable>());
|
||||
Item.value = Item.sellPrice(copper: 60);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(8).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 556 B |
@@ -0,0 +1,26 @@
|
||||
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumToilet : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumToilet>());
|
||||
Item.value = Item.sellPrice(copper: 30);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(4).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 377 B |
@@ -0,0 +1,26 @@
|
||||
using CalamityMod.Items.Placeables.SunkenSea;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum.FurnitureAnodizedWulfrum
|
||||
{
|
||||
public class AnodizedWulfrumWorkBench : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.FurnitureAnodizedWulfrum.AnodizedWulfrumWorkBench>());
|
||||
Item.value = Item.sellPrice(copper: 30);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<RoundedAnodizedWulfrumPanels>(10).
|
||||
AddTile<WulfrumLabstation>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 422 B |
@@ -0,0 +1,25 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureEutrophic;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class AncientSmoothNavystoneWall : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.AncientSmoothNavystoneWall>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(4).
|
||||
AddIngredient<AncientSmoothNavystone>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 372 B |
|
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 427 B |
@@ -1,5 +1,4 @@
|
||||
using System.Text;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,20 +14,11 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Copper";
|
||||
|
||||
public const float HeadDamage = 0.05f;
|
||||
public const float ChestCrit = 3f;
|
||||
public const float LegsMoveSpeed = 0.05f;
|
||||
public const float SetBonusFlatDamage = 2.0f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetDamage<GenericDamageClass>() += HeadDamage;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += ChestCrit;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusFlatDamage.ToString("N0"))}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
|
||||
@@ -17,23 +17,14 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Gold";
|
||||
|
||||
public const float HeadDamage = 0.05f;
|
||||
public const float ChestDR = 0.05f;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float GoldDropChanceFromEnemies = 0.02f;
|
||||
public const int GoldFromBosses = 3;
|
||||
public const float SetBonusCritPerGoldCoin = 0.1f; // 10 gold coins = +1% crit chance
|
||||
public const float MaximumCritBonus = 7f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetDamage<GenericDamageClass>() += HeadDamage;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.endurance += ChestDR;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
public const float SetBonusCritPerGoldCoin = 0.2f; // 5 gold coins = +1% crit chance
|
||||
public const float MaximumCritBonus = 5f;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(GoldDropChanceFromEnemies.ToPercent(), GoldFromBosses, SetBonusCritPerGoldCoin, MaximumCritBonus)}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Text;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
@@ -16,25 +16,16 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Iron";
|
||||
|
||||
public const float ArmorPieceDR = 0.03f;
|
||||
public const float SetBonusDR = 0.06f;
|
||||
public const int SetBonusLifeRegen = 2;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
public const float KnockbackMultiplier = 1.5f;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(KnockbackMultiplier)}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.endurance += SetBonusDR;
|
||||
player.lifeRegen += SetBonusLifeRegen;
|
||||
player.GetKnockback<GenericDamageClass>() *= KnockbackMultiplier;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,16 +13,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Lead";
|
||||
|
||||
public const float ArmorPieceDR = 0.02f;
|
||||
public const float SetBonusDR = 0.04f;
|
||||
public const int SetBonusLifeRegen = 1;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.endurance += ArmorPieceDR;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
@@ -30,8 +20,6 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.endurance += SetBonusDR;
|
||||
player.lifeRegen += SetBonusLifeRegen;
|
||||
player.noKnockback = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.VanillaArmorChanges
|
||||
{
|
||||
@@ -15,34 +13,16 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Platinum";
|
||||
|
||||
public const float HeadDamage = 0.06f;
|
||||
public const float ChestCrit = 3f;
|
||||
public const float LegsMoveSpeed = 0.1f;
|
||||
public const float SetBonusDamagePerDefense = 0.1f; // 10 defense = +1% damage, this gets divided by 100
|
||||
public const int SetBonusDefenseCap = 50;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetDamage<GenericDamageClass>() += HeadDamage;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += ChestCrit;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
public const float SetBonusDR = 0.1f;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusDR.ToPercent())}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
// 07MAY2024: Ozzatron: Platinum armor doesn't count its own defense for its set bonus
|
||||
// CIT 1MAR2025: Platinum armor should not count its set bonus defense here, because it hasn't been applied yet
|
||||
int defenseBesidesThisArmor = player.statDefense - (5 + 6 + 5);
|
||||
if (defenseBesidesThisArmor <= 0)
|
||||
return;
|
||||
|
||||
if (defenseBesidesThisArmor > SetBonusDefenseCap)
|
||||
defenseBesidesThisArmor = SetBonusDefenseCap;
|
||||
player.GetDamage<GenericDamageClass>() += (float)Math.Floor(defenseBesidesThisArmor * SetBonusDamagePerDefense) * 0.01f;
|
||||
player.endurance += SetBonusDR;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,29 +16,17 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Silver";
|
||||
|
||||
public const float HeadCrit = 5f;
|
||||
public const int ChestLifeRegen = 2;
|
||||
public const float LegsMoveSpeed = 0.08f;
|
||||
public const int SetBonusLifeRegen = 1;
|
||||
|
||||
public const double SetBonusMinimumDamageToHeal = 20.0;
|
||||
public const int SetBonusHealTime = 120;
|
||||
public const int SetBonusHealAmount = 10;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += HeadCrit;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusHealTime.FramesToSeconds(), SetBonusMinimumDamageToHeal.ToString("N0"), SetBonusHealAmount)}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.lifeRegen += SetBonusLifeRegen;
|
||||
player.Calamity().silverMedkit = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Text;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -15,25 +14,16 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Tin";
|
||||
|
||||
public const float HeadCrit = 4f;
|
||||
public const int ChestLifeRegen = 1;
|
||||
public const float LegsMoveSpeed = 0.05f;
|
||||
public const float SetBonusArmorPen = 5.0f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetCritChance<GenericDamageClass>() += HeadCrit;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
public const float SetBonusCrit = 10f;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
setBonusText += $"\n{CalamityUtils.GetTextValue($"Vanilla.Armor.SetBonus.{ArmorSetName}")}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(SetBonusCrit)}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
player.GetArmorPenetration<GenericDamageClass>() += SetBonusArmorPen;
|
||||
player.GetCritChance<GenericDamageClass>() += SetBonusCrit;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,4 @@
|
||||
using System.Text;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -16,37 +14,16 @@ namespace CalamityMod.Items.VanillaArmorChanges
|
||||
|
||||
public override string ArmorSetName => "Tungsten";
|
||||
|
||||
public const float HeadDamage = 0.07f;
|
||||
public const int ChestLifeRegen = 1;
|
||||
public const float LegsMoveSpeed = 0.08f;
|
||||
public const float KnockbackMultiplier = 1.33f;
|
||||
public const float MaxKnockbackCritConversion = 10f;
|
||||
|
||||
public override void ApplyHeadPieceEffect(Player player) => player.GetDamage<GenericDamageClass>() += HeadDamage;
|
||||
|
||||
public override void ApplyBodyPieceEffect(Player player) => player.lifeRegen += ChestLifeRegen;
|
||||
|
||||
public override void ApplyLegPieceEffect(Player player) => player.moveSpeed += LegsMoveSpeed;
|
||||
public const float HookBoost = 0.5f;
|
||||
|
||||
public override void UpdateSetBonusText(ref string setBonusText)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
float kb = player.GetWeaponKnockback(player.ActiveItem());
|
||||
float bonus = MathHelper.Clamp(kb, 0f, MaxKnockbackCritConversion);
|
||||
|
||||
string bonusText = bonus.ToString("n2");
|
||||
string kbText = kb.ToString("n2");
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(bonusText, kbText)}";
|
||||
setBonusText += $"\n{CalamityUtils.GetText($"Vanilla.Armor.SetBonus.{ArmorSetName}").Format(HookBoost.ToPercent())}";
|
||||
}
|
||||
|
||||
public override void ApplyArmorSetBonus(Player player)
|
||||
{
|
||||
// Apply the 33% knockback boost first, so it applies to the following crit boost
|
||||
player.GetKnockback<GenericDamageClass>() *= KnockbackMultiplier;
|
||||
|
||||
// Give the player crit chance equal to the (now boosted) knockback of their held weapon.
|
||||
float kbToUse = player.GetWeaponKnockback(player.ActiveItem());
|
||||
player.GetCritChance<GenericDamageClass>() += MathHelper.Clamp(kbToUse, 0f, MaxKnockbackCritConversion);
|
||||
player.Calamity().tungstenArmorHookBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -10,10 +11,32 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
public class IgneousExaltation : ModItem, ILocalizedModType
|
||||
{
|
||||
public static int ChargeDuration = 30;
|
||||
public static int ChargeCooldown = 120;
|
||||
public new string LocalizationCategory => "Items.Weapons.Summon";
|
||||
private static Texture2D BladeOutline = null;
|
||||
public static Texture2D GetBladeOutlineTex()
|
||||
{
|
||||
if (BladeOutline == null)
|
||||
{
|
||||
var texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Summon/IgneousBlade").Value;
|
||||
BladeOutline = new Texture2D(Main.graphics.GraphicsDevice, texture.Width, texture.Height);
|
||||
|
||||
var BaseArray = new Color[BladeOutline.Width * BladeOutline.Height];
|
||||
var ColorArray = new Color[BladeOutline.Width * BladeOutline.Height];
|
||||
texture.GetData(BaseArray);
|
||||
for (var i = 0; i < BaseArray.Length; i++)
|
||||
{
|
||||
ColorArray[i] = new Color(255, 255, 255) * (((float)BaseArray[i].A) / 255f);
|
||||
}
|
||||
BladeOutline.SetData(ColorArray);
|
||||
}
|
||||
return BladeOutline;
|
||||
}
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.staff[Type] = true;
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -34,54 +57,42 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return player.ownedProjectileCounts[Item.shoot] > 0;
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
float totalMinionSlots = 0f;
|
||||
foreach (Projectile pro in Main.ActiveProjectiles)
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
if (pro.minion && pro.owner == player.whoAmI)
|
||||
foreach (Projectile pro in Main.ActiveProjectiles)
|
||||
{
|
||||
totalMinionSlots += pro.minionSlots;
|
||||
if (pro.type == type && pro.owner == player.whoAmI && pro.ai[1] >= 0 && pro.ai[0] == 0)
|
||||
{
|
||||
pro.ModProjectile<IgneousBlade>().CurrentState = IgneousBlade.AIState.TransitionToLaunch;
|
||||
pro.netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (player.altFunctionUse != 2 && totalMinionSlots < player.maxMinions)
|
||||
else
|
||||
{
|
||||
position = player.ClampedMouseWorld();
|
||||
int p = Projectile.NewProjectile(source, position, Vector2.Zero, type, damage, knockback, player.whoAmI);
|
||||
|
||||
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI, 0f, 1f);
|
||||
if (Main.projectile.IndexInRange(p))
|
||||
{
|
||||
Main.projectile[p].originalDamage = Item.damage;
|
||||
int swordCount = 0;
|
||||
}
|
||||
|
||||
int bladeIndex = 0;
|
||||
foreach (Projectile pro in Main.ActiveProjectiles)
|
||||
{
|
||||
if (pro.type == type && pro.owner == player.whoAmI)
|
||||
{
|
||||
if ((pro.ModProjectile as IgneousBlade).Firing)
|
||||
continue;
|
||||
swordCount++;
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(pro.position, pro.width, pro.height, DustID.Torch);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
float angleVariance = MathHelper.TwoPi / swordCount;
|
||||
float angle = 0f;
|
||||
foreach (Projectile pro in Main.ActiveProjectiles)
|
||||
{
|
||||
if (pro.type == type && pro.owner == player.whoAmI && pro.localAI[1] == 0f)
|
||||
{
|
||||
if ((pro.ModProjectile as IgneousBlade).Firing)
|
||||
continue;
|
||||
pro.ai[0] = angle;
|
||||
angle += angleVariance;
|
||||
for (int j = 0; j < 22; j++)
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(pro.position, pro.width, pro.height, DustID.Torch);
|
||||
dust.velocity = Vector2.UnitY * Main.rand.NextFloat(3f, 5.5f) * Main.rand.NextBool().ToDirectionInt();
|
||||
dust.noGravity = true;
|
||||
}
|
||||
pro.ModProjectile<IgneousBlade>().BladeIndex = bladeIndex++;
|
||||
pro.ModProjectile<IgneousBlade>().AITimer = -ChargeCooldown;
|
||||
pro.ModProjectile<IgneousBlade>().CurrentState = IgneousBlade.AIState.CircleOwner;
|
||||
pro.netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,6 +102,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<SeashineHilt>().
|
||||
AddIngredient<UnholyCore>(10).
|
||||
AddIngredient<EssenceofHavoc>(5).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
|
||||
@@ -7,7 +7,6 @@ CalamityClientConfig: {
|
||||
UI: UI Changes
|
||||
MeterPositions: Meter Positions
|
||||
MusicToggles: Music Toggles
|
||||
Multithreading: Multi-Threading
|
||||
}
|
||||
|
||||
AbyssLayer3Alt: {
|
||||
@@ -389,21 +388,6 @@ CalamityClientConfig: {
|
||||
Label: "[i:Book] Wiki Status Message"
|
||||
Tooltip: Enable or disable the status message promoting the Official Calamity Wiki that plays on world entry.
|
||||
}
|
||||
|
||||
MultiThreadingType: {
|
||||
Label: Sunken Sea Multi-Threading Option
|
||||
Tooltip:
|
||||
'''
|
||||
Option 0 will disable worldgen multi-threading.
|
||||
Option 1 will enable ReLogic's multi-threading.
|
||||
Option 2 will enable custom multi-threading.
|
||||
'''
|
||||
}
|
||||
|
||||
SunkenSeaMultiThreading: {
|
||||
Label: Sunken Sea Multi Threading
|
||||
Tooltip: ""
|
||||
}
|
||||
}
|
||||
|
||||
CalamityServerConfig: {
|
||||
|
||||
@@ -1,71 +1,71 @@
|
||||
AerospecBreastplate: {
|
||||
DisplayName: Aerospec Breastplate
|
||||
Tooltip: 3% increased damage and critical strike chance
|
||||
Tooltip: "{0}% increased damage and critical strike chance"
|
||||
CommonSetBonus:
|
||||
'''
|
||||
Taking over 25 damage in one hit will cause a spread of homing feathers to fall
|
||||
Taking over {0} damage in one hit will cause a spread of homing feathers to fall
|
||||
Allows you to fall more quickly and disables fall damage
|
||||
'''
|
||||
}
|
||||
|
||||
AerospecHeadMagic: {
|
||||
DisplayName: Aerospec Hat
|
||||
Tooltip: 10% increased magic damage and +30 max mana
|
||||
Tooltip: "{0}% increased magic damage and +{1} max mana"
|
||||
SetBonus:
|
||||
'''
|
||||
8% reduced mana cost
|
||||
5% increased movement speed and magic critical strike chance
|
||||
{0}% reduced mana cost
|
||||
{1}% increased movement speed and magic critical strike chance
|
||||
'''
|
||||
}
|
||||
|
||||
AerospecHeadRogue: {
|
||||
DisplayName: Aerospec Headgear
|
||||
Tooltip: 10% increased rogue damage and 5% increased movement speed
|
||||
Tooltip: "{0}% increased rogue damage and {1}% increased movement speed"
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased movement speed and rogue critical strike chance
|
||||
+80 maximum stealth
|
||||
{0}% increased movement speed and rogue critical strike chance
|
||||
+{1} maximum stealth
|
||||
'''
|
||||
}
|
||||
|
||||
AerospecHeadMelee: {
|
||||
DisplayName: Aerospec Helm
|
||||
Tooltip: 10% increased melee damage
|
||||
Tooltip: "{0}% increased melee damage"
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased movement speed and melee critical strike chance
|
||||
{0}% increased movement speed and melee critical strike chance
|
||||
Enemies are more likely to target you
|
||||
'''
|
||||
}
|
||||
|
||||
AerospecHeadSummon: {
|
||||
DisplayName: Aerospec Helmet
|
||||
Tooltip: 10% increased summon damage and 5% increased movement speed
|
||||
Tooltip: "{0}% increased summon damage and {1}% increased movement speed"
|
||||
SetBonus:
|
||||
'''
|
||||
11% increased summon damage and +1 max minion
|
||||
{0}% increased summon damage and +{1} max minion
|
||||
Summons a valkyrie to protect you
|
||||
'''
|
||||
}
|
||||
|
||||
AerospecHeadRanged: {
|
||||
DisplayName: Aerospec Hood
|
||||
Tooltip: 10% increased ranged damage
|
||||
SetBonus: 5% increased movement speed and ranged critical strike chance
|
||||
Tooltip: "{0}% increased ranged damage"
|
||||
SetBonus: "{0}% increased movement speed and ranged critical strike chance"
|
||||
}
|
||||
|
||||
AerospecLeggings: {
|
||||
DisplayName: Aerospec Leggings
|
||||
Tooltip: 12% increased movement speed
|
||||
Tooltip: "{0}% increased movement speed"
|
||||
}
|
||||
|
||||
DesertProwlerHat: {
|
||||
DisplayName: Desert Prowler Hat
|
||||
Tooltip: 4% increased rogue critical strike chance
|
||||
Tooltip: "{0}% increased rogue critical strike chance"
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased rogue damage
|
||||
+50 maximum stealth
|
||||
{0}% increased rogue damage
|
||||
+{1} maximum stealth
|
||||
'''
|
||||
AbilityBrief: Sandsmoke Bomb - Double tap {0} to shroud yourself in a small cloud of sand
|
||||
AbilityDescription:
|
||||
@@ -79,17 +79,17 @@ DesertProwlerHat: {
|
||||
|
||||
DesertProwlerPants: {
|
||||
DisplayName: Desert Prowler Pants
|
||||
Tooltip: 10% increased movement speed and immunity to the Mighty Wind debuff
|
||||
Tooltip: "{0}% increased movement speed and immunity to the Mighty Wind debuff"
|
||||
}
|
||||
|
||||
DesertProwlerShirt: {
|
||||
DisplayName: Desert Prowler Shirt
|
||||
Tooltip: 5% increased rogue critical strike chance
|
||||
Tooltip: "{0}% increased rogue critical strike chance"
|
||||
}
|
||||
|
||||
MarniteArchitectHeadgear: {
|
||||
DisplayName: Marnite Architect Headgear
|
||||
Tooltip: Increases block placement & tool range by 5
|
||||
Tooltip: Increases block placement & tool range by {0}
|
||||
AbilityBrief: Marnite Lift - You can summon a lift under your feet to reach higher up
|
||||
AbilityDescription:
|
||||
'''
|
||||
@@ -100,25 +100,25 @@ MarniteArchitectHeadgear: {
|
||||
|
||||
MarniteArchitectToga: {
|
||||
DisplayName: Marnite Architect Toga
|
||||
Tooltip: Increases block & wall placement speed by 50%
|
||||
Tooltip: Increases block & wall placement speed by {0}%
|
||||
}
|
||||
|
||||
SnowRuffianChestplate: {
|
||||
DisplayName: Snow Ruffian Chestplate
|
||||
Tooltip: 4% increased ranged critical strike chance
|
||||
Tooltip: "{0}% increased ranged critical strike chance"
|
||||
}
|
||||
|
||||
SnowRuffianGreaves: {
|
||||
DisplayName: Snow Ruffian Greaves
|
||||
Tooltip: 10% increased movement speed
|
||||
Tooltip: "{0}% increased movement speed"
|
||||
}
|
||||
|
||||
SnowRuffianMask: {
|
||||
DisplayName: Snow Ruffian Mask
|
||||
Tooltip: 2% increased ranged damage
|
||||
Tooltip: "{0}% increased ranged damage"
|
||||
SetBonus:
|
||||
'''
|
||||
4% increased ranged damage and critical strike chance
|
||||
{0}% increased ranged damage and critical strike chance
|
||||
You can glide to negate fall damage
|
||||
Ranged critical strikes frostburn enemies
|
||||
'''
|
||||
@@ -126,26 +126,26 @@ SnowRuffianMask: {
|
||||
|
||||
StatigelArmor: {
|
||||
DisplayName: Statigel Armor
|
||||
Tooltip: 5% increased critical strike chance
|
||||
Tooltip: "{0}% increased critical strike chance"
|
||||
CommonSetBonus:
|
||||
'''
|
||||
When you take over 100 damage in one hit you become immune to damage for an extended period of time
|
||||
When you take over {0} damage in one hit you become immune to damage for an extended period of time
|
||||
Grants an extra jump and increased jump height
|
||||
12% increased jump speed
|
||||
{1}% increased jump speed
|
||||
'''
|
||||
}
|
||||
|
||||
StatigelGreaves: {
|
||||
DisplayName: Statigel Greaves
|
||||
Tooltip: 5% increased damage and movement speed
|
||||
Tooltip: "{0}% increased damage and movement speed"
|
||||
}
|
||||
|
||||
StatigelHeadMagic: {
|
||||
DisplayName: Statigel Cap
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased magic damage and 10% reduced mana cost
|
||||
7% increased magic critical strike chance and +40 max mana
|
||||
{0}% increased magic damage and {1}% reduced mana cost
|
||||
{2}% increased magic critical strike chance and +{3} max mana
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -153,8 +153,8 @@ StatigelHeadMelee: {
|
||||
DisplayName: Statigel Helm
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased melee damage and melee speed
|
||||
7% increased melee critical strike chance
|
||||
{0}% increased melee damage and melee speed
|
||||
{1}% increased melee critical strike chance
|
||||
'''
|
||||
SetBonus: Enemies are more likely to target you
|
||||
}
|
||||
@@ -163,8 +163,8 @@ StatigelHeadRanged: {
|
||||
DisplayName: Statigel Headgear
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased ranged damage
|
||||
7% increased ranged critical strike chance
|
||||
{0}% increased ranged damage
|
||||
{1}% increased ranged critical strike chance
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -172,10 +172,10 @@ StatigelHeadRogue: {
|
||||
DisplayName: Statigel Mask
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased rogue damage
|
||||
7% increased rogue critical strike chance and 5% increased movement speed
|
||||
{0}% increased rogue damage
|
||||
{1}% increased rogue critical strike chance and {2}% increased movement speed
|
||||
'''
|
||||
SetBonus: +90 maximum stealth
|
||||
SetBonus: +{0} maximum stealth
|
||||
}
|
||||
|
||||
StatigelHeadSummon: {
|
||||
@@ -183,27 +183,27 @@ StatigelHeadSummon: {
|
||||
Tooltip: Increased minion knockback
|
||||
SetBonus:
|
||||
'''
|
||||
18% increased summon damage and +1 max minion
|
||||
{0}% increased summon damage and +{1} max minion
|
||||
Summons a mini paladin to fight for you, the type depends on what world evil you have
|
||||
'''
|
||||
}
|
||||
|
||||
SulphurousBreastplate: {
|
||||
DisplayName: Sulphurous Breastplate
|
||||
Tooltip: 6% increased rogue damage and 4% increased rogue critical strike chance
|
||||
Tooltip: "{0}% increased rogue damage and {1}% increased rogue critical strike chance"
|
||||
}
|
||||
|
||||
SulphurousHelmet: {
|
||||
DisplayName: Sulphurous Helmet
|
||||
Tooltip:
|
||||
'''
|
||||
4% increased rogue damage
|
||||
2% increased rogue critical strike chance
|
||||
{0}% increased rogue damage
|
||||
{1}% increased rogue critical strike chance
|
||||
Grants underwater breathing
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
+65 maximum stealth
|
||||
+{0} maximum stealth
|
||||
Attacking and being attacked by enemies inflicts poison
|
||||
Grants an additional jump that summons a sulphurous bubble
|
||||
Provides increased underwater mobility and reduces the severity of the sulphuric waters
|
||||
@@ -214,8 +214,8 @@ SulphurousLeggings: {
|
||||
DisplayName: Sulphurous Leggings
|
||||
Tooltip:
|
||||
'''
|
||||
Movement speed increased by 10%
|
||||
Movement speed increased an additional 25% while submerged in liquid
|
||||
Movement speed increased by {0}%
|
||||
Movement speed increased an additional {1}% while submerged in liquid
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -292,10 +292,10 @@ WulfrumHat: {
|
||||
DisplayName: Wulfrum Hat & Goggles
|
||||
Tooltip:
|
||||
'''
|
||||
5% increased summon damage
|
||||
{0}% increased summon damage
|
||||
Comes equipped with hair extensions
|
||||
'''
|
||||
SetBonus: +1 max minion
|
||||
SetBonus: +{0} max minion
|
||||
AbilityBrief: Wulfrum Bastion - Double tap {0} while dismounted to equip wulfrum power armor
|
||||
AbilityDescription:
|
||||
'''
|
||||
@@ -307,10 +307,10 @@ WulfrumHat: {
|
||||
|
||||
WulfrumJacket: {
|
||||
DisplayName: Wulfrum Jacket
|
||||
Tooltip: 5% increased summon damage
|
||||
Tooltip: "{0}% increased summon damage"
|
||||
}
|
||||
|
||||
WulfrumOveralls: {
|
||||
DisplayName: Wulfrum Overalls
|
||||
Tooltip: Movement speed increased by 5%
|
||||
Tooltip: "{0}% increased movement speed"
|
||||
}
|
||||
@@ -82,6 +82,7 @@ PlaguebringerBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
PlagueChargerBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
PlagueshellBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
PrismBackBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
ProbesnoutBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
ProfanedEnergyBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
RadiatorBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
ReaperSharkBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
@@ -96,6 +97,7 @@ ScryllarBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
SeaFloatyBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
SeaMinnowBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
SeaSerpentBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
SharkoonBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
ShockstormShuttleBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
ShroombleBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
SightseerColliderBanner.DisplayName: "{$Items.Placeables.FormattedBannerName}"
|
||||
@@ -892,6 +894,11 @@ KelpTorch: {
|
||||
Tooltip: Can be placed in water
|
||||
}
|
||||
|
||||
OldDukeMonolith: {
|
||||
DisplayName: Elden Diorama
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
OtonilouStatue: {
|
||||
DisplayName: Otonilou Memorial
|
||||
Tooltip: ""
|
||||
@@ -1888,6 +1895,106 @@ CosmiliteWorkBench: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodBaroqueCello: {
|
||||
DisplayName: Driftwood Baroque Cello
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodBathtub: {
|
||||
DisplayName: Driftwood Bathtub
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodBed: {
|
||||
DisplayName: Driftwood Bed
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodBookcase: {
|
||||
DisplayName: Driftwood Bookcase
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodCandelabra: {
|
||||
DisplayName: Driftwood Candelabra
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodCandle: {
|
||||
DisplayName: Driftwood Candle
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodChair: {
|
||||
DisplayName: Driftwood Chair
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodChandelier: {
|
||||
DisplayName: Driftwood Chandelier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodChest: {
|
||||
DisplayName: Driftwood Chest
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodDoor: {
|
||||
DisplayName: Driftwood Door
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodDresser: {
|
||||
DisplayName: Driftwood Dresser
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodLamp: {
|
||||
DisplayName: Driftwood Lamp
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodLantern: {
|
||||
DisplayName: Driftwood Lantern
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodPlatform: {
|
||||
DisplayName: Driftwood Platform
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodSink: {
|
||||
DisplayName: Driftwood Sink
|
||||
Tooltip: Counts as a water source
|
||||
}
|
||||
|
||||
DriftwoodSofa: {
|
||||
DisplayName: Driftwood Sofa
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodSundial: {
|
||||
DisplayName: Driftwood Sundial
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodTable: {
|
||||
DisplayName: Driftwood Table
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodToilet: {
|
||||
DisplayName: Driftwood Toilet
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodWorkBench: {
|
||||
DisplayName: Driftwood Work Bench
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AncientSmoothNavystone: {
|
||||
DisplayName: Ancient Smooth Navystone
|
||||
Tooltip: ""
|
||||
@@ -3202,6 +3309,16 @@ VoidWorkBench: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumEnergyBarrier: {
|
||||
DisplayName: Charged Wulfrum Energy Barrier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumWallMountedBulb: {
|
||||
DisplayName: Charged Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumBathtub: {
|
||||
DisplayName: Wulfrum Bathtub
|
||||
Tooltip: ""
|
||||
@@ -3247,6 +3364,11 @@ WulfrumDresser: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumEnergyBarrier: {
|
||||
DisplayName: Wulfrum Energy Barrier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumLamp: {
|
||||
DisplayName: Wulfrum Lamp
|
||||
Tooltip: ""
|
||||
@@ -3257,19 +3379,39 @@ WulfrumLantern: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPanels: {
|
||||
DisplayName: Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPiano: {
|
||||
DisplayName: Wulfrum Piano
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPlatform: {
|
||||
DisplayName: Wulfrum Platform
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPlating: {
|
||||
DisplayName: Wulfrum Plating
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSheets: {
|
||||
DisplayName: Wulfrum Sheets
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSiding: {
|
||||
DisplayName: Wulfrum Siding
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSink: {
|
||||
DisplayName: Wulfrum Sink
|
||||
Tooltip: ""
|
||||
Tooltip: Counts as a water source
|
||||
}
|
||||
|
||||
WulfrumSofa: {
|
||||
@@ -3287,11 +3429,121 @@ WulfrumToilet: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumWallMountedBulb: {
|
||||
DisplayName: Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumWorkBench: {
|
||||
DisplayName: Wulfrum Work Bench
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumBathtub: {
|
||||
DisplayName: Anodized Wulfrum Bathtub
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumBookcase: {
|
||||
DisplayName: Anodized Wulfrum Bookcase
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumChair: {
|
||||
DisplayName: Anodized Wulfrum Chair
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumChandelier: {
|
||||
DisplayName: Anodized Wulfrum Chandelier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumChest: {
|
||||
DisplayName: Anodized Wulfrum Chest
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumDeskLight: {
|
||||
DisplayName: Anodized Wulfrum Desk Light
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumDoor: {
|
||||
DisplayName: Anodized Wulfrum Door
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumDresser: {
|
||||
DisplayName: Anodized Wulfrum Dresser
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumJukebox: {
|
||||
DisplayName: Anodized Wulfrum Jukebox
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumLamp: {
|
||||
DisplayName: Anodized Wulfrum Lamp
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumLantern: {
|
||||
DisplayName: Anodized Wulfrum Lantern
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumPanels: {
|
||||
DisplayName: Anodized Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumPlatform: {
|
||||
DisplayName: Anodized Wulfrum Platform
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumSink: {
|
||||
DisplayName: Anodized Wulfrum Sink
|
||||
Tooltip: Counts as a water source
|
||||
}
|
||||
|
||||
AnodizedWulfrumSleepingPod: {
|
||||
DisplayName: Anodized Wulfrum Sleeping Pod
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumSofa: {
|
||||
DisplayName: Anodized Wulfrum Sofa
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumTable: {
|
||||
DisplayName: Anodized Wulfrum Table
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumTrim: {
|
||||
DisplayName: Anodized Wulfrum Trim
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumToilet: {
|
||||
DisplayName: Anodized Wulfrum Toilet
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumWorkBench: {
|
||||
DisplayName: Anodized Wulfrum Work Bench
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RoundedAnodizedWulfrumPanels: {
|
||||
DisplayName: Rounded Anodized Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
HardenedAstralSand: {
|
||||
DisplayName: Hardened Astral Sand
|
||||
Tooltip: ""
|
||||
@@ -3511,6 +3763,11 @@ Driftwood: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
Dunesand: {
|
||||
DisplayName: Dunesand
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
Navystone: {
|
||||
DisplayName: Navystone
|
||||
Tooltip: ""
|
||||
@@ -3598,6 +3855,11 @@ VolcanicSand: {
|
||||
|
||||
// End of Sunken Sea
|
||||
|
||||
Dreadstone: {
|
||||
DisplayName: Dreadstone
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
UelibloomBrick: {
|
||||
DisplayName: Uelibloom Brick
|
||||
Tooltip: ""
|
||||
@@ -3628,6 +3890,11 @@ AerialiteBrickWall: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AncientSmoothNavystoneWall: {
|
||||
DisplayName: Ancient Smooth Navystone Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AshenSlabWall: {
|
||||
DisplayName: Ashen Slab Wall
|
||||
Tooltip: ""
|
||||
@@ -3747,6 +4014,16 @@ RustedPlatingWall: {
|
||||
|
||||
// End of Draedon
|
||||
|
||||
AnodizedWulfrumTrimWall: {
|
||||
DisplayName: Anodized Wulfrum Trim Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumEnergyBarrierWall: {
|
||||
DisplayName: Charged Wulfrum Energy Barrier Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DriftwoodWall: {
|
||||
DisplayName: Driftwood Wall
|
||||
Tooltip: ""
|
||||
@@ -3757,6 +4034,11 @@ ElumplateWall: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
EutrophicGlassWall: {
|
||||
DisplayName: Eutrophic Glass Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
EutrophicSandWall: {
|
||||
DisplayName: Unsafe Eutrophic Sand Wall
|
||||
Tooltip: ""
|
||||
@@ -3797,6 +4079,11 @@ HavocplateWall: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
LimestoneWall: {
|
||||
DisplayName: Limestone Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
NavyplateWall: {
|
||||
DisplayName: Navyplate Wall
|
||||
Tooltip: ""
|
||||
@@ -3862,6 +4149,16 @@ PyreMantleWall: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RoundedAnodizedWulfrumPanelWall: {
|
||||
DisplayName: Rounded Anodized Wulfrum Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RunestoneWall: {
|
||||
DisplayName: Runestone Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RunicProfanedBrickWall: {
|
||||
DisplayName: Runic Profaned Brick Wall
|
||||
Tooltip: ""
|
||||
@@ -3952,11 +4249,41 @@ VoidstoneWall: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumComplexPanelWall: {
|
||||
DisplayName: Wulfrum Complex Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumEnergyBarrierWall: {
|
||||
DisplayName: Wulfrum Energy Barrier Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPanelWall: {
|
||||
DisplayName: Wulfrum Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPillar: {
|
||||
DisplayName: Wulfrum Pillar
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPlatingWall: {
|
||||
DisplayName: Wulfrum Plating Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSheetWall: {
|
||||
DisplayName: Wulfrum Sheet Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSidingWall: {
|
||||
DisplayName: Wulfrum Siding Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
FireTurret: {
|
||||
DisplayName: Fire Turret
|
||||
Tooltip:
|
||||
@@ -4196,141 +4523,3 @@ MiniAgedFloodlightItem: {
|
||||
DisplayName: Mini Aged Floodlight
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ProbesnoutBanner.DisplayName: Probesnout Banner
|
||||
SharkoonBanner.DisplayName: Sharkoon Banner
|
||||
|
||||
LimestoneWall: {
|
||||
DisplayName: Limestone Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RunestoneWall: {
|
||||
DisplayName: Runestone Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumEnergyBarrier: {
|
||||
DisplayName: Wulfrum Energy Barrier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPanels: {
|
||||
DisplayName: Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumEnergyBarrier: {
|
||||
DisplayName: Charged Wulfrum Energy Barrier
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumEnergyBarrierWall: {
|
||||
DisplayName: Wulfrum Energy Barrier Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumEnergyBarrierWall: {
|
||||
DisplayName: Charged Wulfrum Energy Barrier Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPlatform: {
|
||||
DisplayName: Wulfrum Platform
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSheets: {
|
||||
DisplayName: Wulfrum Sheets
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSiding: {
|
||||
DisplayName: Wulfrum Siding
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPillar: {
|
||||
DisplayName: Wulfrum Pillar
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumComplexPanelWall: {
|
||||
DisplayName: Wulfrum Complex Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumPlatform: {
|
||||
DisplayName: Anodized Wulfrum Platform
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumTrim: {
|
||||
DisplayName: Anodized Wulfrum Trim
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RoundedAnodizedWulfrumPanels: {
|
||||
DisplayName: Rounded Anodized Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumTrimWall: {
|
||||
DisplayName: Anodized Wulfrum Trim Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
RoundedAnodizedWulfrumPanelWall: {
|
||||
DisplayName: Rounded Anodized Wulfrum Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AnodizedWulfrumPanels: {
|
||||
DisplayName: Anodized Wulfrum Panels
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumPanelWall: {
|
||||
DisplayName: Wulfrum Panel Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ChargedWulfrumWallMountedBulb: {
|
||||
DisplayName: Charged Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumWallMountedBulb: {
|
||||
DisplayName: Wulfrum Wall Mounted Bulb
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSheetWall: {
|
||||
DisplayName: Wulfrum Sheet Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumSidingWall: {
|
||||
DisplayName: Wulfrum Siding Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
Dunesand: {
|
||||
DisplayName: Dunesand
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
EutrophicGlassWall: {
|
||||
DisplayName: Eutrophic Glass Wall
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
Dreadstone: {
|
||||
DisplayName: Dreadstone
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
OldDukeMonolith: {
|
||||
DisplayName: Elden Diorama
|
||||
Tooltip: ""
|
||||
}
|
||||
@@ -9,6 +9,8 @@ PirateCrate: Abandoned Crate
|
||||
// Basic Calamity Furniture
|
||||
Basin: Basin
|
||||
LavaFountain: Lava Fountain
|
||||
BaroqueCello: Baroque Cello
|
||||
Jukebox: Jukebox
|
||||
PipeOrgan: Pipe Organ
|
||||
Sconce: Sconce
|
||||
// Draedon Lab Furniture
|
||||
|
||||
@@ -28,7 +28,7 @@ SetBonus: {
|
||||
Melee: 10% increased melee damage
|
||||
}
|
||||
|
||||
Copper: Increases all damage by 2
|
||||
Copper: Increases all damage by {0}
|
||||
Crimson:
|
||||
'''
|
||||
Greatly increased natural life regen
|
||||
@@ -65,21 +65,13 @@ SetBonus: {
|
||||
'''
|
||||
Gold:
|
||||
'''
|
||||
All enemies have a 2% chance to drop 1 gold; bosses killed drop 3 gold
|
||||
You gain 1% critical strike chance for every 10 gold in your inventory, capped at 7%
|
||||
'''
|
||||
Iron:
|
||||
'''
|
||||
Increases damage reduction by 6%
|
||||
+1 HP/s life regen
|
||||
All enemies have a {0}% chance to drop 1 extra gold
|
||||
All bosses drop {1} extra gold
|
||||
You gain {2}% critical strike chance for every gold in your inventory, capped at {3}%
|
||||
'''
|
||||
Iron: Multiplies all player-inflicted knockback by {0}x
|
||||
Jungle: 10% reduced mana costs
|
||||
Lead:
|
||||
'''
|
||||
Increases damage reduction by 4%
|
||||
+0.5 HP/s life regen
|
||||
Grants immunity to knockback
|
||||
'''
|
||||
Lead: Grants immunity to knockback
|
||||
Meteor: All magic guns cost 33% mana
|
||||
Mining: Mining ore will sometimes have additional yield
|
||||
Molten:
|
||||
@@ -125,27 +117,14 @@ SetBonus: {
|
||||
Grants +2 HP/s life regeneration after striking an enemy
|
||||
This life regeneration bypasses negative life regeneration
|
||||
'''
|
||||
PlatinumChainmail: 3% increased critical strike chance
|
||||
Platinum:
|
||||
'''
|
||||
Every 10 extra defense gives you 1% increased damage
|
||||
The 20 defense from the Platinum Armor itself does not contribute to this effect
|
||||
Bonus damage caps at 50 extra defense
|
||||
'''
|
||||
Platinum: Increases damage reduction by {0}%
|
||||
Silver:
|
||||
'''
|
||||
+0.5 HP/s life regen
|
||||
Two seconds after getting hit for 20 or more damage, you heal for 10
|
||||
{0} seconds after getting hit for {1} or more damage, you heal for {2}
|
||||
Getting hit again resets the timer, delaying the heal
|
||||
'''
|
||||
Tin: Increases armor penetration by 5
|
||||
Tungsten:
|
||||
'''
|
||||
Increases your critical strike chance by 100% of the knockback of your held weapon
|
||||
This effect caps at Insane knockback, which gives 10% increased critical strike chance
|
||||
Increases all knockback by 33%, this counts for the above boost
|
||||
Current bonus: {0}% critical strike chance from {1} knockback
|
||||
'''
|
||||
Tin: "{0}% increased critical strike chance"
|
||||
Tungsten: Grappling hooks pull and retract {0}% faster
|
||||
MagicHat: Increases maximum mana by 40
|
||||
Wizard: 4% increased magic critical strike chance
|
||||
CrystalAssassin:
|
||||
|
||||
@@ -59,29 +59,6 @@ AddedTooltip: {
|
||||
YoyoGlove: Secondary yoyos will do 50% less damage
|
||||
DefensePrefix: +{0}% damage reduction
|
||||
LuckyPrefix: +0.05 luck
|
||||
/*
|
||||
Armor
|
||||
*/
|
||||
CopperHelmet: 5% increased damage
|
||||
CopperChainmail: 3% increased critical strike chance
|
||||
CopperGreaves: 5% increased movement speed
|
||||
TinHelmet: 3% increased critical strike chance
|
||||
TinChainmail: +0.5 HP/s life regen
|
||||
TinGreaves: 5% increased movement speed
|
||||
IronPieces: Increases damage reduction by 3%
|
||||
LeadPieces: Increases damage reduction by 2%
|
||||
SilverHelmet: 5% increased critical strike chance
|
||||
SilverChainmail: +1 HP/s life regen
|
||||
SilverGreaves: 8% increased movement speed
|
||||
TungstenHelmet: 7% increased damage
|
||||
TungstenChainmail: +0.5 HP/s life regen
|
||||
TungstenGreaves: 8% increased movement speed
|
||||
GoldHelmet: 5% increased damage
|
||||
GoldChainmail: Increases damage reduction by 5%
|
||||
GoldGreaves: 10% increased movement speed
|
||||
PlatinumHelmet: 6% increased damage
|
||||
PlatinumChainmail: 3% increased critical strike chance
|
||||
PlatinumGreaves: 10% increased movement speed
|
||||
CrimsonBreastplate: +1 HP/s life regen
|
||||
CrimsonOtherPieces: +0.5 HP/s life regen
|
||||
Picksaw: Can mine Scoria Ore located in the Abyss
|
||||
|
||||
@@ -27,11 +27,12 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
this.HideFromBestiary();
|
||||
}
|
||||
|
||||
public static int ToothDamage = 23; // 92
|
||||
public static int ToothDamage = 25; // 100
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.damage = 52; // 104
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.width = 32;
|
||||
NPC.height = 32;
|
||||
NPC.defense = 20;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.damage = 48; // 96
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.width = 32;
|
||||
NPC.height = 32;
|
||||
NPC.defense = 15;
|
||||
|
||||
@@ -54,13 +54,12 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
NPCID.Sets.MPAllowedEnemies[Type] = true;
|
||||
}
|
||||
|
||||
public static int MistDamage = 23; // 92
|
||||
public static int SandCloudDamage = 28; // 112
|
||||
public static int ToxicCloudDamage = 32; // 128
|
||||
public static int MistDamage = 25; // 100
|
||||
public static int CloudDamage = 28; // 112; applies to both Sand and Toxic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.damage = 80; // 160
|
||||
NPC.damage = 90; // 180
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.width = 90;
|
||||
NPC.height = 90;
|
||||
@@ -252,7 +251,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
{
|
||||
Vector2 vector255 = spinningPoint.RotatedBy(radians * k);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + vector255.SafeNormalize(Vector2.UnitY) * 5f, vector255, type, ToxicCloudDamage, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + vector255.SafeNormalize(Vector2.UnitY) * 5f, vector255, type, CloudDamage, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -366,7 +365,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
if (expertMode)
|
||||
velocity *= 1f + (maximumVelocityMult * (0.5f - lifeRatio));
|
||||
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + velocity.SafeNormalize(Vector2.UnitY) * 5f, velocity, type, SandCloudDamage, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + velocity.SafeNormalize(Vector2.UnitY) * 5f, velocity, type, CloudDamage, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Irradiated>(), 300, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -66,15 +66,16 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
}
|
||||
|
||||
// These values are all applied alongside their respective GFB attacks (too many to list)
|
||||
public static int DartDamage = 21; // 84
|
||||
public static int HellblastDamage = 25; // 100
|
||||
public static int HellfireballDamage = 25; // 100
|
||||
public static int DartDamage = 19; // 76
|
||||
public static int HellblastDamage = 22; // 88
|
||||
public static int HellfireballDamage = 22; // 88
|
||||
public static int RayDamage = 35; // 140
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.npcSlots = 64f;
|
||||
NPC.damage = 52; // 104
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.width = 100;
|
||||
NPC.height = 150;
|
||||
NPC.defense = 15;
|
||||
@@ -839,7 +840,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 360);
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight) // 9 total frames
|
||||
|
||||
@@ -61,9 +61,9 @@ namespace CalamityMod.NPCs.CalClone
|
||||
}
|
||||
}
|
||||
|
||||
public static int DartDamage = 23; // 92
|
||||
public static int HellblastDamage = 27; // 108
|
||||
public static int HellfireballDamage = 27; // 108
|
||||
public static int DartDamage = 22; // 88
|
||||
public static int HellblastDamage = 25; // 100
|
||||
public static int HellfireballDamage = 25; // 100
|
||||
public static int FireblastDamage = 35; // 140; Also applies to GFB Gigablasts
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -1008,7 +1008,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 360);
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -552,7 +552,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,13 +43,13 @@ namespace CalamityMod.NPCs.CalClone
|
||||
}
|
||||
}
|
||||
|
||||
public static int BallDamage = 27; // 108
|
||||
public static int BallDamage = 22; // 88
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.BossBar = Main.BigBossProgressBar.NeverValid;
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.damage = 50; // 100
|
||||
NPC.damage = 45; // 90
|
||||
NPC.npcSlots = 5f;
|
||||
NPC.width = 120;
|
||||
NPC.height = 120;
|
||||
@@ -542,7 +542,7 @@ namespace CalamityMod.NPCs.CalClone
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240);
|
||||
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -248,6 +248,7 @@ namespace CalamityMod.NPCs
|
||||
"Stan Pines",
|
||||
"Intergaze", // <@!923504188615450654> (intergaze)
|
||||
"Borgus", // <@!539127427482255376> (therealmeepman)
|
||||
"Postman Hiss", // <@!454638106122125312> (karinthefairy)
|
||||
};
|
||||
private static readonly string[] TruffleNames =
|
||||
{
|
||||
|
||||
@@ -89,8 +89,8 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
}
|
||||
}
|
||||
|
||||
public static int IceBlastDamage = 22; // 88; Also applies to GFB darts
|
||||
public static int IceRainDamage = 22; // 88; Also applies to GFB darts
|
||||
public static int IceBlastDamage = 23; // 92; Also applies to GFB darts
|
||||
public static int IceRainDamage = 23; // 92; Also applies to GFB darts
|
||||
public static int IceBombDamage = 30; // 120; Also applies to GFB fireblasts
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -28,10 +28,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.damage = 60;
|
||||
NPC.aiStyle = -1;
|
||||
AIType = -1;
|
||||
NPC.damage = 60;
|
||||
NPC.width = 24;
|
||||
NPC.height = 24;
|
||||
NPC.defense = 20;
|
||||
@@ -188,12 +187,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.damage = (int)(NPC.damage * 1.15f);
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(BuffID.Poisoned, 180);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
if (NPC.life > 0)
|
||||
|
||||
@@ -18,6 +18,7 @@ using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -43,13 +44,24 @@ namespace CalamityMod.NPCs.Perforator
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/PerfHiveDeath");
|
||||
|
||||
public static Asset<Texture2D> GlowTexture;
|
||||
// Squash n' stretch won't affect actual hitbox size
|
||||
private const int Width = 110;
|
||||
private const int Height = 100;
|
||||
|
||||
|
||||
private int biomeEnrageTimer = CalamityGlobalNPC.biomeEnrageTimerMax;
|
||||
private bool small = false;
|
||||
private bool medium = false;
|
||||
private bool large = false;
|
||||
private bool smallSpawned = false;
|
||||
private bool mediumSpawned = false;
|
||||
private bool largeSpawned = false;
|
||||
private int wormsAlive = 0;
|
||||
|
||||
private float squash;
|
||||
private float addedStretch;
|
||||
private int squashTimer = 0; // Tracks current progress in scaling animation
|
||||
private const int squashInterval = 24;
|
||||
private const float maxSquash = 0.3f; // Upper intensity
|
||||
private float wormSpawnStateTimer = 0f; // For managing worm spawn animation
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.npcFrameCount[Type] = 10;
|
||||
@@ -72,8 +84,8 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.Calamity().canBreakPlayerDefense = true;
|
||||
NPC.npcSlots = 18f;
|
||||
NPC.damage = 30; // 48 (1.6x expert scaling)
|
||||
NPC.width = 110;
|
||||
NPC.height = 100;
|
||||
NPC.width = Width;
|
||||
NPC.height = Height;
|
||||
NPC.defense = 4;
|
||||
NPC.LifeMaxNERB(4800, 5750, 270000);
|
||||
NPC.aiStyle = -1;
|
||||
@@ -112,20 +124,22 @@ namespace CalamityMod.NPCs.Perforator
|
||||
{
|
||||
writer.Write(biomeEnrageTimer);
|
||||
writer.Write(wormsAlive);
|
||||
writer.Write(small);
|
||||
writer.Write(medium);
|
||||
writer.Write(large);
|
||||
writer.Write(smallSpawned);
|
||||
writer.Write(mediumSpawned);
|
||||
writer.Write(largeSpawned);
|
||||
writer.Write(NPC.localAI[2]);
|
||||
writer.Write(wormSpawnStateTimer);
|
||||
}
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
biomeEnrageTimer = reader.ReadInt32();
|
||||
wormsAlive = reader.ReadInt32();
|
||||
small = reader.ReadBoolean();
|
||||
medium = reader.ReadBoolean();
|
||||
large = reader.ReadBoolean();
|
||||
smallSpawned = reader.ReadBoolean();
|
||||
mediumSpawned = reader.ReadBoolean();
|
||||
largeSpawned = reader.ReadBoolean();
|
||||
NPC.localAI[2] = reader.ReadSingle();
|
||||
wormSpawnStateTimer = reader.ReadSingle();
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -156,6 +170,10 @@ namespace CalamityMod.NPCs.Perforator
|
||||
// Phases based on life percentage
|
||||
bool phase2 = lifeRatio < 0.7f;
|
||||
|
||||
bool spawnSmall = CalamityWorld.LegendaryMode ? lifeRatio < 0.85f : lifeRatio < 0.75f;
|
||||
bool spawnMedium = CalamityWorld.LegendaryMode ? lifeRatio < 0.60f : lifeRatio < 0.50f;
|
||||
bool spawnLarge = CalamityWorld.LegendaryMode ? lifeRatio < 0.45f : lifeRatio < 0.25f;
|
||||
|
||||
// Enrage
|
||||
if ((!player.ZoneCrimson || (NPC.position.Y / 16f) < Main.worldSurface) && !BossRushEvent.BossRushActive)
|
||||
{
|
||||
@@ -199,6 +217,8 @@ namespace CalamityMod.NPCs.Perforator
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Natural despawn prevention
|
||||
else if (NPC.timeLeft < 1800)
|
||||
NPC.timeLeft = 1800;
|
||||
|
||||
@@ -243,72 +263,139 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
NPC.Calamity().DR = wormsAlive * 0.3f;
|
||||
|
||||
if (NPC.ai[3] == 0f && NPC.life > 0)
|
||||
NPC.ai[3] = NPC.lifeMax;
|
||||
|
||||
bool canSpawnWorms = !small || !medium || !large || CalamityWorld.LegendaryMode;
|
||||
if (NPC.life > 0 && canSpawnWorms)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && wormSpawnStateTimer == 0f)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
if ((!smallSpawned && spawnSmall) ||
|
||||
(!mediumSpawned && spawnMedium) ||
|
||||
(!largeSpawned && spawnLarge))
|
||||
{
|
||||
int wormSpawnGateValue = (int)(NPC.lifeMax * (CalamityWorld.LegendaryMode ? 0.15 : 0.25));
|
||||
if ((NPC.life + wormSpawnGateValue) < NPC.ai[3])
|
||||
wormSpawnStateTimer = 1f; // Start slowing down to spawn a worm
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (wormSpawnStateTimer > 0f)
|
||||
{
|
||||
|
||||
NPC.velocity *= 0.94f; // Slow down
|
||||
NPC.rotation = NPC.velocity.X * 0.04f; // Update rotation to match velocity
|
||||
|
||||
NPC.damage = 0;
|
||||
|
||||
wormSpawnStateTimer++;
|
||||
|
||||
int slowDownDuration = 20;
|
||||
int waitBeforeSpawnDuration = 40;
|
||||
int totalStateDuration = slowDownDuration + waitBeforeSpawnDuration;
|
||||
|
||||
if (wormSpawnStateTimer >= slowDownDuration && wormSpawnStateTimer < totalStateDuration)
|
||||
{
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
NPC.ai[3] = NPC.life;
|
||||
int wormType = ModContent.NPCType<PerforatorHeadSmall>();
|
||||
if (!small)
|
||||
{
|
||||
small = true;
|
||||
}
|
||||
else if (!medium)
|
||||
{
|
||||
medium = true;
|
||||
wormType = ModContent.NPCType<PerforatorHeadMedium>();
|
||||
}
|
||||
else if (!large)
|
||||
{
|
||||
large = true;
|
||||
wormType = ModContent.NPCType<PerforatorHeadLarge>();
|
||||
}
|
||||
int bloodLifetime = Main.rand.Next(20, 45);
|
||||
float bloodScale = Main.rand.NextFloat(0.5f, 1f);
|
||||
Color bloodColor = Color.Lerp(Color.Yellow, Color.DarkRed, Main.rand.NextFloat(0.7f));
|
||||
float randomSpeedMultiplier = Main.rand.NextFloat(0.8f, 1.6f);
|
||||
Vector2 bloodVelocity = Main.rand.NextVector2Unit(5) * 1.5f * randomSpeedMultiplier;
|
||||
bloodVelocity.Y -= 8f;
|
||||
|
||||
if (CalamityWorld.LegendaryMode && lifeRatio < 0.5f)
|
||||
{
|
||||
if (lifeRatio > 0.35f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadLarge>(), 1);
|
||||
else if (lifeRatio > 0.2f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadMedium>(), 1);
|
||||
else if (lifeRatio > 0.05f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadSmall>(), 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1);
|
||||
Vector2 randomOffset = Main.rand.NextVector2Unit() * Main.rand.NextFloat(25f, 50f);
|
||||
Vector2 spawnPosition = NPC.Center + randomOffset;
|
||||
|
||||
// Spawn two small worms in Death
|
||||
if (death)
|
||||
{
|
||||
if (wormType == ModContent.NPCType<PerforatorHeadSmall>())
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1);
|
||||
}
|
||||
}
|
||||
|
||||
NPC.TargetClosest();
|
||||
|
||||
SoundEngine.PlaySound(WormSpawn, NPC.Center);
|
||||
|
||||
for (int i = 0; i < 16; i++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Ichor);
|
||||
|
||||
for (int j = 0; j < 32; j++)
|
||||
{
|
||||
int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood);
|
||||
Main.dust[bloodDust].noGravity = true;
|
||||
Main.dust[bloodDust].scale = 3f;
|
||||
bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood);
|
||||
Main.dust[bloodDust].scale = 2f;
|
||||
}
|
||||
BloodParticle blood = new BloodParticle(spawnPosition, bloodVelocity, bloodLifetime, bloodScale, bloodColor);
|
||||
GeneralParticleHandler.SpawnParticle(blood);
|
||||
}
|
||||
}
|
||||
|
||||
else if (wormSpawnStateTimer >= totalStateDuration)
|
||||
{
|
||||
// Blood vars change based on worm spawned
|
||||
Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f));
|
||||
int bloodAmt = 0;
|
||||
float minScale = 1f;
|
||||
float maxScale = 1.8f;
|
||||
int wormType = -1;
|
||||
|
||||
if (!smallSpawned)
|
||||
{
|
||||
|
||||
smallSpawned = true;
|
||||
wormType = ModContent.NPCType<PerforatorHeadSmall>();
|
||||
|
||||
bloodAmt = 12;
|
||||
}
|
||||
else if (!mediumSpawned && spawnMedium)
|
||||
{
|
||||
mediumSpawned = true;
|
||||
wormType = ModContent.NPCType<PerforatorHeadMedium>();
|
||||
|
||||
bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.9f));
|
||||
bloodAmt = 12;
|
||||
minScale = 1.5f;
|
||||
maxScale = 2.4f;
|
||||
}
|
||||
else if (!largeSpawned && spawnLarge)
|
||||
{
|
||||
largeSpawned = true;
|
||||
wormType = ModContent.NPCType<PerforatorHeadLarge>();
|
||||
|
||||
bloodAmt = 18;
|
||||
minScale = 1.4f;
|
||||
maxScale = 2.2f;
|
||||
}
|
||||
|
||||
for (int i = 0; i < bloodAmt; ++i)
|
||||
{
|
||||
int bloodLifetime = Main.rand.Next(80, 140);
|
||||
float bloodScale = Main.rand.NextFloat(minScale, maxScale);
|
||||
|
||||
float randomSpeedMultiplier = Main.rand.NextFloat(1.4f, 2.2f);
|
||||
Vector2 bloodVelocity = Main.rand.NextVector2Unit() * 4 * randomSpeedMultiplier;
|
||||
bloodVelocity.Y -= 5f;
|
||||
BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor);
|
||||
GeneralParticleHandler.SpawnParticle(blood);
|
||||
}
|
||||
|
||||
|
||||
if (CalamityWorld.LegendaryMode && lifeRatio < 0.5f)
|
||||
{
|
||||
if (lifeRatio > 0.35f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadLarge>(), 1);
|
||||
else if (lifeRatio > 0.2f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadMedium>(), 1);
|
||||
else if (lifeRatio > 0.05f)
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), ModContent.NPCType<PerforatorHeadSmall>(), 1);
|
||||
}
|
||||
if (wormType != -1)
|
||||
{
|
||||
squashTimer = squashInterval; // Start scaling animation
|
||||
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1);
|
||||
|
||||
// Spawn two small worms in Death
|
||||
if (death)
|
||||
{
|
||||
if (wormType == ModContent.NPCType<PerforatorHeadSmall>())
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X + Main.rand.Next(-25, 26), (int)NPC.Center.Y + Main.rand.Next(-25, 26), wormType, 1);
|
||||
}
|
||||
}
|
||||
|
||||
NPC.TargetClosest();
|
||||
SoundEngine.PlaySound(WormSpawn, NPC.Center);
|
||||
wormSpawnStateTimer = 0f; // Resets for next time its called
|
||||
NPC.netUpdate = true;
|
||||
}
|
||||
return; // Don't progress in the AI loop until a worm has finished spawning
|
||||
}
|
||||
|
||||
if (squashTimer > 0)
|
||||
{
|
||||
squashTimer--;
|
||||
addedStretch = MathHelper.Lerp(0f, maxSquash, (float) squashTimer / squashInterval);
|
||||
}
|
||||
else
|
||||
{
|
||||
addedStretch = 0f;
|
||||
}
|
||||
|
||||
if (Math.Abs(NPC.Center.X - player.Center.X) > 10f)
|
||||
@@ -323,7 +410,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
// Emit ichor blobs
|
||||
if (phase2)
|
||||
{
|
||||
if (wormsAlive == 0 || large || floatAboveToFireBlobs || CalamityWorld.LegendaryMode)
|
||||
if (wormsAlive == 0 || largeSpawned || floatAboveToFireBlobs || CalamityWorld.LegendaryMode)
|
||||
{
|
||||
NPC.ai[2] += 1f;
|
||||
if (NPC.ai[2] >= blobPhaseGateValue)
|
||||
@@ -334,7 +421,27 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.velocity *= 0.96f;
|
||||
else
|
||||
NPC.ai[2] = blobPhaseGateValue + 300f;
|
||||
|
||||
}
|
||||
|
||||
if (NPC.ai[2] < blobPhaseGateValue + 180f)
|
||||
{
|
||||
if (Main.rand.NextBool(4))
|
||||
{
|
||||
int bloodLifetime = Main.rand.Next(25, 35);
|
||||
float bloodScale = Main.rand.NextFloat(0.6f, 0.95f);
|
||||
Color bloodColor = Color.Lerp(Color.Yellow, Color.Orange, Main.rand.NextFloat(0.8f));
|
||||
float randomSpeedMultiplier = Main.rand.NextFloat(1.5f, 2.5f);
|
||||
Vector2 bloodVelocity = Main.rand.NextVector2Unit() * randomSpeedMultiplier;
|
||||
|
||||
Vector2 spawnPosition = NPC.Center;
|
||||
spawnPosition.Y += 42;
|
||||
|
||||
BloodParticle blood = new BloodParticle(spawnPosition, bloodVelocity, bloodLifetime, bloodScale, bloodColor);
|
||||
GeneralParticleHandler.SpawnParticle(blood);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
NPC.ai[2] = 0f;
|
||||
@@ -352,7 +459,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
Main.dust[ichorDust].scale = 0.5f;
|
||||
}
|
||||
|
||||
bool ichorBlobBigWormPhase = wormsAlive > 0 && large;
|
||||
bool ichorBlobBigWormPhase = wormsAlive > 0 && largeSpawned;
|
||||
int numBlobs = expertMode ? (ichorBlobBigWormPhase ? 4 : 6) : (ichorBlobBigWormPhase ? 2 : 4);
|
||||
if (CalamityWorld.LegendaryMode)
|
||||
numBlobs *= 2;
|
||||
@@ -467,11 +574,11 @@ namespace CalamityMod.NPCs.Perforator
|
||||
// Set damage
|
||||
NPC.damage = NPC.defDamage;
|
||||
|
||||
if (large || death)
|
||||
if (largeSpawned || death)
|
||||
Movement(player, 13f + velocityEnrageIncrease, death ? 0.115f : 0.1f, 20f);
|
||||
else if (medium)
|
||||
else if (mediumSpawned)
|
||||
Movement(player, 12f + velocityEnrageIncrease, death ? 0.11f : 0.095f, 30f);
|
||||
else if (small)
|
||||
else if (smallSpawned)
|
||||
Movement(player, 11f + velocityEnrageIncrease, death ? 0.105f : 0.09f, 40f);
|
||||
else
|
||||
Movement(player, 10f + velocityEnrageIncrease, death ? 0.1f : 0.085f, 50f);
|
||||
@@ -532,22 +639,19 @@ namespace CalamityMod.NPCs.Perforator
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
Texture2D texture = TextureAssets.Npc[Type].Value;
|
||||
Color drawColorAlpha = NPC.GetAlpha(drawColor);
|
||||
|
||||
Texture2D texture2D15 = TextureAssets.Npc[Type].Value;
|
||||
Vector2 halfSizeTexture = new Vector2((float)(TextureAssets.Npc[Type].Value.Width / 2), (float)(TextureAssets.Npc[Type].Value.Height / Main.npcFrameCount[Type] / 2));
|
||||
Vector2 scaleStretch = new Vector2(1f - addedStretch, 1f + addedStretch) * NPC.scale;
|
||||
float yOffset = addedStretch * 0.5f * NPC.height; // offset from stretching
|
||||
|
||||
Vector2 drawLocation = NPC.Center - screenPos;
|
||||
drawLocation -= new Vector2((float)texture2D15.Width, (float)(texture2D15.Height / Main.npcFrameCount[Type])) * NPC.scale / 2f;
|
||||
drawLocation += halfSizeTexture * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, drawLocation, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, halfSizeTexture, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture2D15 = GlowTexture.Value;
|
||||
spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY - yOffset), NPC.frame, drawColorAlpha, NPC.rotation, NPC.frame.Size() * 0.5f, scaleStretch, spriteEffects, 0f);
|
||||
texture = GlowTexture.Value;
|
||||
Color glowmaskColor = Color.Lerp(Color.White, Color.Yellow, 0.5f);
|
||||
|
||||
spriteBatch.Draw(texture2D15, drawLocation, NPC.frame, glowmaskColor, NPC.rotation, halfSizeTexture, NPC.scale, spriteEffects, 0f);
|
||||
// done again to fix glowmask not matching sprite
|
||||
spriteBatch.Draw(texture, NPC.Center - screenPos + new Vector2(0f, NPC.gfxOffY - yOffset), NPC.frame, glowmaskColor, NPC.rotation, NPC.frame.Size() * 0.5f, scaleStretch, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -654,7 +758,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
NPC.height = 100;
|
||||
NPC.position.X = NPC.position.X - (float)(NPC.width / 2);
|
||||
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
|
||||
for (int i = 0; i < 40; i++)
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
int ichorDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[ichorDust].velocity *= 3f;
|
||||
@@ -664,7 +768,7 @@ namespace CalamityMod.NPCs.Perforator
|
||||
Main.dust[ichorDust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
}
|
||||
}
|
||||
for (int j = 0; j < 70; j++)
|
||||
for (int j = 0; j < 20; j++)
|
||||
{
|
||||
int bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 3f);
|
||||
Main.dust[bloodDust].noGravity = true;
|
||||
@@ -672,6 +776,19 @@ namespace CalamityMod.NPCs.Perforator
|
||||
bloodDust = Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, 0f, 0f, 100, default, 2f);
|
||||
Main.dust[bloodDust].velocity *= 2f;
|
||||
}
|
||||
// Blood burst
|
||||
for (int i = 0; i < 24; ++i)
|
||||
{
|
||||
int bloodLifetime = Main.rand.Next(120, 200);
|
||||
float bloodScale = Main.rand.NextFloat(1.3f, 2.6f);
|
||||
Color bloodColor = Color.Lerp(Color.Crimson, Color.DarkRed, Main.rand.NextFloat(0.9f));
|
||||
float randomSpeedMultiplier = Main.rand.NextFloat(4.5f, 9f);
|
||||
Vector2 bloodVelocity = Main.rand.NextVector2Unit(6) * 2.5f * randomSpeedMultiplier;
|
||||
bloodVelocity.Y -= 14f;
|
||||
|
||||
BloodParticle blood = new BloodParticle(NPC.Center, bloodVelocity, bloodLifetime, bloodScale, bloodColor);
|
||||
GeneralParticleHandler.SpawnParticle(blood);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,11 +18,15 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
public static int EverlastingRainbowDamage = 30; // 120
|
||||
public static int EtherealLanceDamage = 30; // 120
|
||||
public static int SunDanceDamage = 35; // 140
|
||||
public static int Phase2PrismaticBoltDamage = 35; // 140
|
||||
public static int Phase2EverlastingRainbowDamage = 35; // 140
|
||||
public static int Phase2EtherealLanceDamage = 35; // 140
|
||||
public static int Phase2SunDanceDamage = 40; // 160
|
||||
|
||||
// Vanilla sets her defDamage to 184 (80 * 2 * 1.15) in Expert Mode
|
||||
// However, some weird contraption in her Expert AI that knocks her base contact damage to the intended value of 110
|
||||
// This hasn't been found anywhere so our solution for now is avoid using defDamage altogether
|
||||
public static int ContactDamageCorrection = 110;
|
||||
public static int ContactDamageCorrection = Main.masterMode ? 248 : 110;
|
||||
|
||||
public static int CalculateDamageForEnrage(this int damage) => NPC.ShouldEmpressBeEnraged() ? damage * 2 : damage;
|
||||
|
||||
@@ -47,6 +51,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
bool phase2 = npc.AI_120_HallowBoss_IsInPhase2();
|
||||
bool phase3 = lifeRatio <= phase3LifeRatio;
|
||||
|
||||
int boltDamage = (phase2 ? Phase2PrismaticBoltDamage : PrismaticBoltDamage).CalculateDamageForEnrage();
|
||||
int rainbowDamage = (phase2 ? Phase2EverlastingRainbowDamage : EverlastingRainbowDamage).CalculateDamageForEnrage();
|
||||
int lanceDamage = (phase2 ? Phase2EtherealLanceDamage : EtherealLanceDamage).CalculateDamageForEnrage();
|
||||
int sunDanceDamage = (phase2 ? Phase2SunDanceDamage : SunDanceDamage).CalculateDamageForEnrage();
|
||||
|
||||
bool shouldBeInPhase2ButIsStillInPhase1 = lifeRatio <= phase2LifeRatio && !phase2;
|
||||
if (shouldBeInPhase2ButIsStillInPhase1)
|
||||
calamityGlobalNPC.DR = 0.99f;
|
||||
@@ -417,7 +426,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
if ((int)npc.ai[1] % streakSpawnFrequency == 0 && npc.ai[1] < 60f)
|
||||
{
|
||||
int projectileType = ProjectileID.HallowBossRainbowStreak;
|
||||
int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = boltDamage;
|
||||
|
||||
float ai3 = npc.ai[1] / 60f;
|
||||
Vector2 rainbowStreakVelocity = new Vector2(0f, death ? -10f : -8f).RotatedBy(MathHelper.PiOver2 * Main.rand.NextFloatDirection());
|
||||
@@ -551,7 +560,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
|
||||
int projectileType = ProjectileID.FairyQueenLance;
|
||||
int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = lanceDamage;
|
||||
|
||||
Vector2 v3 = targetHoverPos - spawnLocation;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
@@ -631,9 +640,9 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
for (float i = 0f; i < 1f; i += 1f / totalProjectiles)
|
||||
{
|
||||
int projectileType = ProjectileID.HallowBossLastingRainbow;
|
||||
int projectileDamage = EverlastingRainbowDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = rainbowDamage;
|
||||
int projectileType2 = ProjectileID.HallowBossRainbowStreak;
|
||||
int projectileDamage2 = PrismaticBoltDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage2 = boltDamage;
|
||||
|
||||
float projRotationMultiplier = i;
|
||||
Vector2 spinningpoint = Vector2.UnitY.RotatedBy(MathHelper.PiOver2 + MathHelper.TwoPi * projRotationMultiplier + projRotation);
|
||||
@@ -704,7 +713,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
if (npc.ai[1] % sunDanceGateValue == 0f && npc.ai[1] < totalSunDancePhaseTime)
|
||||
{
|
||||
int projectileType = ProjectileID.FairyQueenSunDance;
|
||||
int projectileDamage = SunDanceDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = sunDanceDamage;
|
||||
|
||||
int sunDanceExtension = (int)(npc.ai[1] / sunDanceGateValue);
|
||||
int targetFloatDirection = (targetData2.Center.X > npc.Center.X) ? 1 : 0;
|
||||
@@ -824,7 +833,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
|
||||
int projectileType = ProjectileID.FairyQueenLance;
|
||||
int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = lanceDamage;
|
||||
|
||||
for (float i = 0f; i <= 1f; i += 1f / totalProjectiles)
|
||||
{
|
||||
@@ -906,7 +915,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
if ((npc.ai[1] - 1f) % rainbowStreakGateValue == 0f)
|
||||
{
|
||||
int projectileType = ProjectileID.HallowBossRainbowStreak;
|
||||
int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = boltDamage;
|
||||
|
||||
float ai3 = (npc.ai[1] - chargeGateValue - 1f) / chargeDuration;
|
||||
Vector2 rainbowStreakVelocity = new Vector2(0f, death ? -5f : -4f).RotatedBy(MathHelper.PiOver2 * Main.rand.NextFloatDirection());
|
||||
@@ -1077,7 +1086,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
|
||||
int projectileType = ProjectileID.FairyQueenLance;
|
||||
int projectileDamage = EtherealLanceDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = lanceDamage;
|
||||
|
||||
Vector2 v = straightLanceSpawnPredict - straightLanceSpawnDirection;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
@@ -1154,7 +1163,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
if ((int)npc.ai[1] % stationaryStreakSpawnFrequency == 0 && shouldSpawnStreaks)
|
||||
{
|
||||
int projectileType = ProjectileID.HallowBossRainbowStreak;
|
||||
int projectileDamage = PrismaticBoltDamage.CalculateDamageForEnrage();
|
||||
int projectileDamage = boltDamage;
|
||||
|
||||
Vector2 vector = new Vector2(0f, (death ? -24f : -22f) - (phase3 ? ((death ? 6f : 4f) * streakHomeTime) : 0f)).RotatedBy(MathHelper.TwoPi * streakHomeTime);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
|
||||
@@ -32,12 +32,16 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
public static int PinkSeedDamage = 19; // 76
|
||||
public static int PoisonSeedDamage = 24; // 96
|
||||
public static int ThornBallDamage = 27; // 108
|
||||
public static int ThornBallSpikeDamage = 22; // 88
|
||||
|
||||
// Expert AI has uses a magic number which we have to correct for
|
||||
public static int ContactDamageCorrection = 100;
|
||||
|
||||
// Rev+ exclusive
|
||||
public static int ThornBallSpikeDamage = 22; // 88
|
||||
public static int GasBulbDamage = 27; // 108
|
||||
public static int PinkCloudDamage = 22; // 88
|
||||
public static int GreenCloudDamage = 24; // 96
|
||||
public static float DashDamageMult = 1.25f; // 175
|
||||
|
||||
public static bool BuffedPlanteraAI(NPC npc, Mod mod)
|
||||
{
|
||||
@@ -62,8 +66,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
bool vomitFreeTentacles = lifeRatio < 0.25f && death;
|
||||
bool phase4 = lifeRatio < 0.2f;
|
||||
|
||||
if (phase2)
|
||||
npc.damage = (int)Math.Round(npc.defDamage * Phase2ContactDamageMult);
|
||||
npc.damage = (int)Math.Round(ContactDamageCorrection * (phase2 ? Phase2ContactDamageMult : 1f));
|
||||
|
||||
// Variables and target
|
||||
bool enrage = false;
|
||||
@@ -433,6 +436,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
// Emit spore gas in phase 3
|
||||
else if (npc.ai[3] <= BeginChargeGateValue)
|
||||
{
|
||||
npc.damage = (int)Math.Round(ContactDamageCorrection * Phase2ContactDamageMult * DashDamageMult);
|
||||
float sporeGasDashGateValue = death ? 6f : 9f;
|
||||
if (phase3 && npc.ai[3] % sporeGasDashGateValue == 0f)
|
||||
{
|
||||
|
||||