Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
6ed75c9de6
5 files changed
+38
-1
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user