Removed Aquatic Dissolution

This commit is contained in:
Dominic committed 2022-06-11 19:57:04 -05:00
1 parent 742ea84565
commit 9feb573198
4 files changed
-164

No files matched your search

-73
View File
@@ -1,73 +0,0 @@
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Weapons.Melee
{
public class AquaticDissolution : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aquatic Dissolution");
Tooltip.SetDefault("Fires whaling spears from the sky that bounce off tiles");
SacrificeTotal = 1;
}
public override void SetDefaults()
{
Item.width = 50;
Item.damage = 125;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 16;
Item.useTime = 16;
Item.useTurn = true;
Item.useStyle = ItemUseStyleID.Swing;
Item.knockBack = 6f;
Item.UseSound = SoundID.Item60;
Item.autoReuse = true;
Item.height = 72;
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
Item.rare = ItemRarityID.Purple;
Item.Calamity().customRarity = CalamityRarity.Turquoise;
Item.shoot = ModContent.ProjectileType<OceanBeam>();
Item.shootSpeed = 12f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
position = Main.MouseWorld;
for (int x = 0; x < 3; x++)
{
Projectile.NewProjectile(source, new Vector2(position.X + (float)Main.rand.Next(-30, 31), position.Y - 600f), new Vector2(0f, 8f), type, damage, knockback, Main.myPlayer, 0f, 0f);
}
return false;
}
public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(5))
{
int num250 = Dust.NewDust(new Vector2((float)hitbox.X, (float)hitbox.Y), hitbox.Width, hitbox.Height, 33, (float)(player.direction * 2), 0f, 150, new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB), 1.3f);
Main.dust[num250].velocity *= 0.2f;
Main.dust[num250].noGravity = true;
}
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient<Mariana>().
AddIngredient<UelibloomBar>(7).
AddIngredient<LifeAlloy>(2).
AddIngredient<Lumenyl>(20).
AddIngredient<Tenebris>(5).
AddTile(TileID.LunarCraftingStation).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

-91
View File
@@ -1,91 +0,0 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
namespace CalamityMod.Projectiles.Melee
{
public class OceanBeam : ModProjectile
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Spear");
Main.projFrames[Projectile.type] = 4;
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 4;
ProjectileID.Sets.TrailingMode[Projectile.type] = 0;
}
public override void SetDefaults()
{
Projectile.width = 14;
Projectile.height = 14;
Projectile.friendly = true;
Projectile.extraUpdates = 2;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 8;
Projectile.penetrate = 3;
Projectile.timeLeft = 600;
Projectile.DamageType = DamageClass.Melee;
Projectile.tileCollide = false;
}
public override void AI()
{
Projectile.frameCounter++;
if (Projectile.frameCounter > 24)
{
Projectile.frame++;
Projectile.frameCounter = 0;
}
if (Projectile.frame > 3)
{
Projectile.frame = 0;
}
Projectile.rotation = Projectile.velocity.ToRotation();
Projectile.ai[1] += 1f;
if (Projectile.ai[1] >= 60f)
Projectile.tileCollide = true;
}
public override bool PreDraw(ref Color lightColor)
{
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
return false;
}
public override bool OnTileCollide(Vector2 oldVelocity)
{
Projectile.penetrate--;
if (Projectile.penetrate <= 0)
{
Projectile.Kill();
}
else
{
if (Projectile.velocity.X != oldVelocity.X)
{
Projectile.velocity.X = -oldVelocity.X;
}
if (Projectile.velocity.Y != oldVelocity.Y)
{
Projectile.velocity.Y = -oldVelocity.Y;
}
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
}
return false;
}
public override void Kill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item10, Projectile.position);
for (int k = 0; k < 3; k++)
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 56, Projectile.oldVelocity.X * 0.25f, Projectile.oldVelocity.Y * 0.25f);
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 245, Projectile.oldVelocity.X * 0.25f, Projectile.oldVelocity.Y * 0.25f);
}
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B