still cannot read potions, requirements, functions.

This commit is contained in:
Enno Rehling 2018-04-28 18:49:13 +02:00
parent e4a2b6cb35
commit 9d3385de97
1 changed files with 3 additions and 0 deletions

View File

@ -247,6 +247,7 @@ static void XMLCALL handle_resources(userdata *ud, const XML_Char *el, const XML
}
else if (xml_strcmp(el, "function") == 0) {
assert(rtype);
++ud->errors;
/* TODO */
}
else if (rtype->itype) {
@ -276,12 +277,14 @@ static void XMLCALL handle_resources(userdata *ud, const XML_Char *el, const XML
else if (xml_strcmp(el, "requirement") == 0) {
assert(itype->construction);
/* TODO */
++ud->errors;
}
else if (xml_strcmp(el, "luxury") == 0) {
rtype->ltype = new_luxurytype(itype, 0);
}
else if (xml_strcmp(el, "potion") == 0) {
/* TODO */
++ud->errors;
}
else if (xml_strcmp(el, "armor") == 0) {
handle_armor(ud, el, attr);