1 - Removed ancillary effects of mainline ram shields and toned down defense.
2 - Emphasized debuff immunities in Ankh Shield upgrades. 3 - Removed Shield of the Ocean from Asgard's line 4 - Vastly increased damage of Elysian Aegis and Asgardian Aegis rams.
This commit is contained in:
1 parent
4bce45d2c2
commit
482ae205f0
16 files changed
+153
-161
No files matched your search
@@ -88,10 +88,15 @@ namespace CalamityMod.CalPlayer
|
||||
UsedDash.OnHitEffects(Player, n, source, ref hitContext);
|
||||
|
||||
// Don't bother doing anything if no damage is done.
|
||||
if (hitContext.Damage <= 0)
|
||||
if (hitContext.damageClass is null || hitContext.BaseDamage <= 0)
|
||||
continue;
|
||||
|
||||
Player.ApplyDamageToNPC(n, hitContext.Damage, hitContext.KnockbackFactor, hitContext.HitDirection, hitContext.CriticalHit);
|
||||
// Duplicated from the way TML edits vanilla ram dash damage (and Shield of Cthulhu)
|
||||
int dashDamage = (int)Player.GetTotalDamage(hitContext.damageClass).ApplyTo(hitContext.BaseDamage);
|
||||
float dashKB = Player.GetTotalKnockback(hitContext.damageClass).ApplyTo(hitContext.BaseKnockback);
|
||||
bool rollCrit = Main.rand.Next(100) < Player.GetTotalCritChance(hitContext.damageClass);
|
||||
|
||||
Player.ApplyDamageToNPC(n, dashDamage, dashKB, hitContext.HitDirection, rollCrit, hitContext.damageClass, true);
|
||||
if (n.Calamity().dashImmunityTime[Player.whoAmI] < 12)
|
||||
n.Calamity().dashImmunityTime[Player.whoAmI] = 12;
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -57,31 +54,25 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
float kbFactor = 15f;
|
||||
bool crit = Main.rand.Next(100) < player.GetCritChance<MeleeDamageClass>();
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = crit;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = AsgardianAegis.ShieldSlamIFrames;
|
||||
hitContext.Damage = (int)player.GetTotalDamage<MeleeDamageClass>().ApplyTo(300f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
int supremeExplosionDamage = (int)player.GetBestClassDamage().ApplyTo(135);
|
||||
// Define damage parameters.
|
||||
int dashDamage = AsgardianAegis.ShieldSlamDamage;
|
||||
hitContext.damageClass = DamageClass.Melee;
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = AsgardianAegis.ShieldSlamKnockback;
|
||||
|
||||
// TODO -- Asgardian Aegis should probably spawn some god slayer themed explosion instead of a holy attack
|
||||
int supremeExplosionDamage = (int)player.GetBestClassDamage().ApplyTo(AsgardianAegis.RamExplosionDamage);
|
||||
if (player.Calamity().oldFashioned)
|
||||
supremeExplosionDamage = CalamityUtils.CalcOldFashionedDamage(supremeExplosionDamage);
|
||||
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), supremeExplosionDamage, 20f, Main.myPlayer, 3f, 0f);
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), supremeExplosionDamage, AsgardianAegis.RamExplosionKnockback, Main.myPlayer, 3f, 0f);
|
||||
npc.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -54,32 +53,20 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
float kbFactor = 9f;
|
||||
bool crit = Main.rand.Next(100) < player.GetCritChance<MeleeDamageClass>();
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = crit;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = AsgardsValor.ShieldSlamIFrames;
|
||||
hitContext.Damage = (int)player.GetTotalDamage<MeleeDamageClass>().ApplyTo(100f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
int holyExplosionDamage = (int)player.GetBestClassDamage().ApplyTo(60);
|
||||
if (player.Calamity().oldFashioned)
|
||||
holyExplosionDamage = CalamityUtils.CalcOldFashionedDamage(holyExplosionDamage);
|
||||
// Define damage parameters.
|
||||
int dashDamage = AsgardsValor.ShieldSlamDamage;
|
||||
hitContext.damageClass = DamageClass.Melee;
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = AsgardsValor.ShieldSlamKnockback;
|
||||
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosion>(), holyExplosionDamage, 15f, Main.myPlayer, 0f, 0f);
|
||||
npc.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
|
||||
// TODO -- With the removal of its holy explosion, Asgard's Valor needs better visuals
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +1,17 @@
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
public struct DashHitContext
|
||||
{
|
||||
public int Damage;
|
||||
public int BaseDamage;
|
||||
|
||||
public float BaseKnockback;
|
||||
|
||||
public DamageClass damageClass;
|
||||
|
||||
public int PlayerImmunityFrames;
|
||||
|
||||
public int HitDirection;
|
||||
|
||||
public bool CriticalHit;
|
||||
|
||||
public float KnockbackFactor;
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
hitContext.Damage = 0;
|
||||
hitContext.BaseDamage = 0;
|
||||
hitContext.PlayerImmunityFrames = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -57,31 +56,25 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
float kbFactor = 12f;
|
||||
bool crit = Main.rand.Next(100) < player.GetCritChance<MeleeDamageClass>();
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = crit;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = ElysianAegis.ShieldSlamIFrames;
|
||||
hitContext.Damage = (int)player.GetTotalDamage<MeleeDamageClass>().ApplyTo(250f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
int supremeExplosionDamage = (int)player.GetBestClassDamage().ApplyTo(120);
|
||||
// Define damage parameters.
|
||||
int dashDamage = ElysianAegis.ShieldSlamDamage;
|
||||
hitContext.damageClass = DamageClass.Melee;
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = ElysianAegis.ShieldSlamKnockback;
|
||||
|
||||
// On-hit Supreme Holy Explosion
|
||||
int supremeExplosionDamage = (int)player.GetBestClassDamage().ApplyTo(ElysianAegis.RamExplosionDamage);
|
||||
if (player.Calamity().oldFashioned)
|
||||
supremeExplosionDamage = CalamityUtils.CalcOldFashionedDamage(supremeExplosionDamage);
|
||||
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), supremeExplosionDamage, 15f, Main.myPlayer, 1f, 0f);
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), supremeExplosionDamage, ElysianAegis.RamExplosionKnockback, Main.myPlayer, 1f, 0f);
|
||||
npc.AddBuff(ModContent.BuffType<HolyFlames>(), 300);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.GodSlayer;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -11,8 +10,6 @@ using ReLogic.Utilities;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
@@ -127,28 +124,22 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
dust.noGravity = false;
|
||||
}
|
||||
|
||||
float kbFactor = 15f;
|
||||
bool crit = Main.rand.Next(100) < player.GetCritChance<MeleeDamageClass>();
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = crit;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = AsgardianAegis.ShieldSlamIFrames;
|
||||
|
||||
// Define damage parameters.
|
||||
int dashDamage = 3000;
|
||||
hitContext.damageClass = player.GetBestClass();
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = 15f;
|
||||
|
||||
// God Slayer Dash intentionally does not use the vanilla function for collision attack iframes.
|
||||
// This is because its immunity is meant to be completely consistent and not subject to vanilla anticheese.
|
||||
hitContext.PlayerImmunityFrames = GodSlayerChestplate.DashIFrames;
|
||||
hitContext.Damage = (int)player.GetBestClassDamage().ApplyTo(3000f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
npc.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -44,24 +43,18 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
float kbFactor = 3f;
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = false;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = OrnateShield.ShieldSlamIFrames;
|
||||
hitContext.Damage = (int)player.GetTotalDamage<MeleeDamageClass>().ApplyTo(50f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
// Define damage parameters.
|
||||
int dashDamage = OrnateShield.ShieldSlamDamage;
|
||||
hitContext.damageClass = DamageClass.Melee;
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = OrnateShield.ShieldSlamKnockback;
|
||||
|
||||
npc.AddBuff(BuffID.Frostburn2, 180); //Great, Frostbite is ACTUALLY called Frostburn 2
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
@@ -55,25 +55,18 @@ namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
public override void OnHitEffects(Player player, NPC npc, IEntitySource source, ref DashHitContext hitContext)
|
||||
{
|
||||
float kbFactor = 3f;
|
||||
bool crit = false;
|
||||
if (player.kbGlove)
|
||||
kbFactor *= 2f;
|
||||
if (player.kbBuff)
|
||||
kbFactor *= 1.5f;
|
||||
|
||||
// Define hit context variables.
|
||||
int hitDirection = player.direction;
|
||||
if (player.velocity.X != 0f)
|
||||
hitDirection = Math.Sign(player.velocity.X);
|
||||
|
||||
// Define hit context variables.
|
||||
hitContext.CriticalHit = crit;
|
||||
hitContext.HitDirection = hitDirection;
|
||||
hitContext.KnockbackFactor = kbFactor;
|
||||
hitContext.PlayerImmunityFrames = AsgardsValor.ShieldSlamIFrames;
|
||||
hitContext.Damage = (int)player.GetBestClassDamage().ApplyTo(50f);
|
||||
if (player.Calamity().oldFashioned)
|
||||
hitContext.Damage = CalamityUtils.CalcOldFashionedDamage(hitContext.Damage);
|
||||
|
||||
// Define damage parameters.
|
||||
int dashDamage = 50;
|
||||
hitContext.damageClass = DamageClass.Summon;
|
||||
hitContext.BaseDamage = player.Calamity().oldFashioned ? CalamityUtils.CalcOldFashionedDamage(dashDamage) : dashDamage;
|
||||
hitContext.BaseKnockback = 3f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,7 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Armor.GodSlayer;
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
{
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
using CalamityMod.Enums;
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.Dashes
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -15,14 +15,19 @@ namespace CalamityMod.Items.Accessories
|
||||
public class AsgardianAegis : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const int ShieldSlamDamage = 1000;
|
||||
public const float ShieldSlamKnockback = 15f;
|
||||
public const int ShieldSlamIFrames = 12;
|
||||
|
||||
public const int RamExplosionDamage = 1000;
|
||||
public const float RamExplosionKnockback = 20f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 60;
|
||||
Item.height = 54;
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.defense = 28;
|
||||
Item.defense = 20;
|
||||
Item.accessory = true;
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
}
|
||||
@@ -30,15 +35,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
// Asgardian Aegis ram dash
|
||||
modPlayer.DashID = AsgardianAegisDash.ID;
|
||||
player.dashType = 0;
|
||||
|
||||
// Inherited Ankh Shield effects
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
player.statLifeMax2 += 40;
|
||||
player.lifeRegen++;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.BrokenArmor] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
@@ -50,10 +54,34 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[BuffID.Darkness] = true;
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.buffImmune[BuffID.Stoned] = true;
|
||||
|
||||
// Additional debuff immunities (Counterparts, similar debuffs to vanilla Ankh Shield debuffs, or upgrades thereof)
|
||||
player.buffImmune[ModContent.BuffType<ArmorCrunch>()] = true; // "Stronger" Broken Armor
|
||||
player.buffImmune[ModContent.BuffType<BrainRot>()] = true; // Counterpart to Burning Blood
|
||||
player.buffImmune[ModContent.BuffType<BurningBlood>()] = true; // "Stronger" Bleeding
|
||||
player.buffImmune[BuffID.Venom] = true; // "Stronger" Poisoned
|
||||
player.buffImmune[ModContent.BuffType<SulphuricPoisoning>()] = true; // "Stronger" Poisoned
|
||||
player.buffImmune[BuffID.Webbed] = true; // "Stronger" Slow
|
||||
player.buffImmune[BuffID.Blackout] = true; // "Stronger" Darkness
|
||||
|
||||
// Additional debuff immunities (Everything from Ornate Shield + Asgard's Valor)
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.OnFire3] = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frozen] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Frostburn2] = true;
|
||||
|
||||
// Additional debuff immunities (Everything from Elysian Aegis + thematic counterparts)
|
||||
player.buffImmune[BuffID.CursedInferno] = true;
|
||||
player.buffImmune[BuffID.ShadowFlame] = true;
|
||||
player.buffImmune[BuffID.Daybreak] = true;
|
||||
player.buffImmune[ModContent.BuffType<Nightwither>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
|
||||
|
||||
// Immune to God Slayer Inferno itself
|
||||
player.buffImmune[ModContent.BuffType<GodSlayerInferno>()] = true;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
{ player.statDefense += 20; }
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
@@ -11,6 +12,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public class AsgardsValor : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const int ShieldSlamDamage = 200;
|
||||
public const float ShieldSlamKnockback = 9f;
|
||||
public const int ShieldSlamIFrames = 12;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -19,20 +22,21 @@ namespace CalamityMod.Items.Accessories
|
||||
Item.height = 44;
|
||||
Item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.defense = 16;
|
||||
Item.defense = 12; // we buff Ankh Shield to 12
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
// Asgard's Valor ram dash
|
||||
modPlayer.DashID = AsgardsValorDash.ID;
|
||||
player.dashType = 0;
|
||||
|
||||
// Inherited Ankh Shield effects
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Weak] = true;
|
||||
player.buffImmune[BuffID.BrokenArmor] = true;
|
||||
player.buffImmune[BuffID.Bleeding] = true;
|
||||
@@ -44,9 +48,15 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[BuffID.Darkness] = true;
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.buffImmune[BuffID.Stoned] = true;
|
||||
player.statLifeMax2 += 20;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
{ player.statDefense += 16; }
|
||||
|
||||
// Additional debuff immunities (Everything from Ornate Shield + fiery stuff)
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.OnFire3] = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frozen] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Frostburn2] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -54,7 +64,6 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.AnkhShield).
|
||||
AddIngredient<OrnateShield>().
|
||||
AddIngredient<ShieldoftheOcean>().
|
||||
AddIngredient<CoreofCalamity>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Rarities;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,28 +12,43 @@ namespace CalamityMod.Items.Accessories
|
||||
public class ElysianAegis : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const int ShieldSlamDamage = 500;
|
||||
public const float ShieldSlamKnockback = 12f;
|
||||
public const int ShieldSlamIFrames = 12;
|
||||
|
||||
public const int RamExplosionDamage = 500;
|
||||
public const float RamExplosionKnockback = 15f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 48;
|
||||
Item.height = 42;
|
||||
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.defense = 18;
|
||||
Item.defense = 16;
|
||||
Item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
// Elysian Aegis ram dash
|
||||
modPlayer.DashID = ElysianAegisDash.ID;
|
||||
player.dashType = 0;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
|
||||
|
||||
// Vaguely inherited Ankh Shield effects I guess
|
||||
player.noKnockback = true;
|
||||
player.fireWalk = true;
|
||||
player.statLifeMax2 += 30;
|
||||
|
||||
// Debuff immunities
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.OnFire3] = true;
|
||||
player.buffImmune[BuffID.CursedInferno] = true;
|
||||
player.buffImmune[BuffID.ShadowFlame] = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.Daybreak] = true;
|
||||
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.CalPlayer.Dashes;
|
||||
using CalamityMod.Items.Armor.Daedalus;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
@@ -11,6 +10,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public class OrnateShield : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public const int ShieldSlamDamage = 50;
|
||||
public const float ShieldSlamKnockback = 3f;
|
||||
public const int ShieldSlamIFrames = 12;
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,16 +26,15 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if ((player.armor[0].type == ModContent.ItemType<DaedalusHeadMagic>() || player.armor[0].type == ModContent.ItemType<DaedalusHeadSummon>() ||
|
||||
player.armor[0].type == ModContent.ItemType<DaedalusHeadMelee>() || player.armor[0].type == ModContent.ItemType<DaedalusHeadRanged>() ||
|
||||
player.armor[0].type == ModContent.ItemType<DaedalusHeadRogue>()) &&
|
||||
player.armor[1].type == ModContent.ItemType<DaedalusBreastplate>() && player.armor[2].type == ModContent.ItemType<DaedalusLeggings>())
|
||||
{
|
||||
player.endurance += 0.08f;
|
||||
player.statLifeMax2 += 20;
|
||||
}
|
||||
// Ornate Shield ram dash
|
||||
player.Calamity().DashID = OrnateShieldDash.ID;
|
||||
player.dashType = 0;
|
||||
|
||||
// Cold debuff immunities (Do not fear, this accessory is post Cryogen!)
|
||||
player.buffImmune[BuffID.Chilled] = true;
|
||||
player.buffImmune[BuffID.Frozen] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[BuffID.Frostburn2] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
Reference in new issue
Block a user