adapt ooga booga C# code style

This commit is contained in:
2025-12-22 17:59:47 +01:00
parent ee06338f22
commit 50d7f8b0d2
11 changed files with 69 additions and 51 deletions
+9 -5
View File
@@ -5,12 +5,15 @@ 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;
@@ -31,11 +34,12 @@ 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();
}
}
}