forked from github/server
still cannot read potions, requirements, functions.
This commit is contained in:
parent
e4a2b6cb35
commit
9d3385de97
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue