- there was no walk="true" flag on toads.
This commit is contained in:
Enno Rehling 2004-09-04 11:58:58 +00:00
parent eb10f3e429
commit 35434e97fe
2 changed files with 10 additions and 6 deletions

View File

@ -63,11 +63,12 @@ make_locale(const char * name)
} }
static FILE * s_debug = NULL; static FILE * s_debug = NULL;
static char * s_logfile = NULL;
void void
debug_language(const char * log) debug_language(const char * log)
{ {
s_debug = fopen(log, "w+"); s_logfile = strdup(log);
} }
const char * const char *
@ -109,10 +110,13 @@ locale_string(const locale * lang, const char * key)
if (lang!=default_locale) { if (lang!=default_locale) {
s = locale_string(default_locale, key); s = locale_string(default_locale, key);
} }
if (s_logfile) {
s_debug = s_debug?s_debug:fopen(s_logfile, "w+");
if (s_debug) { if (s_debug) {
fprintf(s_debug, "%s;%s;%s\n", key, lang->name, s); fprintf(s_debug, "%s;%s;%s\n", key, lang->name, s);
fflush(s_debug); fflush(s_debug);
locale_setstring((struct locale*)lang, key, s); locale_setstring((struct locale*)lang, key, s);
}
} }
return s; return s;
} }

View File

@ -575,7 +575,7 @@
<attack type="3" damage="1d1"/> <attack type="3" damage="1d1"/>
<attack type="4" damage="1d1"/> <attack type="4" damage="1d1"/>
</race> </race>
<race name="toad" magres="0.200000" maxaura="1.000000" regaura="1.000000" recruitcost="50" maintenance="0" weight="100" capacity="50" speed="1.000000" hp="10" ac="0" damage="1d2" unarmedattack="-2" unarmeddefense="-2" attackmodifier="0" defensemodifier="0" cannotmove="yes" playerrace="yes" giveitem="yes" giveperson="yes" giveunit="yes" getitem="yes"> <race name="toad" magres="0.200000" maxaura="1.000000" regaura="1.000000" recruitcost="50" maintenance="0" weight="100" capacity="50" speed="1.000000" hp="10" ac="0" damage="1d2" unarmedattack="-2" unarmeddefense="-2" attackmodifier="0" defensemodifier="0" cannotmove="yes" playerrace="yes" giveitem="yes" giveperson="yes" giveunit="yes" getitem="yes" walk="yes">
<ai splitsize="1" attackrandom="yes" learn="yes"/> <ai splitsize="1" attackrandom="yes" learn="yes"/>
<skill name="sk_alchemy" modifier="-10"/> <skill name="sk_alchemy" modifier="-10"/>
<skill name="sk_crossbow" modifier="-10"/> <skill name="sk_crossbow" modifier="-10"/>