From 675ee9cb27ee1ef50d43d3af60e12f80d427166c Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 13 Aug 2020 22:49:14 -0400 Subject: add the WarlordArmor recipe Co-authored-by: Christopher Chay <2@hisfootsteps.net> --- npc/items/recipes.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'npc') diff --git a/npc/items/recipes.txt b/npc/items/recipes.txt index 4a9d0bad..b500bbf2 100644 --- a/npc/items/recipes.txt +++ b/npc/items/recipes.txt @@ -14,7 +14,7 @@ function script showRecipe { if (startswith(.@const$, "Craft")) { // infer the item constant from the craft constant .@recipe = getarg(0); - .@item = string_to_data(substr(5, getstrlen(.@const$) - 5)); + .@item = string_to_data(substr(.@const$, 5, getstrlen(.@const$) - 5)); } else { // infer the craft constant from the item constant .@recipe = string_to_data(sprintf("Craft%s", .@const$)); @@ -160,6 +160,16 @@ function read_smithery { 40, CottonCloth, 20, Coal, 1, SharpKnife); + showRecipe(CraftLegionIronArmor, LegionIronArmor, + 30, IronIngot, + 6, RotoniumIngot, + 40, Coal, + 1, Dagger); + showRecipe(WarlordArmor, + 11, RotoniumIngot, + 20, SilverIngot, + 50, Coal, + 1, Dagger); return; } @@ -225,11 +235,6 @@ function read_tailoring { 40, FluffyFur, 20, SilkCocoon, 1, Dagger); - showRecipe(CraftLegionIronArmor, LegionIronArmor, - 30, IronIngot, - 6, RotoniumIngot, - 40, Coal, - 1, Dagger); return; } -- cgit v1.2.3-70-g09d2