returning healing projectile buffs
This commit is contained in:
1 parent
524940b09e
commit
fdfb769f63
12 files changed
+24
-130
No files matched your search
@@ -1,5 +1,6 @@
|
||||
AbsorberAura.DisplayName: Absorber Aura
|
||||
AltTransfusionTrail.DisplayName: Alt Transfusion Trail
|
||||
BloodstoneHealOrb.DisplayName: Bloodstone Heal Orb
|
||||
BlueJellyAura.DisplayName: Blue Jelly Aura
|
||||
BurntSiennaProj.DisplayName: Sienna
|
||||
CactusHealOrb.DisplayName: Heal
|
||||
@@ -13,9 +14,6 @@ HydrothermicHealOrb.DisplayName: Hydrothermic Rejuvenation
|
||||
ManaPolarizerHealOrb.DisplayName: Mana Polarizer Heal Orb
|
||||
PhantomicHeart.DisplayName: Phantomic Heart
|
||||
PinkJellyAura.DisplayName: Pink Jelly Aura
|
||||
ReaverHealOrb.DisplayName: Reaver Heal Orb
|
||||
RoyalHeal.DisplayName: Heal
|
||||
ShinobiHealOrb.DisplayName: Blue Healing Orb
|
||||
SilvaOrb.DisplayName: Silva Orb
|
||||
TransfusionTrail.DisplayName: Heal
|
||||
BloodstoneHealOrb.DisplayName: Bloodstone Heal Orb
|
||||
@@ -17,13 +17,11 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 600;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.extraUpdates = 5;
|
||||
Projectile.MaxUpdates = 5;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -12,18 +12,16 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.MaxUpdates = 4;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 3f, 15f);
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 4f, 15f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.BlueFairy, 0f, 0f, 100);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
|
||||
@@ -13,18 +13,16 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.MaxUpdates = 4;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 5f, 15f);
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 8f, 15f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Flare, 0f, 0f, 100);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
|
||||
@@ -13,18 +13,16 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.extraUpdates = 5;
|
||||
Projectile.MaxUpdates = 4;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 4f, 15f);
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 6f, 15f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.SpectreStaff, 0f, 0f, 100);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Healing
|
||||
{
|
||||
public class ReaverHealOrb : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Healing";
|
||||
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.extraUpdates = 3;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 5f, 15f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.GreenFairy, 0f, 0f, 100);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
Main.dust[dust].position.X -= Projectile.velocity.X * 0.2f;
|
||||
Main.dust[dust].position.Y += Projectile.velocity.Y * 0.2f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,18 +13,16 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.MaxUpdates = 5;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 18f, 10f);
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 12f, 10f);
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.PurificationPowder, 0f, 0f, 100);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 0f;
|
||||
|
||||
@@ -26,7 +26,6 @@ namespace CalamityMod.Projectiles.Healing
|
||||
Projectile.width = Projectile.height = 20;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.MaxUpdates = 5;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Healing
|
||||
{
|
||||
public class SilvaOrb : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Healing";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 22;
|
||||
Projectile.height = 22;
|
||||
Projectile.friendly = true;
|
||||
Projectile.alpha = 255;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.tileCollide = false;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.alpha -= 2;
|
||||
if (Projectile.localAI[0] == 0f)
|
||||
{
|
||||
Projectile.scale += 0.05f;
|
||||
if (Projectile.scale > 1.2f)
|
||||
Projectile.localAI[0] = 1f;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.scale -= 0.05f;
|
||||
if (Projectile.scale < 0.8f)
|
||||
Projectile.localAI[0] = 0f;
|
||||
}
|
||||
|
||||
Projectile.HealingProjectile((int)Projectile.ai[1], (int)Projectile.ai[0], 6f, 15f);
|
||||
return;
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor) => new Color(Main.DiscoR, 203, 103, Projectile.alpha);
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
int silvaHeal = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.ChlorophyteWeapon, 0f, 0f, 0, new Color(Main.DiscoR, 203, 103), 1.5f);
|
||||
Main.dust[silvaHeal].noGravity = true;
|
||||
Main.dust[silvaHeal].velocity *= 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 413 B |
@@ -13,13 +13,11 @@ namespace CalamityMod.Projectiles.Healing
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
Projectile.height = 4;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 300;
|
||||
Projectile.width = Projectile.height = 4;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.MaxUpdates = 4;
|
||||
Projectile.timeLeft = 120 * Projectile.MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -287,7 +287,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<GlacialState>(), Terratomere.TrueMeleeGlacialStateTime);
|
||||
Owner.SpawnLifeStealProjectile(target, Projectile, ModContent.ProjectileType<ReaverHealOrb>(), (int)Math.Round(hit.Damage * 0.025), 0.75f);
|
||||
Owner.DoLifestealDirect(target, (int)Math.Round(hit.Damage * 0.025), 0.75f);
|
||||
|
||||
// Create a slash creator on top of the hit target.
|
||||
int slashCreatorID = ModContent.ProjectileType<TerratomereSlashCreator>();
|
||||
|
||||
Reference in new issue
Block a user