forked from github/server
some spell syntax definitions fixed
This commit is contained in:
parent
7de422f976
commit
8e91392ed7
4 changed files with 20 additions and 35 deletions
|
@ -407,6 +407,10 @@ report_spell(FILE * F, spell *sp, const struct locale * lang)
|
||||||
}
|
}
|
||||||
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
|
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
|
||||||
} else if (cp=='k') {
|
} else if (cp=='k') {
|
||||||
|
if (*params=='c') {
|
||||||
|
/* skip over a potential id */
|
||||||
|
++params;
|
||||||
|
}
|
||||||
for (targetp=targets;targetp->flag;++targetp) {
|
for (targetp=targets;targetp->flag;++targetp) {
|
||||||
if (sp->sptyp&targetp->flag) ++maxparam;
|
if (sp->sptyp&targetp->flag) ++maxparam;
|
||||||
}
|
}
|
||||||
|
@ -439,8 +443,10 @@ report_spell(FILE * F, spell *sp, const struct locale * lang)
|
||||||
bytes = (int)strlcpy(bufp, " )", size);
|
bytes = (int)strlcpy(bufp, " )", size);
|
||||||
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
|
if (wrptr(&bufp, &size, bytes)!=0) WARN_STATIC_BUFFER();
|
||||||
}
|
}
|
||||||
} else {
|
} else if (cp=='i' || cp=='c') {
|
||||||
const char * cstr = strchr(syntaxp, ':');
|
const char * cstr;
|
||||||
|
assert(syntaxp);
|
||||||
|
cstr = strchr(syntaxp, ':');
|
||||||
if (!cstr) {
|
if (!cstr) {
|
||||||
locp = LOC(lang, mkname("spellpar", syntaxp));
|
locp = LOC(lang, mkname("spellpar", syntaxp));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2008,23 +2008,6 @@ a_writevoid(const attrib * a, FILE * f)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
|
||||||
read_quoted(FILE * f, char *c, size_t size)
|
|
||||||
{
|
|
||||||
char * s = c;
|
|
||||||
do {
|
|
||||||
*s = (char) fgetc(f);
|
|
||||||
} while (*s!='"');
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
*s = (char) fgetc(f);
|
|
||||||
if (*s=='"') break;
|
|
||||||
if (s<c+size) ++s;
|
|
||||||
}
|
|
||||||
*s = 0;
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
a_readstring(attrib * a, FILE * F)
|
a_readstring(attrib * a, FILE * F)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7090,9 +7090,7 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_fumbleshield, NULL
|
(spell_f)sp_fumbleshield, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_TRANSFERAURA_DRUIDE, "transferauradruide", NULL,
|
SPL_TRANSFERAURA_DRUIDE, "transferauradruide", NULL, "aura", "ui",
|
||||||
"aura",
|
|
||||||
"ui",
|
|
||||||
M_DRUIDE, (UNITSPELL|ONSHIPCAST), 1, 6,
|
M_DRUIDE, (UNITSPELL|ONSHIPCAST), 1, 6,
|
||||||
{
|
{
|
||||||
{ "aura", 2, SPC_FIX },
|
{ "aura", 2, SPC_FIX },
|
||||||
|
@ -7451,9 +7449,7 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_combatrosthauch, NULL
|
(spell_f)sp_combatrosthauch, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_TRANSFERAURA_CHAOS, "transferaurachaos", NULL,
|
SPL_TRANSFERAURA_CHAOS, "transferaurachaos", NULL, "aura", "ui",
|
||||||
"aura",
|
|
||||||
"ui",
|
|
||||||
M_CHAOS, (UNITSPELL|ONSHIPCAST), 1, 7,
|
M_CHAOS, (UNITSPELL|ONSHIPCAST), 1, 7,
|
||||||
{
|
{
|
||||||
{ "aura", 2, SPC_FIX },
|
{ "aura", 2, SPC_FIX },
|
||||||
|
@ -7719,9 +7715,7 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_icastle, NULL
|
(spell_f)sp_icastle, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_TRANSFERAURA_TRAUM, "transferauratraum", NULL,
|
SPL_TRANSFERAURA_TRAUM, "transferauratraum", NULL, "aura", "ui",
|
||||||
"aura",
|
|
||||||
"ui",
|
|
||||||
M_TRAUM, (UNITSPELL|ONSHIPCAST), 1, 3,
|
M_TRAUM, (UNITSPELL|ONSHIPCAST), 1, 3,
|
||||||
{
|
{
|
||||||
{ "aura", 2, SPC_FIX },
|
{ "aura", 2, SPC_FIX },
|
||||||
|
@ -8056,8 +8050,7 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_hero, NULL
|
(spell_f)sp_hero, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_TRANSFERAURA_BARDE, "transfer_aura_song", NULL, NULL,
|
SPL_TRANSFERAURA_BARDE, "transfer_aura_song", NULL, "aura", "ui",
|
||||||
"ui",
|
|
||||||
M_BARDE, (UNITSPELL|ONSHIPCAST), 1, 5,
|
M_BARDE, (UNITSPELL|ONSHIPCAST), 1, 5,
|
||||||
{
|
{
|
||||||
{ "aura", 2, SPC_FIX },
|
{ "aura", 2, SPC_FIX },
|
||||||
|
@ -8449,9 +8442,7 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_leaveastral, NULL
|
(spell_f)sp_leaveastral, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_TRANSFERAURA_ASTRAL, "auratransfer", NULL,
|
SPL_TRANSFERAURA_ASTRAL, "auratransfer", NULL, "aura", "ui",
|
||||||
"aura",
|
|
||||||
"ui",
|
|
||||||
M_ASTRAL, (UNITSPELL|ONSHIPCAST), 1, 5,
|
M_ASTRAL, (UNITSPELL|ONSHIPCAST), 1, 5,
|
||||||
{
|
{
|
||||||
{ "aura", 1, SPC_FIX },
|
{ "aura", 1, SPC_FIX },
|
||||||
|
@ -8555,8 +8546,8 @@ static spelldata spelldaten[] =
|
||||||
(spell_f)sp_flying_ship, NULL
|
(spell_f)sp_flying_ship, NULL
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
SPL_DESTROY_MAGIC, "break_curse", NULL, NULL,
|
SPL_DESTROY_MAGIC, "break_curse", NULL, "spellid",
|
||||||
"kcc",
|
"kcc?",
|
||||||
M_ASTRAL, (FARCASTING | SPELLLEVEL | ONSHIPCAST | TESTCANSEE | ANYTARGET), 3, 7,
|
M_ASTRAL, (FARCASTING | SPELLLEVEL | ONSHIPCAST | TESTCANSEE | ANYTARGET), 3, 7,
|
||||||
{
|
{
|
||||||
{ "aura", 3, SPC_LEVEL },
|
{ "aura", 3, SPC_LEVEL },
|
||||||
|
|
|
@ -7493,6 +7493,11 @@
|
||||||
<text locale="en">aura</text>
|
<text locale="en">aura</text>
|
||||||
</string>
|
</string>
|
||||||
|
|
||||||
|
<string name="spellid">
|
||||||
|
<text locale="de">Zauber-ID</text>
|
||||||
|
<text locale="en">spellid</text>
|
||||||
|
</string>
|
||||||
|
|
||||||
<string name="direction">
|
<string name="direction">
|
||||||
<text locale="de">Richtung</text>
|
<text locale="de">Richtung</text>
|
||||||
<text locale="en">direction</text>
|
<text locale="en">direction</text>
|
||||||
|
|
Loading…
Reference in a new issue