version 1.6 | | version 1.7 |
---|
| | |
if (!strncmp(cp, "Object", 6)) { | | if (!strncmp(cp, "Object", 6)) { |
formula=get_empty_formula(); | | formula=get_empty_formula(); |
formula->title = add_string(strchr(cp,' ') + 1); | | formula->title = add_string(strchr(cp,' ') + 1); |
} | | } else if (!strncmp(cp, "keycode", 7)) { |
else if (!strncmp(cp, "keycode", 7)) { | | |
formula->keycode = add_string(strchr(cp,' ') + 1); | | formula->keycode = add_string(strchr(cp,' ') + 1); |
} | | } else if (sscanf(cp, "trans %d", &value)) { |
else if (sscanf(cp, "trans %d", &value)) { | | |
formula->transmute = (uint16) value; | | formula->transmute = (uint16) value; |
} | | } else if (sscanf(cp, "yield %d", &value)) { |
else if (sscanf(cp, "yield %d", &value)) { | | |
formula->yield = (uint16) value; | | formula->yield = (uint16) value; |
} | | } else if (sscanf(cp, "chance %d", &value)) { |
else if (sscanf(cp, "chance %d", &value)) { | | |
formula->chance = (uint16) value; | | formula->chance = (uint16) value; |
} | | } else if (sscanf(cp, "exp %d", &value)) { |
else if (sscanf(cp, "exp %d", &value)) { | | |
formula->exp = (uint16)value; | | formula->exp = (uint16)value; |
} | | } else if (sscanf(cp, "diff %d", &value)) { |
else if (sscanf(cp, "diff %d", &value)) { | | |
formula->diff = (uint16)value; | | formula->diff = (uint16)value; |
} | | } else if (!strncmp(cp, "ingred",6)) { |
else if (!strncmp(cp, "ingred",6)) { | | |
int numb_ingred = 1; | | int numb_ingred = 1; |
cp = strchr(cp,' ') + 1; | | cp = strchr(cp,' ') + 1; |
do { | | do { |