Gave Yharon a 5% Reaper resist

This commit is contained in:
DominicKarma authored and Cameron Ewell committed 2021-03-22 17:15:42 -04:00
1 parent 446866f878
commit 1a787ffffd
1 file changed
+9
+9
View File
@@ -15,6 +15,7 @@ using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.NPCs.TownNPCs;
using CalamityMod.Projectiles.Boss;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.Tiles.Ores;
using CalamityMod.World;
using Microsoft.Xna.Framework;
@@ -2944,6 +2945,14 @@ namespace CalamityMod.NPCs.Yharon
}
#endregion
#region Projectile Resists
public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
{
if (projectile.type == ModContent.ProjectileType<ReaperProjectile>())
damage = (int)(damage * 0.95);
}
#endregion
#region HP Bar Cooldown Slot and Stats
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position)
{