Fix damage typing for magic weapons. Renamed recipe variables for easier reading.

This commit is contained in:
Big Duckie
2022-07-05 12:36:34 -06:00
parent 65fb9177e9
commit 776678b4c3
18 changed files with 113 additions and 97 deletions
+12 -11
View File
@@ -15,6 +15,7 @@ public class Coalescence : ModItem
public override void SetDefaults()
{
Item.damage = 6;
Item.DamageType = DamageClass.Magic;
Item.noMelee = true;
Item.channel = true;
Item.mana = 5;
@@ -32,16 +33,16 @@ public class Coalescence : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.OminousBook>());
val.AddIngredient(ItemID.Diamond, 5);
val.AddIngredient(ItemID.Emerald, 5);
val.AddIngredient(ItemID.Sapphire, 5);
val.AddIngredient(ItemID.Ruby, 5);
val.AddIngredient(ItemID.Topaz, 5);
val.AddIngredient(ItemID.Amethyst, 5);
val.AddRecipeGroup("FabusMod:DemoniteBar", 10);
val.AddTile(TileID.Books);
val.Register();
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.OminousBook>());
recipe.AddIngredient(ItemID.Diamond, 5);
recipe.AddIngredient(ItemID.Emerald, 5);
recipe.AddIngredient(ItemID.Sapphire, 5);
recipe.AddIngredient(ItemID.Ruby, 5);
recipe.AddIngredient(ItemID.Topaz, 5);
recipe.AddIngredient(ItemID.Amethyst, 5);
recipe.AddRecipeGroup("FabusMod:DemoniteBar", 10);
recipe.AddTile(TileID.Books);
recipe.Register();
}
}