version 1.5 | | version 1.6 |
---|
| | |
t->index = 0; | | t->index = 0; |
t->transmute = 0; | | t->transmute = 0; |
t->yield=0; | | t->yield=0; |
| | t->diff=0; |
| | t->exp=0; |
t->keycode = 0; | | t->keycode = 0; |
t->title = NULL; | | t->title = NULL; |
t->arch_name = NULL; | | t->arch_name = NULL; |
| | |
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)) { |
| | formula->exp = (uint16)value; |
| | } |
| | else if (sscanf(cp, "diff %d", &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; |
| | |
fprintf(logfile, "\tSkill Required: %s", formula->skill); | | fprintf(logfile, "\tSkill Required: %s", formula->skill); |
if (formula->cauldron != NULL) | | if (formula->cauldron != NULL) |
fprintf(logfile, "\tCauldron: %s\n", formula->cauldron); | | fprintf(logfile, "\tCauldron: %s\n", formula->cauldron); |
| | fprintf(logfile, "\tDifficulty: %d\t Exp: %d\n", formula->diff, |
| | formula->exp); |
} | | } |
} else | | } else |
LOG(llevError,"Can't find archetype:%s for formula %s\n", string, | | LOG(llevError,"Can't find archetype:%s for formula %s\n", string, |