diff options
author | gumi <git@gumi.ca> | 2020-08-13 22:49:14 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-08-13 22:49:14 -0400 |
commit | 675ee9cb27ee1ef50d43d3af60e12f80d427166c (patch) | |
tree | 3b2b88acd3119fffbe278848d8b243f9c1ca2b78 /npc | |
parent | d45df2527219f044265f8db7e8f7f7889f56a3a2 (diff) | |
download | serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.gz serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.bz2 serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.tar.xz serverdata-675ee9cb27ee1ef50d43d3af60e12f80d427166c.zip |
add the WarlordArmor recipe
Co-authored-by: Christopher Chay <2@hisfootsteps.net>
Diffstat (limited to 'npc')
-rw-r--r-- | npc/items/recipes.txt | 17 |
1 files changed, 11 insertions, 6 deletions
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; } |