Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework;
- using Terraria;
- using Terraria.ID;
- using Terraria.ModLoader;
- namespace ConvertedWeapons.Items.Weapons
- {
- public class MIceBlade : ModItem
- {
- public override void SetStaticDefaults()
- {
- DisplayName.SetDefault("Ice Blade");
- }
- public override void SetDefaults()
- {
- item.CloneDefaults(ItemID.IceBlade);
- item.melee = false;
- item.magic = true;
- item.autoReuse = true;
- item.useTime = 15;
- item.useAnimation = 15;
- item.mana = 8;
- item.damage = 10;
- }
- public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
- {
- int p = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, item.owner);
- Projectile pro = Main.projectile[p];
- pro.melee = false;
- pro.magic = true;
- return false;
- }
- public override void AddRecipes()
- {
- ModRecipe recipe = new ModRecipe(mod);
- recipe.AddIngredient(ItemID.IceBlade);
- recipe.AddIngredient(mod, "MageConverter");
- recipe.AddTile(TileID.Anvils);
- recipe.SetResult(this);
- recipe.AddRecipe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement