renamed ink bomb projectile
This commit is contained in:
1 parent
18b66f52b0
commit
8bf396b0fb
5 files changed
+6
-9
No files matched your search
@@ -6098,7 +6098,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (bannerNPCType == ModContent.NPCType<Cnidrion>())
|
||||
reduceDamage = true;
|
||||
}
|
||||
else if (proj.type == ModContent.ProjectileType<Projectiles.Enemy.InkBomb>() || proj.type == ModContent.ProjectileType<InkPoisonCloud>() || proj.type == ModContent.ProjectileType<InkPoisonCloud2>() || proj.type == ModContent.ProjectileType<InkPoisonCloud3>())
|
||||
else if (proj.type == ModContent.ProjectileType<InkBombHostile>() || proj.type == ModContent.ProjectileType<InkPoisonCloud>() || proj.type == ModContent.ProjectileType<InkPoisonCloud2>() || proj.type == ModContent.ProjectileType<InkPoisonCloud3>())
|
||||
{
|
||||
if (bannerNPCType == ModContent.NPCType<ColossalSquid>())
|
||||
reduceDamage = true;
|
||||
|
||||
@@ -28,9 +28,5 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.inkBomb = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
@@ -395,7 +396,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
damage = 55;
|
||||
}
|
||||
Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 111);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, ModContent.ProjectileType<Projectiles.Enemy.InkBomb>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(npc.Center.X, npc.Center.Y + 60, 0f, 2f, ModContent.ProjectileType<InkBombHostile>(), damage, 0f, Main.myPlayer, 0f, 0f);
|
||||
}
|
||||
npc.rotation = npc.velocity.X * 0.05f;
|
||||
npc.velocity *= 0.975f;
|
||||
|
||||
@@ -5,7 +5,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Enemy
|
||||
{
|
||||
public class InkBomb : ModProjectile
|
||||
public class InkBombHostile : ModProjectile
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
if (projectile.velocity.Y == 0f && projectile.velocity.X != 0f)
|
||||
{
|
||||
projectile.velocity.X = projectile.velocity.X * 0.97f;
|
||||
if ((double)projectile.velocity.X > -0.01 && (double)projectile.velocity.X < 0.01)
|
||||
if (projectile.velocity.X > -0.01f && projectile.velocity.X < 0.01f)
|
||||
{
|
||||
projectile.velocity.X = 0f;
|
||||
projectile.netUpdate = true;
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Enemy
|
||||
Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
|
||||
vector15.Normalize();
|
||||
vector15 *= (float)Main.rand.Next(50, 401) * 0.01f;
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType<InkPoisonCloud>() + Main.rand.Next(3), (int)((double)projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1));
|
||||
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType<InkPoisonCloud>() + Main.rand.Next(3), (int)(projectile.damage * 0.66), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1));
|
||||
}
|
||||
}
|
||||
projectile.position.X = projectile.position.X + (float)(projectile.width / 2);
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 330 B |
Reference in new issue
Block a user