movedbroken water filter out of the accessories folder

This commit is contained in:
termigator1359 committed 2020-08-10 23:10:41 -04:00
1 parent 41dd0038bf
commit ae79b0fa71
5 files changed
+4 -47

No files matched your search

@@ -3,7 +3,7 @@ using CalamityMod.Items.Materials;
using Terraria.ID;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
namespace CalamityMod.Items
{
public class BrokenWaterFilter : ModItem
{
@@ -28,7 +28,8 @@ namespace CalamityMod.Items.Accessories
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<SulfuricScale>(), 20);
recipe.AddRecipeGroup("IronBar", 10);
recipe.AddIngredient(ItemID.IronBar, 10);
recipe.anyIronBar = true;
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
recipe.AddRecipe();
File renamed without changes.

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 497 B

@@ -1,45 +0,0 @@
using CalamityMod.Dusts;
using CalamityMod.Items.SummonItems.Invasion;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Typeless
{
public class BrokenWaterFilterSpewer : ModProjectile
{
public const int TimeLeft = 180;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Star");
}
public override void SetDefaults()
{
projectile.width = 24;
projectile.height = 24;
projectile.friendly = true;
projectile.timeLeft = TimeLeft;
projectile.penetrate = 1;
projectile.tileCollide = false;
}
public override void AI()
{
projectile.velocity *= 0.98f;
int totalTearCount = projectile.wet ? 5 : 3;
totalTearCount++;
if (projectile.ai[0]++ >= TimeLeft / totalTearCount)
{
Item.NewItem(projectile.Center, ModContent.ItemType<CausticTear>());
projectile.ai[0] = 0;
}
projectile.rotation = projectile.rotation.AngleTowards(MathHelper.PiOver4, 0.04f);
Dust dust = Dust.NewDustPerfect(projectile.Center, (int)CalamityDusts.SulfurousSeaAcid);
dust.velocity = Vector2.One.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(1.5f, 3f);
dust.noGravity = true;
dust.scale = 1.3f;
}
public override bool CanDamage() => false;
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 497 B

+1
View File
@@ -1,3 +1,4 @@
using CalamityMod.Items;
using CalamityMod.Items.Accessories;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.Tiles.Abyss;