Flamethrower recipe and debuff changes

This commit is contained in:
sunny-raindrops committed 2026-03-31 11:14:35 -07:00
1 parent b17203c30e
commit c2ab968caa
3 files changed
+9 -3

No files matched your search

-1
View File
@@ -70,7 +70,6 @@ namespace CalamityMod.Items.Weapons.Ranged
AddIngredient(ItemID.Flamethrower).
AddIngredient<Meowthrower>().
AddIngredient<LivingShard>(12).
AddIngredient<EssenceofSunlight>(5).
AddTile(TileID.MythrilAnvil).
Register();
}
+6 -1
View File
@@ -108,7 +108,12 @@ namespace CalamityMod.Projectiles.Ranged
LightPower = MathHelper.Lerp(LightPower, lightPowerBelow, 0.15f);
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 240);
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
//Doze - Flamethrowers in vanilla are long debuff infliction tools (20 seconds of their debuff).
//I am applying this as the base for Cal flamethrowers, with shorter times being the exception instead of the rule
target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 1200);
}
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
{
modifiers.SourceDamage *= damageMult;
+3 -1
View File
@@ -107,7 +107,9 @@ namespace CalamityMod.Projectiles.Ranged
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(BuffID.Slimed, Empowered ? 480 : 180);
//Doze - Flamethrowers in vanilla are long debuff infliction tools (20 seconds of their debuff).
//I am applying this as the base for Cal flamethrowers, with shorter times being the exception instead of the rule
target.AddBuff(BuffID.Slimed, 1200);
if (Empowered)
{
Particle pulse2 = new DirectionalPulseRing(Projectile.Center, Vector2.Zero, SlimeColor, Vector2.One, 0f, 0f, 0.65f, 35);