Removes Raiders Glory
This commit is contained in:
1 parent
77a967c5af
commit
07e526f9b7
2 files changed
-50
No files matched your search
@@ -1,50 +0,0 @@
|
||||
using Terraria.DataStructures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public class RaidersGlory : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Raider's Glory");
|
||||
Tooltip.SetDefault("Fires ichor arrows with increased velocity\n" +
|
||||
"These arrows also cause enemies to drop more money");
|
||||
SacrificeTotal = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 44;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.width = 50;
|
||||
Item.height = 22;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2.25f;
|
||||
Item.value = Item.buyPrice(0, 36, 0, 0);
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ProjectileID.PurificationPowder;
|
||||
Item.shootSpeed = 15f;
|
||||
Item.useAmmo = AmmoID.Arrow;
|
||||
Item.Calamity().canFirePointBlankShots = true;
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 10;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(source, position.X, position.Y, velocity.X, velocity.Y, ProjectileID.IchorArrow, damage, knockback, player.whoAmI);
|
||||
Main.projectile[projectile].extraUpdates++;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 565 B |
Reference in new issue
Block a user