From 1a75727c66154b2390fca257e975865642e2afdd Mon Sep 17 00:00:00 2001 From: gumi Date: Fri, 14 Aug 2020 10:21:26 -0400 Subject: add the SilkGloves recipe Co-authored-by: Christopher Chay <2@hisfootsteps.net> --- db/craft_db.conf | 32 ++++++++++++++++++++++++++++---- npc/items/recipes.txt | 3 ++- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/db/craft_db.conf b/db/craft_db.conf index 5720e127..6e4d9d61 100644 --- a/db/craft_db.conf +++ b/db/craft_db.conf @@ -55,10 +55,9 @@ craft_db: ( ******************************************************************************/ /* -TODO: allow ReturnCode to be a constant -FIXME: use a regex find-replace to change ReturnCode to the corresponding AegisName constants -// Name: "Craft([^"]+)"\n\tFlag: "([^"]+)"\n\tReturnCode: [0-9]+ -// Name: "Craft$1"\n\tFlag: "$2"\n\tReturnCode: "$1" +VSCode Regex to convert a ReturnCode to string: +Name: "Craft([^"]+)"\n\tFlag: "([^"]+)"\n\tReturnCode: [0-9]+ +Name: "Craft$1"\n\tFlag: "$2"\n\tReturnCode: "$1" */ /************** @@ -1153,6 +1152,31 @@ Boots: 700 --> 799 } Priority: 31 }, +{ + Id: 304 + Name: "CraftSilkGloves" + Flag: "CRAFT_TAILORING" + ReturnCode: "SilkGloves" + SourceItems: + ( + { + SilkCocoon: 55 + CottonCloth: 15 + FluffyFur: 7 + SharpKnife: 1 + }, + ) + CreateItems: + ( + { + SilkGloves: 1 + }, + ) + RequiredItems: { + RecipeBook: 1 + } + Priority: 39 +}, /************************** WEAPONS & TOOLS ************************************ ******************************************************************************** diff --git a/npc/items/recipes.txt b/npc/items/recipes.txt index 759ee59b..375b9892 100644 --- a/npc/items/recipes.txt +++ b/npc/items/recipes.txt @@ -205,7 +205,8 @@ function read_tailoring { showRecipe(ShortGloves, Armbands, CottonGloves, - BanditGloves); + BanditGloves, + SilkGloves); return; } -- cgit v1.2.3-70-g09d2