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

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) { else if (xml_strcmp(el, "function") == 0) {
assert(rtype); assert(rtype);
++ud->errors;
/* TODO */ /* TODO */
} }
else if (rtype->itype) { 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) { else if (xml_strcmp(el, "requirement") == 0) {
assert(itype->construction); assert(itype->construction);
/* TODO */ /* TODO */
++ud->errors;
} }
else if (xml_strcmp(el, "luxury") == 0) { else if (xml_strcmp(el, "luxury") == 0) {
rtype->ltype = new_luxurytype(itype, 0); rtype->ltype = new_luxurytype(itype, 0);
} }
else if (xml_strcmp(el, "potion") == 0) { else if (xml_strcmp(el, "potion") == 0) {
/* TODO */ /* TODO */
++ud->errors;
} }
else if (xml_strcmp(el, "armor") == 0) { else if (xml_strcmp(el, "armor") == 0) {
handle_armor(ud, el, attr); handle_armor(ud, el, attr);