Files
CalamityModPublic/Projectiles/Typeless/BloodBomb.cs
T
Andrew Marheine f75d79ef4f 1 - Enemies no longer deal 20% less damage before your first boss is defeated.
2 - Endgame boss summons can now be used at any time.
3 - Alluvion and Monsoon are no longer rng.
4 - Post-ML Blood Moon enemies no longer scale up to absurd levels.
5 - Most hardmode enemies deal 25% less contact damage.
6 - Reduced the amount of extra damage post-ML dungeon enemies get.
7 - Nailhead nail projectiles deal the damage they're supposed to in expert mode.
8 - Most hardmode enemy projectiles (and Hoplite javelins) deal 35% less damage.
9 - Removed contact damage entirely from Snowman Gangsta, Snow Balla, Eyezor and Nailhead.
2021-03-21 13:55:26 -05:00

53 lines
1.9 KiB
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Projectiles.Typeless
{
public class BloodBomb : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Bomb");
}
public override void SetDefaults()
{
projectile.width = 20;
projectile.height = 20;
projectile.friendly = true;
projectile.penetrate = 1;
projectile.extraUpdates = 1;
projectile.timeLeft = 600;
}
public override void AI()
{
Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.4f / 255f, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0f / 255f);
if (projectile.localAI[0] == 0f)
{
Main.PlaySound(SoundID.Item, (int)projectile.position.X, (int)projectile.position.Y, 73);
projectile.localAI[0] += 1f;
}
for (int num457 = 0; num457 < 3; num457++)
{
int num458 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 5, 0f, 0f, 100, default, 1.2f);
Main.dust[num458].noGravity = true;
Main.dust[num458].velocity *= 0.5f;
Main.dust[num458].velocity += projectile.velocity * 0.1f;
}
}
public override void Kill(int timeLeft)
{
if (projectile.owner == Main.myPlayer)
{
Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<BloodBombExplosion>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
}
}
}
}