Fix damage typing for magic weapons. Renamed recipe variables for easier reading.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user