Fix damage typing for melee weapons. Fixed recursion bug. Cleaned up variables.

This commit is contained in:
Big Duckie
2022-07-05 13:01:34 -06:00
parent 776678b4c3
commit b206463290
15 changed files with 191 additions and 173 deletions
@@ -14,6 +14,7 @@ public class StonePlatedKatana : ModItem
public override void SetDefaults()
{
Item.damage = 8;
Item.DamageType = DamageClass.Melee;
Item.crit = 8;
Item.width = 56;
Item.height = 66;
@@ -29,10 +30,10 @@ public class StonePlatedKatana : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedSwordParts>());
val.AddIngredient(ItemID.StoneBlock, 12);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
val.Register();
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedSwordParts>());
recipe.AddIngredient(ItemID.StoneBlock, 12);
recipe.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
recipe.Register();
}
}