mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
configure a code style that is not completely cursed
This commit is contained in:
@@ -5,15 +5,12 @@ using YHTMod.Projectiles.Weapons;
|
||||
|
||||
namespace YHTMod.Items;
|
||||
|
||||
public class CopperSwordOnAStick : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
public class CopperSwordOnAStick : ModItem {
|
||||
public override void SetStaticDefaults() {
|
||||
CreativeItemSacrificesCatalog.Instance.SacrificeCountNeededByItemId[Type] = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
public override void SetDefaults() {
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.damage = 3;
|
||||
Item.width = 80;
|
||||
@@ -34,12 +31,11 @@ public class CopperSwordOnAStick : ModItem
|
||||
Item.shoot = ModContent.ProjectileType<CopperSwordOnAStickProjectile>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
public override void AddRecipes() {
|
||||
CreateRecipe()
|
||||
.AddIngredient(ItemID.Wood, 5)
|
||||
.AddIngredient(ItemID.Rope, 5)
|
||||
.AddIngredient(ItemID.CopperShortsword)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user