Added ProjectileID.Sets.CultistIsResistantTo on every homing projectile in Calamity
This does nothing for Calamity since we disable Cultist's homing resist. However, since this is effectively used as a homing projectile set, this will help with crossmod compatibility. I ask that everyone else who changes homing projectiles in any way to help maintain this.
This commit is contained in:
1 parent
72ca7b9a98
commit
e0e167346e
312 files changed
+360
-334
No files matched your search
@@ -85,8 +85,6 @@ DecaysRetortDash.DisplayName: Evisceration Lunge
|
||||
DemonBlast.DisplayName: Devil Fork
|
||||
DepthCrusherProjectile.DisplayName: Depth Crusher
|
||||
DepthCrusherSplitProjectile.DisplayName: Depth Crusher Jet
|
||||
DepthOrb.DisplayName: Depth Trident
|
||||
DepthOrb2.DisplayName: Neptune's Trident
|
||||
DevilsSunriseCyclone.DisplayName: Devil's Sunrise
|
||||
DivineHatchetBoomerang.DisplayName: Scorching Seeker
|
||||
DNA.DisplayName: DNA
|
||||
@@ -98,7 +96,6 @@ DragonRageFireball.DisplayName: Dragon Rage Fireball
|
||||
EarthBoom.DisplayName: Earth's Judgement
|
||||
EarthMeteor.DisplayName: Gaia Meteor
|
||||
ElementalGlassStar.DisplayName: Glass Star
|
||||
ElementBall.DisplayName: Elemental Ball
|
||||
EmpyreanKnife.DisplayName: Empyrean Knife
|
||||
EntropicFlechette.DisplayName: Entropic Flechette
|
||||
EonBolt.DisplayName: Eon Bolt
|
||||
|
||||
@@ -14,7 +14,6 @@ BallisticPoisonBombProj.DisplayName: Poison Bomb
|
||||
BallisticPoisonBombSpike.DisplayName: Poison Spike
|
||||
BallisticPoisonCloud.DisplayName: Ballistic Cloud
|
||||
BarrelShrapnel.DisplayName: Barrel Shrapnel
|
||||
BettyExplosion.DisplayName: Betty Explosion
|
||||
BileExplosion.DisplayName: Bile
|
||||
BlastBarrelProjectile.DisplayName: Blast Barrel
|
||||
BlazingStarProj.DisplayName: Blazing Star
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 12;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -3,6 +3,7 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
@@ -13,6 +14,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 5;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
{
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 12;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
private NPC lastTarget = null;
|
||||
private float distance;
|
||||
private int timesItCanHit = 3;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 16;
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.SentryShot[Projectile.type] = true;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.MinionShot[Type] = true;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
|
||||
// While this projectile doesn't have afterimages, it keeps track of old positions for its primitive drawcode.
|
||||
ProjectileID.Sets.TrailingMode[Type] = 2;
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public static readonly Color InnerLightningColor = Color.White;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 60;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
|
||||
private int arcs = 0;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
get => Projectile.localAI[0];
|
||||
set => Projectile.localAI[0] = value;
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 2;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.DrawScreenCheckFluff[Projectile.type] = 10000;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 5;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public ref float Time => ref Projectile.ai[0];
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class BeamingBolt2 : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
@@ -10,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 5;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public Color mainColor;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 12;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public static int HomingSpeed = 16;
|
||||
public static int IdleSpeedMax = 7;
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 12;
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 7;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
@@ -11,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 2;
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 3;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 35;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 27;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 23;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
@@ -8,6 +9,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class GleamingBolt2 : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 14;
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class GraniteEnergy : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 12;
|
||||
|
||||
@@ -4,6 +4,7 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
@@ -15,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 5;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class HadalUrnStarfishShard : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class IceBlock : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 58;
|
||||
|
||||
@@ -8,6 +8,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class LightBead : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = NumAfterimages;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -9,6 +9,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class ManaBoltSmall : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
@@ -12,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override string Texture => "CalamityMod/Projectiles/LaserProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 5;
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public float scaleVariance = 1;
|
||||
|
||||
public bool launched = false;
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -9,6 +9,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = Projectile.height = 20;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public class PoseidonTyphoon : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 30;
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 3;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 3;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public ref float Time => ref Projectile.ai[1];
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = Projectile.height = 18;
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 5;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public Vector2 targetCenter;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.DrawScreenCheckFluff[Projectile.type] = 10000;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public new string LocalizationCategory => "Projectiles.Magic";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public int randTimer;
|
||||
public int dustType1 = 104;
|
||||
public int dustType2 = 29;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 5;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 5;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
ProjectileID.Sets.NoMeleeSpeedVelocityScaling[Projectile.type] = true;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 4;
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public class BloodScythe : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 28;
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 2;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Type] = 15;
|
||||
ProjectileID.Sets.TrailingMode[Type] = 2;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public int randTimer;
|
||||
public int dustType1 = 104;
|
||||
public int dustType2 = 96;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class DepthOrb : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 20;
|
||||
Projectile.height = 20;
|
||||
Projectile.aiStyle = ProjAIStyleID.Beam;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.penetrate = 3;
|
||||
Projectile.extraUpdates = 1;
|
||||
Projectile.timeLeft = 75;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Lighting.AddLight(Projectile.Center, 0f, 0f, 0.5f);
|
||||
int waterDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Water, 0f, 0f, 100, default, 0.6f);
|
||||
Main.dust[waterDust].noGravity = true;
|
||||
Main.dust[waterDust].velocity *= 0.5f;
|
||||
Main.dust[waterDust].velocity += Projectile.velocity * 0.1f;
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
if (Projectile.timeLeft > 70)
|
||||
return false;
|
||||
|
||||
Texture2D tex = Terraria.GameContent.TextureAssets.Projectile[Projectile.type].Value;
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor)
|
||||
{
|
||||
return new Color(50, 50, 255, Projectile.alpha);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
|
||||
Projectile.position = Projectile.Center;
|
||||
Projectile.width = Projectile.height = 64;
|
||||
Projectile.Center = Projectile.position;
|
||||
for (int dustIndex = 0; dustIndex < 30; dustIndex++)
|
||||
{
|
||||
float rando1 = (float)Main.rand.Next(-10, 11);
|
||||
float rando2 = (float)Main.rand.Next(-10, 11);
|
||||
float rando3 = (float)Main.rand.Next(3, 9);
|
||||
float randoAdjust = (float)Math.Sqrt((double)(rando1 * rando1 + rando2 * rando2));
|
||||
randoAdjust = rando3 / randoAdjust;
|
||||
rando1 *= randoAdjust;
|
||||
rando2 *= randoAdjust;
|
||||
int killWaterDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Water, 0f, 0f, 100, default, 1.2f);
|
||||
Dust dust = Main.dust[killWaterDust];
|
||||
dust.noGravity = true;
|
||||
dust.position.X = Projectile.Center.X;
|
||||
dust.position.Y = Projectile.Center.Y;
|
||||
dust.position.X += (float)Main.rand.Next(-10, 11);
|
||||
dust.position.Y += (float)Main.rand.Next(-10, 11);
|
||||
dust.velocity.X = rando1;
|
||||
dust.velocity.Y = rando2;
|
||||
}
|
||||
Projectile.maxPenetrate = -1;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.damage /= 2;
|
||||
Projectile.Damage();
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<CrushDepth>(), 120);
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 659 B |
@@ -1,94 +0,0 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class DepthOrb2 : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/Melee/DepthOrb";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 20;
|
||||
Projectile.height = 20;
|
||||
Projectile.aiStyle = ProjAIStyleID.Beam;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 120;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Lighting.AddLight(Projectile.Center, 0f, 0f, 0.5f);
|
||||
|
||||
int waterDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Water, 0f, 0f, 100, default, 0.4f);
|
||||
Main.dust[waterDust].noGravity = true;
|
||||
Main.dust[waterDust].velocity *= 0.5f;
|
||||
Main.dust[waterDust].velocity += Projectile.velocity * 0.1f;
|
||||
|
||||
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 12f, 20f);
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
if (Projectile.timeLeft > 115)
|
||||
return false;
|
||||
|
||||
Texture2D tex = Terraria.GameContent.TextureAssets.Projectile[Projectile.type].Value;
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color lightColor)
|
||||
{
|
||||
return new Color(50, 50, 255, Projectile.alpha);
|
||||
}
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
|
||||
Projectile.position = Projectile.Center;
|
||||
Projectile.width = Projectile.height = 64;
|
||||
Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2);
|
||||
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
|
||||
for (int dustIndex = 0; dustIndex <= 30; dustIndex++)
|
||||
{
|
||||
float rando1 = (float)Main.rand.Next(-10, 11);
|
||||
float rando2 = (float)Main.rand.Next(-10, 11);
|
||||
float rando3 = (float)Main.rand.Next(3, 9);
|
||||
float randoAdjust = (float)Math.Sqrt((double)(rando1 * rando1 + rando2 * rando2));
|
||||
randoAdjust = rando3 / randoAdjust;
|
||||
rando1 *= randoAdjust;
|
||||
rando2 *= randoAdjust;
|
||||
int killWaterDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Water, 0f, 0f, 100, default, 1.2f);
|
||||
Dust dust = Main.dust[killWaterDust];
|
||||
dust.noGravity = true;
|
||||
dust.position.X = Projectile.Center.X;
|
||||
dust.position.Y = Projectile.Center.Y;
|
||||
dust.position.X += (float)Main.rand.Next(-10, 11);
|
||||
dust.position.Y += (float)Main.rand.Next(-10, 11);
|
||||
dust.velocity.X = rando1;
|
||||
dust.velocity.Y = rando2;
|
||||
}
|
||||
Projectile.maxPenetrate = -1;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10;
|
||||
Projectile.Damage();
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<CrushDepth>(), 180);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public static float MaxHomingRange = 600f;
|
||||
public static float HomingVelocity = 20f;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 6;
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 5;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public int colorTimer = 0;
|
||||
public int fallTime = 180;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 36;
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class ElementBall : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 8;
|
||||
Projectile.height = 8;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.Melee;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.extraUpdates = 2;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.timeLeft = 150;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
int rainbowDust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.RainbowTorch, (float)(Projectile.direction * 2), 0f, 150, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1f);
|
||||
Main.dust[rainbowDust].noGravity = true;
|
||||
Main.dust[rainbowDust].velocity *= 0f;
|
||||
|
||||
CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 20f);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 6;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public int spinDir = 100;
|
||||
public int waveOften = 40;
|
||||
public float scaleVariance = 1;
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 50;
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 20;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.projFrames[Projectile.type] = 4;
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 10;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 30;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public float speed = 0f;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
|
||||
|
||||
public override void SetStaticDefaults() => ProjectileID.Sets.CultistIsResistantTo[Type] = true;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 10;
|
||||
|
||||
Loaded 100 of 312 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user