This commit is contained in:
termigator1359 committed 2020-01-19 21:07:32 -05:00
commit 6ed75c9de6
5 files changed
+38 -1

No files matched your search

+9
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
@@ -187,6 +188,14 @@ namespace CalamityMod.NPCs.CeaselessVoid
}
}
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
{
if (CalamityWorld.DoGSecondStageCountdown <= 0 && projectile.type == ModContent.ProjectileType<ShatteredSunScorchedBlade>())
{
damage /= 2;
}
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
if (CalamityWorld.revenge)
+9
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
@@ -151,6 +152,14 @@ namespace CalamityMod.NPCs.CeaselessVoid
npc.velocity.Y = (npc.velocity.Y * 100f + num1259) / 101f;
}
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
{
if (CalamityWorld.DoGSecondStageCountdown <= 0 && projectile.type == ModContent.ProjectileType<ShatteredSunScorchedBlade>())
{
damage /= 2;
}
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
if (CalamityWorld.revenge)
+9
View File
@@ -1,4 +1,5 @@
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using System;
@@ -178,6 +179,14 @@ namespace CalamityMod.NPCs.CeaselessVoid
}
}
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
{
if (CalamityWorld.DoGSecondStageCountdown <= 0 && projectile.type == ModContent.ProjectileType<ShatteredSunScorchedBlade>())
{
damage /= 2;
}
}
public override void OnHitPlayer(Player player, int damage, bool crit)
{
if (CalamityWorld.revenge)
+1
View File
@@ -3,6 +3,7 @@ using CalamityMod.Items.LoreItems;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables.Furniture.Trophies;
using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
+10 -1
View File
@@ -1,4 +1,5 @@
using CalamityMod.World;
using CalamityMod.Projectiles.Rogue;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
@@ -200,6 +201,14 @@ namespace CalamityMod.NPCs.StormWeaver
}
}
public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
{
if (projectile.type == ModContent.ProjectileType<ShatteredSunScorchedBlade>())
{
damage /= 3;
}
}
public override bool CheckActive()
{
return false;