forked from github/server
Bug 1982: disable the clone spell.
This commit is contained in:
parent
21e226b068
commit
3f021b21cd
|
@ -25,7 +25,7 @@
|
||||||
<entry spell="cerddor_destroymagic" level="8" />
|
<entry spell="cerddor_destroymagic" level="8" />
|
||||||
<entry spell="cerddorfumbleshield" level="5" />
|
<entry spell="cerddorfumbleshield" level="5" />
|
||||||
<entry spell="chaosrow" level="8" />
|
<entry spell="chaosrow" level="8" />
|
||||||
<entry spell="clone" level="9" />
|
<!-- <entry spell="clone" level="9" /> -->
|
||||||
<entry spell="coldfront" level="8" />
|
<entry spell="coldfront" level="8" />
|
||||||
<entry spell="combatrust" level="6" />
|
<entry spell="combatrust" level="6" />
|
||||||
<entry spell="combat_speed" level="9" />
|
<entry spell="combat_speed" level="9" />
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<entry spell="readmind" level="7" />
|
<entry spell="readmind" level="7" />
|
||||||
<entry spell="gooddreams" level="8" />
|
<entry spell="gooddreams" level="8" />
|
||||||
<entry spell="illaundestroymagic" level="8" />
|
<entry spell="illaundestroymagic" level="8" />
|
||||||
<entry spell="clone" level="9" />
|
<!-- <entry spell="clone" level="9" /> -->
|
||||||
<entry spell="bad_dreams" level="10" />
|
<entry spell="bad_dreams" level="10" />
|
||||||
<entry spell="mindblast" level="11" />
|
<entry spell="mindblast" level="11" />
|
||||||
<entry spell="create_dreameye" level="14" />
|
<entry spell="create_dreameye" level="14" />
|
||||||
|
|
|
@ -79,13 +79,13 @@
|
||||||
<!-- Traumbilder entwirren -->
|
<!-- Traumbilder entwirren -->
|
||||||
<resource name="aura" amount="6" cost="level"/>
|
<resource name="aura" amount="6" cost="level"/>
|
||||||
</spell>
|
</spell>
|
||||||
|
<!-- Seelenkopie, disabled version 3.20, Bug 1982
|
||||||
<spell name="clone" rank="5">
|
<spell name="clone" rank="5">
|
||||||
<!-- Seelenkopie -->
|
|
||||||
<resource name="aura" amount="100" cost="fixed"/>
|
<resource name="aura" amount="100" cost="fixed"/>
|
||||||
<resource name="permaura" amount="20" cost="fixed"/>
|
<resource name="permaura" amount="20" cost="fixed"/>
|
||||||
<resource name="dragonblood" amount="5" cost="fixed"/>
|
<resource name="dragonblood" amount="5" cost="fixed"/>
|
||||||
<resource name="silk" amount="20" cost="fixed"/>
|
<resource name="silk" amount="20" cost="fixed"/>
|
||||||
</spell>
|
</spell> -->
|
||||||
<spell name="bad_dreams" rank="5" far="true">
|
<spell name="bad_dreams" rank="5" far="true">
|
||||||
<!-- Schlechte Träume -->
|
<!-- Schlechte Träume -->
|
||||||
<resource name="aura" amount="90" cost="fixed"/>
|
<resource name="aura" amount="90" cost="fixed"/>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<entry spell="cerddorfumbleshield" level="5" />
|
<entry spell="cerddorfumbleshield" level="5" />
|
||||||
<entry spell="chaosrow" level="8" />
|
<entry spell="chaosrow" level="8" />
|
||||||
<entry spell="chaossuction" level="14" />
|
<entry spell="chaossuction" level="14" />
|
||||||
<entry spell="clone" level="9" />
|
<!-- <entry spell="clone" level="9" /> -->
|
||||||
<entry spell="coldfront" level="8" />
|
<entry spell="coldfront" level="8" />
|
||||||
<entry spell="cold_protection" level="3" />
|
<entry spell="cold_protection" level="3" />
|
||||||
<entry spell="combatrust" level="6" />
|
<entry spell="combatrust" level="6" />
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<entry spell="shadowknights" level="1" />
|
<entry spell="shadowknights" level="1" />
|
||||||
<entry spell="sparkledream" level="1" />
|
<entry spell="sparkledream" level="1" />
|
||||||
<entry spell="puttorest" level="2" />
|
<entry spell="puttorest" level="2" />
|
||||||
<entry spell="clone" level="9" />
|
<!-- <entry spell="clone" level="9" /> -->
|
||||||
<entry spell="create_roi" level="6" />
|
<entry spell="create_roi" level="6" />
|
||||||
<entry spell="earn_silver#illaun" level="1" />
|
<entry spell="earn_silver#illaun" level="1" />
|
||||||
<entry spell="create_aots" level="6" />
|
<entry spell="create_aots" level="6" />
|
||||||
|
|
|
@ -446,12 +446,13 @@
|
||||||
<resource name="permaura" amount="10" cost="fixed"/>
|
<resource name="permaura" amount="10" cost="fixed"/>
|
||||||
<resource name="toadslime" amount="1" cost="fixed"/>
|
<resource name="toadslime" amount="1" cost="fixed"/>
|
||||||
</spell>
|
</spell>
|
||||||
<spell name="clone" rank="5">
|
<!-- Seelenkopie, disabled version 3.20, Bug 1982
|
||||||
|
<spell name="clone" rank="5">
|
||||||
<resource name="aura" amount="100" cost="fixed"/>
|
<resource name="aura" amount="100" cost="fixed"/>
|
||||||
<resource name="permaura" amount="20" cost="fixed"/>
|
<resource name="permaura" amount="20" cost="fixed"/>
|
||||||
<resource name="dragonblood" amount="5" cost="fixed"/>
|
<resource name="dragonblood" amount="5" cost="fixed"/>
|
||||||
<resource name="lifepotion" amount="5" cost="fixed"/>
|
<resource name="lifepotion" amount="5" cost="fixed"/>
|
||||||
</spell>
|
</spell> -->
|
||||||
<spell name="drain_skills" rank="5" combat="2">
|
<spell name="drain_skills" rank="5" combat="2">
|
||||||
<resource name="aura" amount="4" cost="fixed"/>
|
<resource name="aura" amount="4" cost="fixed"/>
|
||||||
</spell>
|
</spell>
|
||||||
|
|
|
@ -54,11 +54,12 @@ static int read_seenspells(variant *var, void *owner, struct gamedata *data)
|
||||||
READ_TOK(store, token, sizeof(token));
|
READ_TOK(store, token, sizeof(token));
|
||||||
while (token[0]) {
|
while (token[0]) {
|
||||||
spell *sp = find_spell(token);
|
spell *sp = find_spell(token);
|
||||||
if (!sp) {
|
if (sp) {
|
||||||
log_info("read_seenspells: could not find spell '%s'\n", token);
|
selist_push(&ql, sp);
|
||||||
return AT_READ_FAIL;
|
}
|
||||||
|
else {
|
||||||
|
log_info("read_seenspells: could not find spell '%s'\n", token);
|
||||||
}
|
}
|
||||||
selist_push(&ql, sp);
|
|
||||||
READ_TOK(store, token, sizeof(token));
|
READ_TOK(store, token, sizeof(token));
|
||||||
}
|
}
|
||||||
var->v = ql;
|
var->v = ql;
|
||||||
|
@ -70,8 +71,8 @@ static bool cb_write_spell(void *data, void *more) {
|
||||||
storage *store = (storage *)more;
|
storage *store = (storage *)more;
|
||||||
WRITE_TOK(store, sp->sname);
|
WRITE_TOK(store, sp->sname);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
write_seenspells(const variant *var, const void *owner, struct storage *store)
|
write_seenspells(const variant *var, const void *owner, struct storage *store)
|
||||||
{
|
{
|
||||||
|
|
|
@ -108,8 +108,8 @@ struct locale *crtag_locale(void) {
|
||||||
static const char *crtag(const char *key)
|
static const char *crtag(const char *key)
|
||||||
{
|
{
|
||||||
const char *result;
|
const char *result;
|
||||||
result = LOC(crtag_locale(), key);
|
result = locale_string(crtag_locale(), key, false);
|
||||||
return result;
|
return result ? result : key;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* translation table
|
* translation table
|
||||||
|
@ -849,11 +849,17 @@ void cr_output_unit(stream *out, const faction * f,
|
||||||
pzTmp = get_racename(u->attribs);
|
pzTmp = get_racename(u->attribs);
|
||||||
if (pzTmp) {
|
if (pzTmp) {
|
||||||
const char *pzRace = locale_string(lang, mkname("race", pzTmp), false);
|
const char *pzRace = locale_string(lang, mkname("race", pzTmp), false);
|
||||||
pzTmp = pzRace ? translate(pzRace, LOC(lang, pzRace)) : pzTmp;
|
if (pzRace) {
|
||||||
stream_printf(out, "\"%s\";Typ\n", pzTmp);
|
pzTmp = pzRace;
|
||||||
|
}
|
||||||
|
pzRace = translate(pzTmp, locale_string(lang, pzTmp, false));
|
||||||
|
if (!pzRace) {
|
||||||
|
pzRace = pzTmp;
|
||||||
|
}
|
||||||
|
stream_printf(out, "\"%s\";Typ\n", pzRace);
|
||||||
if (u->faction == f && fval(u_race(u), RCF_SHAPESHIFTANY)) {
|
if (u->faction == f && fval(u_race(u), RCF_SHAPESHIFTANY)) {
|
||||||
pzRace = rc_name_s(u_race(u), NAME_PLURAL);
|
pzRace = rc_name_s(u_race(u), NAME_PLURAL);
|
||||||
stream_printf(out, "\"%s\";wahrerTyp\n", pzTmp);
|
stream_printf(out, "\"%s\";wahrerTyp\n", pzRace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -12,5 +12,8 @@ IF exist build-vs%VSVERSION% goto HAVEDIR
|
||||||
mkdir build-vs%VSVERSION%
|
mkdir build-vs%VSVERSION%
|
||||||
:HAVEDIR
|
:HAVEDIR
|
||||||
cd build-vs%VSVERSION%
|
cd build-vs%VSVERSION%
|
||||||
|
IF NOT EXIST CMakeCache.txt GOTO NOCACHE
|
||||||
|
DEL CMakeCache.txt
|
||||||
|
:NOCACHE
|
||||||
"%CMAKE_ROOT%\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%SRCDIR%/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
"%CMAKE_ROOT%\bin\cmake.exe" -G "Visual Studio %VSVERSION%" -DCMAKE_PREFIX_PATH="%LUA_DEV%;%WIN32_DEV%" -DCMAKE_MODULE_PATH="%SRCDIR%/cmake/Modules" -DCMAKE_SUPPRESS_REGENERATION=TRUE ..
|
||||||
PAUSE
|
PAUSE
|
||||||
|
|
Loading…
Reference in New Issue