Files
CalamityModPublic/Projectiles/Boss/BrimstoneBall.cs
T
Andrew Marheine de49f1a3ff 1 - Fixed Third Sage healing for sure now.
2 - Reworked Cal Clone's AI completely.
3 - Reworked Cryogen's attacks to be cooler...get it?
4 - Malice Mode affects more things.
5 - Malice Mode can be used outside of Rev Mode.
6 - Wall of Flesh shoots a demon scythe from its mouth in rev+ when it belches out leeches.
7 - Made some Malice Mode bosses harder and some easier.
8 - Malice Mode increases certain projectile speeds by 25%.
9 - Malice Mode increases boss damage by 35%.
10 - Rev+ Golem falls faster.
11 - Golem Head hitbox is remaining fucked because I hate the glowmask code, I'm not touching it.
12 - Malice Mode bosses have increased timed DR.
2021-04-29 14:06:18 -05:00

46 lines
1.5 KiB
C#

using CalamityMod.Dusts;
using CalamityMod.Buffs.DamageOverTime;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class BrimstoneBall : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Brimstone Fireball");
}
public override void SetDefaults()
{
projectile.width = 16;
projectile.height = 16;
projectile.hostile = true;
projectile.penetrate = 1;
projectile.timeLeft = 300;
projectile.Calamity().affectedByMaliceModeVelocityMultiplier = true;
}
public override void AI()
{
projectile.rotation += 0.12f * projectile.direction;
Lighting.AddLight(projectile.Center, 0.25f, 0f, 0f);
for (int num468 = 0; num468 < 2; num468++)
{
Vector2 dspeed = -projectile.velocity * 0.7f;
int num469 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, (int)CalamityDusts.Brimstone, 0f, 0f, 150, default, 1.1f);
Main.dust[num469].noGravity = true;
Main.dust[num469].velocity = dspeed;
}
}
public override void OnHitPlayer(Player target, int damage, bool crit)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 120);
}
}
}