Hello world

This commit is contained in:
2022-11-03 22:48:29 +01:00
parent c73a88f392
commit 76561273a8
16 changed files with 219 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
using Terraria.GameContent.Creative;
using Terraria.ID;
using Terraria.ModLoader;
using YHTMod.Projectiles.Weapons;
namespace YHTMod.Items;
public class CopperSwordOnAStick : ModItem {
public override void SetStaticDefaults() {
DisplayName.SetDefault("Copper Sword On A Stick");
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
}
public override void SetDefaults() {
Item.DamageType = DamageClass.Melee;
Item.damage = 3;
Item.width = 80;
Item.height = 80;
Item.useTime = 7;
Item.useAnimation = 7;
Item.useStyle = ItemUseStyleID.Rapier;
Item.knockBack = 2f;
Item.value = 100;
Item.rare = ItemRarityID.White;
Item.UseSound = SoundID.Item1;
Item.autoReuse = true;
Item.crit = 1;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.shootSpeed = 1f;
Item.shoot = ModContent.ProjectileType<CopperSwordOnAStickProjectile>();
}
public override void AddRecipes() {
CreateRecipe()
.AddIngredient(ItemID.Wood, 5)
.AddIngredient(ItemID.Rope, 5)
.AddIngredient(ItemID.CopperShortsword)
.Register();
}
}