Final Touches
This commit is contained in:
1 parent
ada59988ed
commit
0ef95193f4
15 files changed
+101
-81
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -13,6 +12,8 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
public class Bane : ModBuff
|
||||
{
|
||||
public static Color baneColor1 = new Color(217, 115, 0);
|
||||
public static Color baneColor2 = new Color(0, 232, 146);
|
||||
public static DebuffData debuffData = new DebuffData()
|
||||
{
|
||||
EnemyLostRegen = 90,
|
||||
@@ -29,16 +30,16 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
public static void BaneNPCLifeRegen(NPC npc, int buffType, ref int buffIndex, ref int damage)
|
||||
{
|
||||
var cnpc = npc.Calamity();
|
||||
bool effected = (cnpc.abaddonEffected || cnpc.voidOfExtinctionEffected);
|
||||
bool strong = cnpc.voidOfExtinctionEffected;
|
||||
bool effected = (cnpc.abaddonEffected || cnpc.apollyonEffected);
|
||||
bool strong = cnpc.apollyonEffected;
|
||||
int baseDoTValue = (int)debuffData.EnemyLostRegen;
|
||||
if (effected)
|
||||
{
|
||||
foreach (var player in Main.ActivePlayers)
|
||||
{
|
||||
{
|
||||
float improvedDamage = baseDoTValue * player.Calamity().abaddonDebuffDamage;
|
||||
if (improvedDamage > baseDoTValue && (player.Calamity().abaddon || player.Calamity().voidOfExtinction))
|
||||
float improvedDamage = baseDoTValue * player.Calamity().playerBaneDebuffDamage;
|
||||
if (improvedDamage > baseDoTValue && (player.Calamity().abaddon || player.Calamity().apollyon))
|
||||
{
|
||||
baseDoTValue = (int)improvedDamage;
|
||||
}
|
||||
@@ -60,16 +61,20 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
|
||||
internal static void DrawEffects(PlayerDrawSet drawInfo, bool hasDebuffResistance = false)
|
||||
{
|
||||
// This shouldn't be on players, like ever
|
||||
Player Player = drawInfo.drawPlayer;
|
||||
Vector3 light = Color.Lavender.ToVector3();
|
||||
Lighting.AddLight(Player.Center, light * 2);
|
||||
Player player = drawInfo.drawPlayer;
|
||||
Vector3 light = baneColor1.ToVector3();
|
||||
Lighting.AddLight(player.Center, light);
|
||||
|
||||
if (Main.rand.NextBool(6))
|
||||
float sine = (float)Math.Sin((Main.GlobalTimeWrappedHourly * 9.0f) / MathHelper.Pi);
|
||||
if (Main.rand.NextBool(20))
|
||||
{
|
||||
Dust dust = Dust.NewDustPerfect(Player.Calamity().RandomDebuffVisualSpot, ModContent.DustType<LightDust>(), new Vector2(0, Main.rand.NextFloat(-3f, -5f)) + Player.velocity, 0, default, hasDebuffResistance ? 1.1f : 1.6f);
|
||||
dust.noGravity = true;
|
||||
dust.color = Color.PaleTurquoise;
|
||||
bool start = !Main.rand.NextBool(4);
|
||||
Vector2 baneVel = Vector2.UnitY * Main.rand.NextFloat(-0.5f, -1.5f) * (Main.rand.NextBool(5) ? 2 : 1) + player.velocity * 0.35f;
|
||||
Vector2 banePos = player.Center + Main.rand.NextVector2Circular(3, 8) + (Vector2.UnitY * 14) + Vector2.UnitY * ((1 - sine) * 2.3f);
|
||||
Particle baneRunes = new BaneParticle(banePos, baneVel, false, 55, 1f, start ? baneColor1 : baneColor2, start ? baneColor2 : baneColor1, Vector2.One, true, Main.rand.NextBool(3) ? Main.rand.NextFloat(-0.2f, 0.2f) : 0, 0.95f, MathHelper.PiOver2 * Main.rand.Next(4 + 1), sineRate: Main.rand.NextFloat(0.2f, 1f), sineIntensity: Main.rand.Next(14, 19 + 1));
|
||||
GeneralParticleHandler.SpawnParticle(baneRunes);
|
||||
if (Main.rand.NextBool())
|
||||
baneRunes.DrawLayer = Enums.GeneralDrawLayer.BeforeNPCs;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,25 +83,28 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Texture2D bloom = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomRingAngled").Value;
|
||||
Texture2D center = ModContent.Request<Texture2D>("CalamityMod/Particles/BloomCircle").Value;
|
||||
Vector2 drawPosition = npc.Center - Main.screenPosition;
|
||||
Color color = Color.Turquoise;
|
||||
Color color2 = Color.Orange;
|
||||
Color color = baneColor1;
|
||||
Color color2 = baneColor2;
|
||||
float maxSizeMult = 10f;
|
||||
float widthMult = MathF.Pow(Utils.Remap(npc.width, 10, 500, 1f, maxSizeMult), 0.8f);
|
||||
float widthMult = MathF.Pow(Utils.Remap(npc.width, 10, 500, 1f, maxSizeMult, false), 0.8f);
|
||||
float sine = (float)Math.Sin((Main.GlobalTimeWrappedHourly * 9.0f) / MathHelper.Pi);
|
||||
float sine2 = (float)Math.Sin((Main.GlobalTimeWrappedHourly * 11.0f) / MathHelper.Pi);
|
||||
float randSize = Main.rand.NextFloat(0.82f, 1.08f);
|
||||
|
||||
float clockSine = (float)Math.Sin((float)Math.Pow(Utils.GetLerpValue(0, 110, ((int)(Main.GlobalTimeWrappedHourly * 60) % 120)), 5));
|
||||
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
float sizeMult = (i == 0 ? 1 : 0.8f);
|
||||
float colorMult = (i == 0 ? 1 : 0.7f);
|
||||
Main.EntitySpriteDraw(bloom, drawPosition + (Vector2.UnitY * npc.height / 2f) + Vector2.UnitY * ((1 - sine) * 2.3f), null, Color.Lerp(color, Color.White, i * 0.7f) with { A = 0 } * colorMult, 0, bloom.Size() / 2, new Vector2((sine * 0.09f + 1.2f) * widthMult, 0.9f) * 0.18f * MathF.Pow(randSize, 0.3f), SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(center, drawPosition + (Vector2.UnitY * npc.height / 2f) + Vector2.UnitY * ((1 - sine2) * 3.3f), null, Color.Lerp(color2, Color.White, i * 0.7f) with { A = 0 } * colorMult, 0, center.Size() / 2, new Vector2((sine2 * 0.09f + 1.2f) * widthMult, 0.6f) * 0.18f * randSize, SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(bloom, drawPosition + (Vector2.UnitY * npc.height / 2f) + Vector2.UnitY * ((1 - sine) * 2.3f * MathF.Pow(widthMult, 0.55f)), null, Color.Lerp(color2, Color.White, i * 0.7f) with { A = 0 } * colorMult, 0, bloom.Size() / 2, new Vector2((sine * 0.09f + 1.2f) * widthMult, 0.9f) * 0.18f * MathF.Pow(randSize, 0.3f) * npc.Calamity().baneVisual, SpriteEffects.None);
|
||||
Main.EntitySpriteDraw(center, drawPosition + (Vector2.UnitY * npc.height / 2f) + Vector2.UnitY * ((1 - sine2) * 3.3f * MathF.Pow(widthMult, 0.55f)), null, Color.Lerp(color, Color.White, i * 0.7f) with { A = 0 } * colorMult, 0, center.Size() / 2, new Vector2((sine2 * 0.09f + 1.2f) * widthMult, 0.6f) * 0.18f * randSize * npc.Calamity().baneVisual, SpriteEffects.None);
|
||||
}
|
||||
|
||||
if (Main.rand.NextBool(13))
|
||||
|
||||
int chance = (int)(13 + 40 * (1 - npc.Calamity().baneVisual));
|
||||
if (Main.rand.NextBool(chance))
|
||||
{
|
||||
bool start = Main.rand.NextBool();
|
||||
bool start = !Main.rand.NextBool(4);
|
||||
Vector2 baneVel = Vector2.UnitY * Main.rand.NextFloat(-0.5f, -1.5f) * widthMult * (Main.rand.NextBool(5) ? 2 : 1) + npc.velocity * 0.35f;
|
||||
Vector2 banePos = npc.Center + Main.rand.NextVector2Circular(3 * widthMult, 8) + (Vector2.UnitY * npc.height / 3f) + Vector2.UnitY * ((1 - sine) * 2.3f);
|
||||
Particle baneRunes = new BaneParticle(banePos, baneVel, false, 55, 1f * MathF.Pow(widthMult, 0.45f), start ? color : color2, start ? color2 : color, Vector2.One, true, Main.rand.NextBool(3) ? Main.rand.NextFloat(-0.2f, 0.2f) : 0, 0.95f, MathHelper.PiOver2 * Main.rand.Next(4 + 1), sineRate: Main.rand.NextFloat(0.2f, 1f), sineIntensity: Main.rand.Next(14, 19 + 1) * widthMult);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@@ -962,7 +962,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool abaddon = false;
|
||||
public int abaddonCooldown = 0;
|
||||
public bool abaddonEffectVisual = false;
|
||||
public float abaddonDebuffDamage = 0;
|
||||
public float playerBaneDebuffDamage = 0;
|
||||
|
||||
public bool aeroStone = false;
|
||||
public bool lifejelly = false;
|
||||
@@ -1035,7 +1035,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool IsFirstDashFrame = true;
|
||||
public int fallingBootVelCheckTimer = 0;
|
||||
public bool voidOfCalamity = false;
|
||||
public bool voidOfExtinction = false;
|
||||
public bool apollyon = false;
|
||||
public bool eArtifact = false;
|
||||
public bool dArtifact = false;
|
||||
public bool auricSArtifact = false;
|
||||
@@ -2462,7 +2462,7 @@ namespace CalamityMod.CalPlayer
|
||||
crawCarapace = false;
|
||||
baroclaw = false;
|
||||
voidOfCalamity = false;
|
||||
voidOfExtinction = false;
|
||||
apollyon = false;
|
||||
eArtifact = false;
|
||||
dArtifact = false;
|
||||
auricSArtifact = false;
|
||||
@@ -2657,6 +2657,7 @@ namespace CalamityMod.CalPlayer
|
||||
armorCrunch = false;
|
||||
crumble = false;
|
||||
irradiated = false;
|
||||
bane = false;
|
||||
brimstoneFlames = false;
|
||||
witheredDebuff = false;
|
||||
absorberAffliction = false;
|
||||
@@ -3143,6 +3144,7 @@ namespace CalamityMod.CalPlayer
|
||||
armorCrunch = false;
|
||||
crumble = false;
|
||||
irradiated = false;
|
||||
bane = false;
|
||||
brimstoneFlames = false;
|
||||
witheredDebuff = false;
|
||||
absorberAffliction = false;
|
||||
@@ -5002,6 +5004,13 @@ namespace CalamityMod.CalPlayer
|
||||
else
|
||||
scionsCurioDebuffDamage = 0;
|
||||
|
||||
if (Player.Calamity().abaddon || Player.Calamity().apollyon)
|
||||
{
|
||||
Player.Calamity().playerBaneDebuffDamage = (1 + Player.GetTotalCritChance(Player.GetBestClass()) * 0.01f * (Player.Calamity().apollyon ? Apollyon.critScaling : Abaddon.critScaling));
|
||||
}
|
||||
else
|
||||
Player.Calamity().playerBaneDebuffDamage = 0;
|
||||
|
||||
// True melee damage from various vanilla equipment placed here.
|
||||
|
||||
// Titan Glove and ALL upgrades.
|
||||
|
||||
@@ -656,14 +656,9 @@ namespace CalamityMod.CalPlayer
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
#region Abaddon and VoE effects
|
||||
if (Player.Calamity().abaddon)
|
||||
target.Calamity().abaddonEffected = true;
|
||||
else if (target.Calamity().abaddonEffected)
|
||||
target.Calamity().abaddonEffected = false;
|
||||
|
||||
if (Player.Calamity().voidOfExtinction)
|
||||
if (Player.Calamity().apollyon)
|
||||
{
|
||||
target.Calamity().voidOfExtinctionEffected = true;
|
||||
target.Calamity().apollyonEffected = true;
|
||||
// Check here for the amount of debuffs on enemy
|
||||
int numOfDebuffs = 0;
|
||||
for (int index = 0; index < target.buffType.Length; index++)
|
||||
@@ -673,11 +668,15 @@ namespace CalamityMod.CalPlayer
|
||||
if (debuffData != null)
|
||||
numOfDebuffs++;
|
||||
}
|
||||
modifiers.CritDamage += VoidofExtinction.critDamageBoostPerDebuff * numOfDebuffs;
|
||||
modifiers.CritDamage += Apollyon.critDamageBoostPerDebuff * numOfDebuffs;
|
||||
}
|
||||
else if (Player.Calamity().abaddon)
|
||||
target.Calamity().abaddonEffected = true;
|
||||
else
|
||||
{
|
||||
target.Calamity().abaddonEffected = false;
|
||||
target.Calamity().apollyonEffected = false;
|
||||
}
|
||||
else if (target.Calamity().voidOfExtinctionEffected)
|
||||
target.Calamity().voidOfExtinctionEffected = false;
|
||||
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
@@ -685,9 +684,9 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
NPC npc = target;
|
||||
int debuffSpreadProj = ModContent.ProjectileType<DebuffSpreadEffect>();
|
||||
if ((Player.Calamity().abaddon || Player.Calamity().voidOfExtinction) && (npc.Calamity().abaddonEffected || npc.Calamity().voidOfExtinctionEffected) && hit.Crit && abaddonCooldown == 0 && Player.ownedProjectileCounts[debuffSpreadProj] == 0)
|
||||
if ((Player.Calamity().abaddon || Player.Calamity().apollyon) && (npc.Calamity().abaddonEffected || npc.Calamity().apollyonEffected) && hit.Crit && abaddonCooldown == 0 && Player.ownedProjectileCounts[debuffSpreadProj] == 0)
|
||||
{
|
||||
int maxTargetNum = npc.Calamity().voidOfExtinctionEffected ? 10 : 6;
|
||||
int maxTargetNum = npc.Calamity().apollyonEffected ? 10 : 6;
|
||||
Projectile.NewProjectile(Player.GetSource_FromThis(), npc.Center, Vector2.Zero, debuffSpreadProj, 0, 0, Player.whoAmI, 0, npc.whoAmI, maxTargetNum);
|
||||
abaddonCooldown = -1; // Prevents multiple projectiles hitting on the same frame from spawning multiple of these
|
||||
}
|
||||
|
||||
@@ -122,6 +122,7 @@ namespace CalamityMod.CalPlayer
|
||||
ApplyDoTDebuff(demonicFlames, 33, purity); // Never inflicted on the player
|
||||
ApplyDoTDebuff(laceration, 36, purity);
|
||||
ApplyDoTDebuff(daybroken, 40, purity);
|
||||
ApplyDoTDebuff(bane, 40, purity);
|
||||
ApplyDoTDebuff(nightwither, 40, purity);
|
||||
ApplyDoTDebuff(holyFlames, 40, purity);
|
||||
ApplyDoTDebuff(voidfrost, 40, purity);
|
||||
|
||||
@@ -2241,8 +2241,6 @@ namespace CalamityMod.CalPlayer
|
||||
raiderSoundCooldown--;
|
||||
if (astralStarRainCooldown > 0)
|
||||
astralStarRainCooldown--;
|
||||
if (AbaddonCooldown > 0)
|
||||
AbaddonCooldown--;
|
||||
if (VoidCooldown > 0)
|
||||
VoidCooldown--;
|
||||
if (ursaSergeantCooldown > 0)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.WorldBuilding;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
@@ -224,7 +224,8 @@ namespace CalamityMod.DataStructures
|
||||
.CombineWith(ApplyScalingToStatModifer(cnpc.ActiveElectricDebuffMultiplier, ElectricDebuffScaling)
|
||||
))))
|
||||
:
|
||||
cnpc.ActiveTypelessDebuffMultiplier;
|
||||
// Bane doesn't scale with debuff multipliers. This should be implemented as a default feature you can apply to debuffs at some point.
|
||||
buffType == ModContent.BuffType<Bane>() ? cnpc.ActiveTypelessDebuffMultiplier : StatModifier.Default;
|
||||
|
||||
//Ensure at least 25% effectiveness
|
||||
if (totalScaling.Multiplicative <= 0.25f)
|
||||
@@ -257,7 +258,8 @@ namespace CalamityMod.DataStructures
|
||||
.CombineWith(ApplyScalingToStatModifer(cnpc.ActiveElectricDebuffMultiplier, ElectricDebuffScaling)
|
||||
))))
|
||||
:
|
||||
cnpc.ActiveTypelessDebuffMultiplier;
|
||||
// Bane doesn't scale with debuff multipliers. This should be implemented as a default feature you can apply to debuffs at some point.
|
||||
buffType == ModContent.BuffType<Bane>() ? cnpc.ActiveTypelessDebuffMultiplier : StatModifier.Default;
|
||||
|
||||
//Ensure at least 25% effectiveness
|
||||
if (totalScaling.Multiplicative <= 0.25f)
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().abaddonDebuffDamage)).ToString());
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().playerBaneDebuffDamage)).ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,12 +4,12 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class VoidofExtinction : ModItem, ILocalizedModType
|
||||
[LegacyName("VoidofExtinction")]
|
||||
public class Apollyon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
@@ -37,14 +37,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.voidOfExtinction = true;
|
||||
modPlayer.apollyon = true;
|
||||
modPlayer.abaddonEffectVisual = !hideVisual;
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().abaddonDebuffDamage)).ToString());
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().playerBaneDebuffDamage)).ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 798 B |
@@ -1007,6 +1007,16 @@ ArmorCrunch: {
|
||||
ItemTooltip: Damage Reduction is 15% less effective
|
||||
}
|
||||
|
||||
Bane: {
|
||||
DisplayName: Bane
|
||||
Description: An ancient curse envelops you
|
||||
ItemTooltip:
|
||||
'''
|
||||
Typeless - Variable DPS
|
||||
Does not scale with debuff multipliers
|
||||
'''
|
||||
}
|
||||
|
||||
Crumbling: {
|
||||
DisplayName: Crumbling
|
||||
Description: Your armor is damaged
|
||||
@@ -1701,8 +1711,3 @@ CnidarianSummonTagBuff: {
|
||||
DisplayName: Cnidarian Summon Tag Buff
|
||||
Description: you are not seeing this
|
||||
}
|
||||
|
||||
Bane: {
|
||||
DisplayName: Bane
|
||||
Description: Mods.CalamityMod.Buffs.Bane.Description
|
||||
}
|
||||
@@ -152,6 +152,17 @@ AngelTreads: {
|
||||
'''
|
||||
}
|
||||
|
||||
Apollyon: {
|
||||
DisplayName: Apollyon
|
||||
Tooltip:
|
||||
'''
|
||||
Critical strikes curse enemies with [cbuff:CalamityMod/Bane] that greatly scales off of your critical strike chance
|
||||
When critically hit, enemies spread all debuffs they are afflicted with that are weaker than your [cbuff:CalamityMod/Bane] to nearby enemies
|
||||
Critical strikes deal an additional 3% damage per debuff on the enemy
|
||||
Current [cbuff:CalamityMod/Bane] damage: [DAMAGE] DPS
|
||||
'''
|
||||
}
|
||||
|
||||
AquaticEmblem: {
|
||||
DisplayName: Aquatic Emblem
|
||||
Tooltip:
|
||||
@@ -2058,17 +2069,6 @@ VoidofCalamity: {
|
||||
'''
|
||||
}
|
||||
|
||||
VoidofExtinction: {
|
||||
DisplayName: Void of Extinction
|
||||
Tooltip:
|
||||
'''
|
||||
Critical strikes curse enemies with [cbuff:CalamityMod/Bane] that greatly scales off of your critical strike chance
|
||||
When critically hit, enemies spread all debuffs they are afflicted with that are weaker than your [cbuff:CalamityMod/Bane] to nearby enemies
|
||||
Critical strikes deal an additional 3% damage per debuff on the enemy
|
||||
Current [cbuff:CalamityMod/Bane] damage: [DAMAGE] DPS
|
||||
'''
|
||||
}
|
||||
|
||||
VoltaicJelly: {
|
||||
DisplayName: Voltaic Jelly
|
||||
Tooltip:
|
||||
|
||||
@@ -291,6 +291,7 @@ namespace CalamityMod.NPCs
|
||||
public bool irradiated = false;
|
||||
public double irradiatedContactBoost = 1.5;
|
||||
public bool bane = false;
|
||||
public float baneVisual = 0;
|
||||
public bool brimstoneFlames = false;
|
||||
public bool demonicFlames = false;
|
||||
public int demonicFlamesBonusDamage = 0;
|
||||
@@ -303,7 +304,7 @@ namespace CalamityMod.NPCs
|
||||
public int antlionCloudDebuffTimer = 0;
|
||||
public bool scionsCurioEffected = false;
|
||||
public bool abaddonEffected = false;
|
||||
public bool voidOfExtinctionEffected = false;
|
||||
public bool apollyonEffected = false;
|
||||
public int warbannerBurnTime = 0; // Determines the rate that the enemy is damaged
|
||||
public int warbannerBurnTimer = 0; // The duration of the debuff
|
||||
public int warbannerBurnStacks = 0; // The stacks increase how fast the debuff hits
|
||||
@@ -571,6 +572,7 @@ namespace CalamityMod.NPCs
|
||||
myClone.irradiated = irradiated;
|
||||
myClone.irradiatedContactBoost = irradiatedContactBoost;
|
||||
myClone.bane = bane;
|
||||
myClone.baneVisual = baneVisual;
|
||||
myClone.brimstoneFlames = brimstoneFlames;
|
||||
myClone.demonicFlames = demonicFlames;
|
||||
myClone.demonicFlamesBonusDamage = demonicFlamesBonusDamage;
|
||||
@@ -583,7 +585,7 @@ namespace CalamityMod.NPCs
|
||||
myClone.antlionCloudDebuffTimer = antlionCloudDebuffTimer;
|
||||
myClone.scionsCurioEffected = scionsCurioEffected;
|
||||
myClone.abaddonEffected = abaddonEffected;
|
||||
myClone.voidOfExtinctionEffected = voidOfExtinctionEffected;
|
||||
myClone.apollyonEffected = apollyonEffected;
|
||||
myClone.warbannerBurnTime = warbannerBurnTime;
|
||||
myClone.warbannerBurnTimer = warbannerBurnTimer;
|
||||
myClone.warbannerBurnStacks = warbannerBurnStacks;
|
||||
@@ -3215,6 +3217,11 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
warbannerBurnTime--;
|
||||
}
|
||||
float fadeSpeed = 0.15f;
|
||||
if (bane)
|
||||
baneVisual = MathHelper.Lerp(baneVisual, 1, fadeSpeed);
|
||||
else if (baneVisual > 0)
|
||||
baneVisual = MathHelper.Lerp(baneVisual, 0, fadeSpeed);
|
||||
|
||||
if (veriumDoomTimer > 0)
|
||||
veriumDoomTimer--;
|
||||
@@ -4670,7 +4677,7 @@ namespace CalamityMod.NPCs
|
||||
if (astralInfection)
|
||||
AstralInfectionDebuff.DrawEffects(npc, ref drawColor);
|
||||
|
||||
if (bane)
|
||||
if (bane || baneVisual > 0.05f)
|
||||
Bane.DrawEffects(npc, ref drawColor);
|
||||
|
||||
// Brimstone Flames and Demonshade Enrage set bonus share the same visual effects
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -105,7 +104,6 @@ namespace CalamityMod.Particles
|
||||
}
|
||||
public override void CustomDraw(SpriteBatch spriteBatch)
|
||||
{
|
||||
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Particles/BaneParticleGlow").Value;
|
||||
int frameWidth = 18;
|
||||
int frameHeight = 18;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
public List<int> listNPCs = new List<int>();
|
||||
public NPC lastNPC;
|
||||
public int minCooldown = 48;
|
||||
public static Color startingColor = Color.Turquoise;
|
||||
public static Color startingColor = Bane.baneColor2;
|
||||
public Color mainColor = Color.White;
|
||||
public Color subColor = startingColor;
|
||||
public Color extraColor = Color.White;
|
||||
@@ -48,11 +48,8 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
Projectile.Center = npc.Center;
|
||||
mainColor = Color.White;
|
||||
|
||||
bool strong = npc.Calamity().voidOfExtinctionEffected;
|
||||
bool strong = npc.Calamity().apollyonEffected;
|
||||
float areaOfEffect = (strong ? 1400 : 800);
|
||||
Color color1 = Color.Crimson;
|
||||
Color color2 = Color.OrangeRed;
|
||||
Color color3 = Color.Red;
|
||||
int debuffTime = (strong ? 180 : 120);
|
||||
int startDir = Main.rand.NextBool() ? 1 : -1;
|
||||
|
||||
@@ -78,10 +75,10 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
|
||||
if (targeted != null)
|
||||
{
|
||||
targeted.Calamity().voidOfExtinctionEffected = npc.Calamity().voidOfExtinctionEffected;
|
||||
targeted.Calamity().apollyonEffected = npc.Calamity().apollyonEffected;
|
||||
targeted.Calamity().abaddonEffected = npc.Calamity().abaddonEffected;
|
||||
|
||||
float bestDamage = Owner.Calamity().abaddonDebuffDamage;
|
||||
float bestDamage = Owner.Calamity().playerBaneDebuffDamage;
|
||||
int heat = 0;
|
||||
Color heatClr = Color.OrangeRed;
|
||||
int sick = 0;
|
||||
@@ -120,7 +117,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
if (debuffData.WaterDebuffScaling > 0) { mainColor = Color.Lerp(mainColor, waterClr, 0.65f); water++; }
|
||||
if (new List<int> { heat, sick, cold, shock, water }.Max() == 0)
|
||||
{
|
||||
mainColor = Color.Orange;
|
||||
mainColor = Bane.baneColor1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -162,10 +159,6 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
return;
|
||||
}
|
||||
|
||||
Color colorAgain = Main.rand.NextBool() ? color2 : color1;
|
||||
Particle spark2 = new CustomSpark(npc.Center, Vector2.Zero, "CalamityMod/Particles/BloomCircle", false, 18, 0.55f, colorAgain * (Owner.Calamity().abaddonEffectVisual ? 1 : 0.3f), Vector2.One, true, true, glowOpacity: 0.85f);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
if (Owner.Calamity().abaddonCooldown <= 0)
|
||||
Owner.Calamity().abaddonCooldown = minCooldown * 2;
|
||||
spreadCount--;
|
||||
@@ -256,7 +249,7 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
{
|
||||
Vector2 pos = start;
|
||||
if (u == 0) pos = end;
|
||||
Particle spark3 = new CustomSpark(pos, Vector2.Zero, "CalamityMod/Particles/BloomCircle", false, 18, u != 0 ? 0.7f : 0.55f, mainColor * (Owner.Calamity().abaddonEffectVisual ? 1 : 0.3f), Vector2.One, true, true, glowOpacity: 0.85f);
|
||||
Particle spark3 = new CustomSpark(pos, Vector2.Zero, "CalamityMod/Particles/BloomCircle", false, 18, u != 0 ? 0.7f : 0.55f, (u == 0 ? subColor : mainColor) * (Owner.Calamity().abaddonEffectVisual ? 1 : 0.3f), Vector2.One, true, true, glowOpacity: 0.85f);
|
||||
GeneralParticleHandler.SpawnParticle(spark3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user