Removed Arctic Arrows

This commit is contained in:
CongratsIsTrash committed 2024-02-21 11:41:26 -05:00
1 parent 47804ca94d
commit 4560ecb0f0
5 files changed
-118

No files matched your search

-41
View File
@@ -1,41 +0,0 @@
using CalamityMod.Items.Materials;
using CalamityMod.Projectiles.Ranged;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Ammo
{
public class ArcticArrow : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Ammo";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 99;
}
public override void SetDefaults()
{
Item.width = 22;
Item.height = 36;
Item.damage = 18;
Item.DamageType = DamageClass.Ranged;
Item.maxStack = 9999;
Item.consumable = true;
Item.knockBack = 1.5f;
Item.value = Item.sellPrice(copper: 12);
Item.rare = ItemRarityID.Pink;
Item.shoot = ModContent.ProjectileType<ArcticArrowProj>();
Item.shootSpeed = 13f;
Item.ammo = AmmoID.Arrow;
}
public override void AddRecipes()
{
CreateRecipe(250).
AddIngredient<CryonicBar>().
AddTile(TileID.IceMachine).
Register();
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

@@ -1,8 +1,3 @@
ArcticArrow: {
DisplayName: Arctic Arrow
Tooltip: Freezes enemies for a short time
}
AstralSolution: {
DisplayName: Astral Solution
Tooltip:
@@ -10,7 +10,6 @@ Aquashard.DisplayName: Aquashard
AquashardSplit.DisplayName: Aquashard
ArcherfishRing.DisplayName: Archerfish Ring
ArcherfishShot.DisplayName: Water Round
ArcticArrowProj.DisplayName: Arctic Arrow
AstralCannonProjectile.DisplayName: Astral Crystal
AstralRound.DisplayName: Astral Round
AstralSandgun.DisplayName: Astral Sandgun
-71
View File
@@ -1,71 +0,0 @@
using CalamityMod.Buffs.StatDebuffs;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
namespace CalamityMod.Projectiles.Ranged
{
public class ArcticArrowProj : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Ranged";
public override string Texture => "CalamityMod/Items/Ammo/ArcticArrow";
public override void SetDefaults()
{
Projectile.width = 10;
Projectile.height = 10;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Ranged;
Projectile.arrow = true;
Projectile.penetrate = 1;
Projectile.timeLeft = 600;
Projectile.aiStyle = ProjAIStyleID.Arrow;
Projectile.coldDamage = true;
Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration;
}
public override void AI()
{
Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2;
if (Main.rand.NextBool(5))
{
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 67, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
}
}
public override bool OnTileCollide(Vector2 oldVelocity)
{
Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height);
SoundEngine.PlaySound(SoundID.Dig, Projectile.position);
return true;
}
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item27, Projectile.position);
Projectile.position.X = Projectile.position.X + (float)(Projectile.width / 2);
Projectile.position.Y = Projectile.position.Y + (float)(Projectile.height / 2);
Projectile.width = 20;
Projectile.height = 20;
Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2);
Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2);
for (int i = 0; i < 10; i++)
{
int dust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 67, 0f, 0f, 100, default, 2f);
Main.dust[dust].velocity *= 3f;
if (Main.rand.NextBool())
{
Main.dust[dust].scale = 0.5f;
Main.dust[dust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
}
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
target.AddBuff(ModContent.BuffType<GlacialState>(), 30);
}
}
}