Skip to content

Commit

Permalink
Internal code re-organization, added sell values
Browse files Browse the repository at this point in the history
  • Loading branch information
vizthex123 authored Sep 11, 2018
1 parent 3aa06b1 commit dc63d2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions Armor/CopperCoinChest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public override void SetDefaults()
item.width = 18;
item.height = 18;
item.value = 100;
item.defense = 5;
item.rare = 1;
item.defense = 4;
item.value = Item.sellPrice(0, 0, 2, 0);
}

public override bool IsArmorSet(Item head, Item body, Item legs)
Expand All @@ -39,7 +40,7 @@ public override void UpdateArmorSet(Player player)
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.GetItem("LargeCCoin"), 1);
recipe.AddIngredient(mod.GetItem("LargeCCoin"), 2);
recipe.AddIngredient(ItemID.CopperChainmail);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
Expand Down
4 changes: 3 additions & 1 deletion Armor/CopperCoinHelm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public override void SetDefaults()
item.width = 18;
item.height = 18;
item.value = 100;
item.defense = 3;
item.rare = 1;
item.defense = 2;
item.value = Item.sellPrice(0, 0, 1, 25);
}

public override bool IsArmorSet(Item head, Item body, Item legs)
Expand All @@ -40,6 +41,7 @@ public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.GetItem("LargeCCoin"), 1);
recipe.AddIngredient(mod.GetItem("CompressedCCoin"), 1);
recipe.AddIngredient(ItemID.CopperHelmet);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
Expand Down
5 changes: 3 additions & 2 deletions Armor/CopperCoinLegs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public override void SetDefaults()
item.width = 18;
item.height = 18;
item.value = 100;
item.rare = 1;
item.defense = 2;
item.defense = 3;
item.value = Item.sellPrice(0, 0, 1, 25);
}

public override bool IsArmorSet(Item head, Item body, Item legs)
Expand All @@ -40,6 +40,7 @@ public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(mod.GetItem("LargeCCoin"), 1);
recipe.AddIngredient(mod.GetItem("CompressedCCoin"), 1);
recipe.AddIngredient(ItemID.CopperGreaves);
recipe.AddTile(TileID.Anvils);
recipe.SetResult(this);
Expand Down

0 comments on commit dc63d2e

Please sign in to comment.