From e3ac8241043fac26ab041789c80eb44f17fbadbc Mon Sep 17 00:00:00 2001 From: kaetemi Date: Mon, 28 Jun 2021 15:05:01 +0800 Subject: [PATCH] Simplify crafted rule for sitem name parser --- .../extract_r2_required/scheme_sitem_parser.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/ryzom/tools/extract_r2_required/scheme_sitem_parser.py b/ryzom/tools/extract_r2_required/scheme_sitem_parser.py index afb90e8f8..b25558041 100644 --- a/ryzom/tools/extract_r2_required/scheme_sitem_parser.py +++ b/ryzom/tools/extract_r2_required/scheme_sitem_parser.py @@ -18,16 +18,6 @@ scheme = { "kar": "karavan", "b": "tribe", "hb": "high tribe", - "cf": "crafted fyros", - "cm": "crafted matis", - "ct": "crafted tryker", - "cz": "crafted zorai", - "cc": "crafted common", - "cr": "crafted refugee", # i cr a b a Refugee Boots - "ckam": "crafted kami", - "ckar": "crafted karavan", - "cb": "crafted tribe", - "chb": "crafted high tribe", }, { "a": "armor", @@ -166,6 +156,10 @@ scheme = { ], } +# c crafted +for k in scheme[""][1].copy(): + scheme[""][1]["c" + k] = "crafted " + scheme[""][1][k] + def addTags(sub, depth, tags): for i in range(len(tags) - 1, -1, -1): tag = tags[i]