Burning Revelation part 2
This commit is contained in:
1 parent
8f090c755b
commit
c60346b511
7 files changed
+95
-66
No files matched your search
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 40;
|
||||
Item.height = 38;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 120;
|
||||
Item.damage = 300;
|
||||
Item.knockBack = 7.5f;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
|
||||
@@ -261,8 +261,10 @@ BurningRevelation: {
|
||||
DisplayName: Burning Revelation
|
||||
Tooltip:
|
||||
'''
|
||||
Emits large holy explosions on hit
|
||||
An exceptionally agile yoyo
|
||||
A high IQ yoyo that charges power over time. hits create explosions scaling with power and greatly increase the charge.
|
||||
After reaching max charge the yoyo will discharge its charge as homing profaned stars that deal more damage the further they travel
|
||||
Stars with max damage explode for extra damage on hit
|
||||
An exceptionally agile yoyo that ignores tiles
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ BlissfulBombardier: {
|
||||
Tooltip:
|
||||
'''
|
||||
Launches a large crystal missile into the sky which releases mini missiles before falling back down at your cursor
|
||||
The crystal missile homes really fucking good but the little ones dont
|
||||
The crystal missile have homing, the little ones dont, I cant be bothered to tooltip rn
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ BrinySpout.DisplayName: Briny Spout
|
||||
BrinyTyphoonBubble.DisplayName: Bubble
|
||||
BrokenBiomeBladeHoldout.DisplayName: Broken Biome Blade
|
||||
BurningMeteor.DisplayName: Meteor
|
||||
BurningRevelationBlast.DisplayName: Profaned Blast
|
||||
CatastropheClaymoreSparkle.DisplayName: Catastrophe Sparkle
|
||||
CausticEdgeProjectile.DisplayName: Caustic Edge
|
||||
ChainedMeatHook.DisplayName: Enchanted Meat Hook
|
||||
@@ -299,4 +300,3 @@ WulfrumScrewdriverProj.DisplayName: Wulfrum Screwdriver
|
||||
YinYoDark.DisplayName: Dark Shard
|
||||
YinYoLight.DisplayName: Light Shard
|
||||
FallenExplosionSmall.DisplayName: Fallen Hammer Blast
|
||||
BurningRevelationBlast.DisplayName: Burning Revelation Blast
|
||||
@@ -68,6 +68,7 @@ GreenLabSeeker.DisplayName: Seeking Mechanism
|
||||
HeronBobber.DisplayName: Heron Bobber
|
||||
HideOfAstrumDeusExplosion.DisplayName: Explosion
|
||||
HolyExplosionSupreme.DisplayName: Explosion
|
||||
HolyStarDamage.DisplayName: Holy Star
|
||||
HydrothermalSmoke.DisplayName: Smoke
|
||||
HydrothermicFlare.DisplayName: Hydrothermic Flare
|
||||
HydrothermicFlareRogue.DisplayName: Hydrothermic Flare
|
||||
@@ -134,4 +135,3 @@ WulfrumLureSignal.DisplayName: Signal
|
||||
YanmeisKnifeSlash.DisplayName: Yanmei's Knife
|
||||
YellowLabSeeker.DisplayName: Seeking Mechanism
|
||||
VoidofExtinctionCrit.DisplayName: Void of Extinction Crit
|
||||
HolyStarDamage.DisplayName: Holy Star Damage
|
||||
@@ -24,6 +24,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
public bool firing = false;
|
||||
public NPC targeted;
|
||||
public float fade = 0;
|
||||
public int hitCooldown = 0;
|
||||
|
||||
public float yoyoPower = 0;
|
||||
public int yoyoPowerMax = 1000;
|
||||
|
||||
public bool cloneYoyo = false;
|
||||
public bool setCloneDamage = false;
|
||||
@@ -44,11 +48,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Projectile.width = 30;
|
||||
Projectile.height = 32;
|
||||
Projectile.friendly = true;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.MaxUpdates = MaxUpdates;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 10 * MaxUpdates;
|
||||
Projectile.localNPCHitCooldown = 18 * MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -72,24 +77,28 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
}
|
||||
if (!setCloneDamage && cloneYoyo)
|
||||
{
|
||||
// Since the effects of the yoyo itself are nerfed if it's a clone, it gets a damage bonus to compensate a bit
|
||||
Projectile.damage = (int)(Projectile.damage * 1.2f);
|
||||
// Since the effects of the yoyo itself are nerfed if it's a clone, it gets a small damage bonus to compensate a bit
|
||||
Projectile.damage = (int)(Projectile.damage * 1.1f);
|
||||
setCloneDamage = true;
|
||||
}
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
|
||||
Lighting.AddLight(Projectile.Center, Color.Gold.ToVector3() * 0.9f);
|
||||
|
||||
fade = MathHelper.Lerp(fade, (firing ? 1 : 0), 0.02f);
|
||||
// Fading in and out for various visuals
|
||||
fade = MathHelper.Lerp(fade, (firing ? 1 : 0), 0.03f);
|
||||
|
||||
if (firing)
|
||||
{
|
||||
if (targeted == null || targeted.life <= 0)
|
||||
targeted = Projectile.Center.ClosestNPCAt(600);
|
||||
|
||||
if (timer % (cloneYoyo ? 15 : 10) == 0) // Fire Holy Stars
|
||||
if (timer % (cloneYoyo ? 20 : 10) == 0) // Fire Holy Stars
|
||||
{
|
||||
int stardamage = (int)(Projectile.damage * 0.12f);
|
||||
|
||||
Vector2 vel = new Vector2(0, 10).RotatedBy(timer * 0.025f * (cloneYoyo ? -1 : 1));
|
||||
Projectile damageStar = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, vel, ModContent.ProjectileType<HolyStarDamage>(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, 0, 5, (targeted == null ? -1 : targeted.whoAmI));
|
||||
Projectile damageStar = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, vel, ModContent.ProjectileType<HolyStarDamage>(), stardamage, Projectile.knockBack, Projectile.owner, 0, 5, (targeted == null ? -1 : targeted.whoAmI));
|
||||
damageStar.extraUpdates = 1;
|
||||
damageStar.scale = 0.6f;
|
||||
Projectile damageStar2 = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, -vel, ModContent.ProjectileType<HolyStarDamage>(), (int)(Projectile.damage * 0.5f), Projectile.knockBack, Projectile.owner, 0, 5, (targeted == null ? -1 : targeted.whoAmI));
|
||||
@@ -99,28 +108,38 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
SoundStyle fire = new("CalamityMod/Sounds/Custom/Providence/ProvidenceHolyBlastShoot");
|
||||
SoundEngine.PlaySound(fire with { Volume = 0.6f, PitchVariance = 0.2f }, Projectile.Center);
|
||||
}
|
||||
|
||||
// Technically scrapped because the weapon is complex enough, but we might want to use this in the future
|
||||
/*
|
||||
if (timer % 60 == 0) // Fire Heal Stars at player (slightly predictive)
|
||||
{
|
||||
Vector2 vel = ((Projectile.Center - Owner.Center) + Owner.velocity * 5).SafeNormalize(Vector2.UnitX) * -10;
|
||||
Vector2 vel = ((Projectile.Center - Owner.Center) - Owner.velocity * 8).SafeNormalize(Vector2.UnitX) * -10;
|
||||
Projectile healStar = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, vel, ModContent.ProjectileType<HolyLight>(), 0, Projectile.knockBack, Projectile.owner, 0, cloneYoyo ? 3 : 10, 5);
|
||||
healStar.extraUpdates = 2;
|
||||
SoundStyle fireHeal = new("CalamityMod/Sounds/Custom/ProfanedGuardians/GuardianDash");
|
||||
SoundEngine.PlaySound(fireHeal with { Volume = 0.9f, Pitch = 0.3f }, Projectile.Center);
|
||||
}
|
||||
*/
|
||||
|
||||
if (timer <= 0)
|
||||
{
|
||||
firing = false;
|
||||
canDamage = true;
|
||||
Projectile.numHits = 0;
|
||||
yoyoPower = 0;
|
||||
}
|
||||
else
|
||||
timer--;
|
||||
|
||||
Projectile.timeLeft = 60;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (yoyoPower >= yoyoPowerMax)
|
||||
{
|
||||
SoundStyle fireHeal = new("CalamityMod/Sounds/Custom/ProfanedGuardians/GuardianRay");
|
||||
SoundEngine.PlaySound(fireHeal with { Volume = 0.9f, Pitch = 0.3f }, Projectile.Center);
|
||||
canDamage = false;
|
||||
firing = true;
|
||||
timer = 240;
|
||||
}
|
||||
if (Main.rand.NextBool(7))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, ModContent.DustType<LightDust>(), ((new Vector2(4, 4)).RotatedByRandom(100) + Projectile.velocity) * Main.rand.NextFloat(0.2f, 1f));
|
||||
@@ -129,55 +148,60 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
|
||||
dust.noLightEmittence = true;
|
||||
}
|
||||
yoyoPower++;
|
||||
}
|
||||
|
||||
if (hitCooldown > 0)
|
||||
hitCooldown--;
|
||||
|
||||
if ((Projectile.Center - Main.player[Projectile.owner].Center).Length() > 3200f && !firing) // 200 blocks
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (Projectile.numHits >= 9)
|
||||
if (hitCooldown == 0)
|
||||
{
|
||||
hitCooldown = Projectile.localNPCHitCooldown;
|
||||
|
||||
targeted = target;
|
||||
canDamage = false;
|
||||
firing = true;
|
||||
timer = 240;
|
||||
}
|
||||
yoyoPower += 15;
|
||||
|
||||
// Create Explosion
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
float power = Utils.GetLerpValue(-5, 10, Projectile.numHits, true);
|
||||
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<BurningRevelationBlast>(), (int)(Projectile.damage * 0.75), Projectile.knockBack, Projectile.owner, power);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].DamageType = DamageClass.MeleeNoSpeed;
|
||||
|
||||
for (int i = 0; i < (int)(30 * power); i++)
|
||||
// Create Explosion
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
bool isSpark = Main.rand.NextBool(5);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, isSpark ? 278 : ModContent.DustType<LightDust>(), ((new Vector2(15, 15) * power).RotatedByRandom(100)) * Main.rand.NextFloat(0.2f, 1f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(1.85f, 2.15f) * power * (isSpark ? 0.5f : 1);
|
||||
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
|
||||
if (isSpark)
|
||||
dust.noGravity = false;
|
||||
else
|
||||
dust.noLightEmittence = true;
|
||||
float power = Utils.GetLerpValue(-100, yoyoPowerMax, yoyoPower, true);
|
||||
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<BurningRevelationBlast>(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, power);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].DamageType = DamageClass.MeleeNoSpeed;
|
||||
|
||||
for (int i = 0; i < (int)(30 * power); i++)
|
||||
{
|
||||
bool isSpark = Main.rand.NextBool(5);
|
||||
Dust dust = Dust.NewDustPerfect(Projectile.Center, isSpark ? 278 : ModContent.DustType<LightDust>(), ((new Vector2(15, 15) * power).RotatedByRandom(100)) * Main.rand.NextFloat(0.2f, 1f));
|
||||
dust.noGravity = true;
|
||||
dust.scale = Main.rand.NextFloat(1.85f, 2.15f) * power * (isSpark ? 0.5f : 1);
|
||||
dust.color = Main.rand.NextBool(5) ? Color.Khaki : Color.Goldenrod;
|
||||
if (isSpark)
|
||||
dust.noGravity = false;
|
||||
else
|
||||
dust.noLightEmittence = true;
|
||||
}
|
||||
|
||||
Particle orb1 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Goldenrod, "CalamityMod/Particles/SoftRoundExplosion", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 0.14f * power, 15);
|
||||
GeneralParticleHandler.SpawnParticle(orb1);
|
||||
|
||||
Particle orb2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Khaki, "CalamityMod/Particles/BloomRing", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 2.1f * power, 15);
|
||||
GeneralParticleHandler.SpawnParticle(orb2);
|
||||
|
||||
SoundStyle explode = new("CalamityMod/Sounds/Custom/Providence/ProvidenceHolyBlastImpact");
|
||||
SoundEngine.PlaySound(explode with { Volume = 0.5f, Pitch = 0.3f * power }, Projectile.Center);
|
||||
SoundStyle explode2 = new("CalamityMod/Sounds/Item/HeliumFlashReadyAlt");
|
||||
SoundEngine.PlaySound(explode2 with { Volume = 0.7f, Pitch = 0.6f * power }, Projectile.Center);
|
||||
}
|
||||
|
||||
Particle orb1 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Goldenrod, "CalamityMod/Particles/SoftRoundExplosion", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 0.14f * power, 15);
|
||||
GeneralParticleHandler.SpawnParticle(orb1);
|
||||
|
||||
Particle orb2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Khaki, "CalamityMod/Particles/BloomRing", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 2.1f * power, 15);
|
||||
GeneralParticleHandler.SpawnParticle(orb2);
|
||||
|
||||
SoundStyle explode = new("CalamityMod/Sounds/Custom/Providence/ProvidenceHolyBlastImpact");
|
||||
SoundEngine.PlaySound(explode with { Volume = 0.5f, Pitch = 0.3f * power }, Projectile.Center);
|
||||
SoundStyle explode2 = new("CalamityMod/Sounds/Item/HeliumFlashReadyAlt");
|
||||
SoundEngine.PlaySound(explode2 with { Volume = 0.7f, Pitch = 0.6f * power }, Projectile.Center);
|
||||
}
|
||||
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 480);
|
||||
}
|
||||
public override bool? CanDamage() => canDamage ? null : false;
|
||||
@@ -189,9 +213,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Vector2 drawPos = Projectile.Center - Main.screenPosition;
|
||||
|
||||
// The back glow
|
||||
float power = Utils.GetLerpValue(-100, yoyoPowerMax, yoyoPower, true);
|
||||
float randSize = Main.rand.NextFloat(0.9f, 1.1f);
|
||||
Main.EntitySpriteDraw(bloomTexture, drawPos, null, Color.Goldenrod with { A = 0 }, Projectile.rotation, bloomTexture.Size() * 0.5f, 0.5f * randSize * (1 - fade), SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(bloomTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, Projectile.rotation, bloomTexture.Size() * 0.5f, 0.3f * randSize * (1 - fade), SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(bloomTexture, drawPos, null, Color.Goldenrod with { A = 0 }, Projectile.rotation, bloomTexture.Size() * 0.5f, 0.65f * randSize * (1 - fade) * power, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(bloomTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, Projectile.rotation, bloomTexture.Size() * 0.5f, 0.45f * randSize * (1 - fade) * power, SpriteEffects.None, 0);
|
||||
|
||||
|
||||
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
|
||||
@@ -200,10 +225,10 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Projectile.DrawProjectileWithBackglow(Color.Goldenrod with { A = 0 } * fade, lightColor, 4f * fade, texture);
|
||||
|
||||
// The shine effect
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.Goldenrod with { A = 0 }, 0, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 3.25f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, 0, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 3.05f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.Goldenrod with { A = 0 }, MathHelper.PiOver2, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 3.25f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, MathHelper.PiOver2, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 3.05f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.Goldenrod with { A = 0 }, 0, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 4.25f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, 0, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 4.05f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.Goldenrod with { A = 0 }, MathHelper.PiOver2, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 4.25f * randSize * fade, SpriteEffects.None, 0);
|
||||
Main.EntitySpriteDraw(shineTexture, drawPos, null, Color.White with { A = 0 } * 0.65f, MathHelper.PiOver2, shineTexture.Size() * 0.5f, new Vector2(0.4f, 1f) * 4.05f * randSize * fade, SpriteEffects.None, 0);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -66,19 +66,21 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
if (Projectile.ai[2] != -1 && time > 20)
|
||||
{
|
||||
NPC targeted = Projectile.ai[2] == -1 ? null : Main.npc[(int)Projectile.ai[2]];
|
||||
if (targeted.life <= 0)
|
||||
if (targeted != null && targeted.life <= 0)
|
||||
targeted = null;
|
||||
else
|
||||
Projectile.timeLeft++;
|
||||
|
||||
Vector2 moveToTrackingPos = ((targeted != null ? targeted.Center : Owner.Center) - Projectile.Center).SafeNormalize(Vector2.UnitX);
|
||||
if (Projectile.velocity.Length() < 12 + (8 * Utils.GetLerpValue(60, 120, time, true)))
|
||||
Projectile.velocity += moveToTrackingPos * (0.8f + (4 * Utils.GetLerpValue(60, 120, time, true)));
|
||||
else
|
||||
Projectile.velocity *= 0.9f;
|
||||
if (targeted != null)
|
||||
{
|
||||
Vector2 moveToTrackingPos = (targeted.Center - Projectile.Center).SafeNormalize(Vector2.UnitX);
|
||||
if (Projectile.velocity.Length() < 12 + (8 * Utils.GetLerpValue(60, 120, time, true)))
|
||||
Projectile.velocity += moveToTrackingPos * (0.6f + (4 * Utils.GetLerpValue(60, 120, time, true)));
|
||||
else
|
||||
Projectile.velocity *= 0.9f;
|
||||
}
|
||||
}
|
||||
if (Projectile.scale < 1)
|
||||
Projectile.scale += 0.0033f;
|
||||
Projectile.scale += 0.0035f;
|
||||
if (Projectile.scale >= 1 && !reachedMaxDamage)
|
||||
{
|
||||
Particle orb2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.Orchid, "CalamityMod/Particles/BloomRing", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0, 0.5f, 8);
|
||||
@@ -167,7 +169,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
GeneralParticleHandler.SpawnParticle(orb3);
|
||||
|
||||
// Sub projectiles spawning sub explosions... yea it needs armor pen
|
||||
Projectile explo = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<BurningRevelationBlast>(), (int)(Projectile.damage * 0.5), Projectile.knockBack, Projectile.owner, 0.75f);
|
||||
Projectile explo = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<BurningRevelationBlast>(), (int)(Projectile.damage * 1.2f), Projectile.knockBack, Projectile.owner, 0.75f);
|
||||
explo.ArmorPenetration = 30;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user