if someone complains about totality, I'm ripping their head off

This commit is contained in:
termigator1359 committed 2020-04-20 13:25:50 -04:00
1 parent 2d28b380ee
commit 904df31e0c
5 files changed
+59 -10

No files matched your search

+3 -3
View File
@@ -12,10 +12,10 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Consecrated Water");
Tooltip.SetDefault("Throws a holy flask of water that explodes into a sacred flame pillar on death\n" +
Tooltip.SetDefault("The bottle is surprisingly dusty\n" +
"Throws a holy flask of water that explodes into a sacred flame pillar on death\n" +
"The pillar is destroyed if there's no tiles below it\n" +
"Stealth strikes creates three flame pillars instead of one on impact\n" +
"'The bottle is surprisingly dusty'");
"Stealth strikes create three flame pillars instead of one on impact");
}
public override void SafeSetDefaults()
+2 -2
View File
@@ -23,9 +23,9 @@ Stealth strikes leak tar as they fly");
item.damage = 55;
item.noMelee = true;
item.noUseGraphic = true;
item.useAnimation = 24;
item.useAnimation = 28;
item.useStyle = 1;
item.useTime = 24;
item.useTime = 28;
item.knockBack = 5f;
item.UseSound = SoundID.Item106;
item.autoReuse = true;
+46
View File
@@ -0,0 +1,46 @@
using CalamityMod.Dusts;
using Microsoft.Xna.Framework;
using System.IO;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Rogue
{
public class TotalMeltdown : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Explosion");
ProjectileID.Sets.MinionShot[projectile.type] = true;
Main.projFrames[projectile.type] = 13;
}
public override void SetDefaults()
{
projectile.width = 44;
projectile.height = 48;
projectile.friendly = true;
projectile.Calamity().rogue = true;
projectile.penetrate = -1;
projectile.timeLeft = Main.projFrames[projectile.type] * 5;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 30;
}
public override void AI()
{
if (projectile.timeLeft % 5f == 4f)
projectile.frame++;
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
target.AddBuff(BuffID.OnFire, 300);
}
public override void OnHitPvp(Player target, int damage, bool crit)
{
target.AddBuff(BuffID.OnFire, 300);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+8 -5
View File
@@ -1,8 +1,8 @@
using Microsoft.Xna.Framework;
using System;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using System;
namespace CalamityMod.Projectiles.Rogue
{
@@ -53,9 +53,12 @@ namespace CalamityMod.Projectiles.Rogue
public override void Kill(int timeLeft)
{
Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0.0f);
//projectile.usesLocalNPCImmunity = true;
//projectile.localNPCHitCooldown = 10;
//glass-pot break sound
Main.PlaySound(13, (int) projectile.position.X, (int) projectile.position.Y, 1, 1f, 0f);
int meltdown = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType<TotalMeltdown>(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0f);
Main.projectile[meltdown].Center = projectile.Center; //makes it centered because it's not without this
Vector2 vector2 = new Vector2(20f, 20f);
for (int index = 0; index < 5; ++index)
Dust.NewDust(projectile.Center - vector2 / 2f, (int) vector2.X, (int) vector2.Y, 191, 0.0f, 0.0f, 0, Color.Red, 1f);
@@ -87,7 +90,7 @@ namespace CalamityMod.Projectiles.Rogue
}
value15.Normalize();
value15 *= (float)Main.rand.Next(70, 101) * 0.1f;
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType<TotalityTar>(), (int)(projectile.damage * 0.6), 0f, Main.myPlayer, 0f, 0f);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType<TotalityTar>(), (int)(projectile.damage * 0.3), 0f, Main.myPlayer, 0f, 0f);
}
}
}