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
@@ -16,6 +16,7 @@ public class FusedWish : ModItem
public override void SetDefaults()
{
Item.damage = 160;
Item.DamageType = DamageClass.Magic;
Item.mana = 3;
Item.width = 80;
Item.height = 54;
@@ -39,10 +40,10 @@ public class FusedWish : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<FusedXmas>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 12);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<FusedXmas>());
recipe.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 12);
recipe.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
recipe.Register();
}
}
@@ -16,6 +16,7 @@ public class FusedXmas : ModItem
public override void SetDefaults()
{
Item.damage = 140;
Item.DamageType = DamageClass.Magic;
Item.mana = 3;
Item.width = 80;
Item.height = 52;
@@ -34,16 +35,15 @@ public class FusedXmas : ModItem
public override Vector2? HoldoutOffset()
{
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
return new Vector2(-2f, 2f);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<FusionNeedler>());
val.AddIngredient(ItemID.FragmentVortex, 12);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<FusionNeedler>());
recipe.AddIngredient(ItemID.FragmentVortex, 12);
recipe.AddTile(TileID.LunarCraftingStation);
recipe.Register();
}
}
@@ -16,6 +16,7 @@ public class FusionNeedler : ModItem
public override void SetDefaults()
{
Item.damage = 120;
Item.DamageType = DamageClass.Magic;
Item.mana = 3;
Item.width = 76;
Item.height = 44;
@@ -39,10 +40,10 @@ public class FusionNeedler : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Ranged.FusionDrivers.FusionDriver>());
val.AddIngredient(ItemID.Razorpine);
val.AddTile(TileID.AdamantiteForge);
val.Register();
Recipe recipe = CreateRecipe();
recipe.AddIngredient(ModContent.ItemType<Ranged.FusionDrivers.FusionDriver>());
recipe.AddIngredient(ItemID.Razorpine);
recipe.AddTile(TileID.AdamantiteForge);
recipe.Register();
}
}