Unicode WIP:

- i18n for more spells.
This commit is contained in:
Enno Rehling 2007-07-18 06:22:13 +00:00
parent 6fe368d790
commit d37f068104
2 changed files with 18 additions and 15 deletions

View File

@ -1855,7 +1855,7 @@ sp_treewalkexit(castorder *co)
int cast_level = co->level;
if (getplane(r) != get_astralplane()) {
cmistake(mage, co->order, 193, MSG_MAGIC);
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "spellfail_astralonly", ""));
return 0;
}
if (is_cursed(r->attribs, C_ASTRALBLOCK, 0)) {
@ -5394,7 +5394,6 @@ sp_enterastral(castorder *co)
int cast_level = co->level;
double power = co->force;
spellparameter *pa = co->par;
const spell *sp = co->sp;
switch(getplaneid(r)) {
case 0:
@ -5407,10 +5406,7 @@ sp_enterastral(castorder *co)
}
if (!rt) {
sprintf(buf, "%s in %s: 'ZAUBER %s': Es kann hier kein Kontakt zur "
"Astralwelt hergestellt werden.", unitname(mage),
regionname(mage->region, mage->faction), spell_name(sp, mage->faction->locale));
addmessage(r, mage->faction, buf, MSG_MAGIC, ML_MISTAKE);
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "feedback_no_astralregion", ""));
return 0;
}
@ -5494,7 +5490,6 @@ sp_pullastral(castorder *co)
int cast_level = co->level;
double power = co->force;
spellparameter *pa = co->par;
const spell *sp = co->sp;
switch (getplaneid(r)) {
case 1:
@ -5511,7 +5506,7 @@ sp_pullastral(castorder *co)
rl2 = rl2->next;
}
if (!rl2) {
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "spellfail::nocontact",
ADDMSG(&u->faction->msgs, msg_feedback(u, co->order, "spellfail::nocontact",
"target", rt));
free_regionlist(rl);
return 0;
@ -5519,10 +5514,7 @@ sp_pullastral(castorder *co)
free_regionlist(rl);
break;
default:
sprintf(buf, "%s in %s: 'ZAUBER %s': Dieser Zauber funktioniert "
"nur in der astralen Welt.", unitname(mage),
regionname(mage->region, mage->faction), spell_name(sp, mage->faction->locale));
addmessage(r, mage->faction, buf, MSG_MAGIC, ML_MISTAKE);
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "spellfail_astralonly", ""));
return 0;
}
@ -5756,7 +5748,7 @@ sp_fetchastral(castorder *co)
* regions. Only possible on the intersections of schemes */
region_list * rfind;
if (getplane(u->region) != get_astralplane()) {
cmistake(mage, co->order, 193, MSG_MAGIC);
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "spellfail_astralonly", ""));
continue;
}
if (rtl!=NULL) free_regionlist(rtl);

View File

@ -4773,7 +4773,7 @@
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Die Zielregion wurde nicht korrekt angegeben."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - Target region was supplied incorrectly."</text>
</message>
<message name="error193" section="errors">
<message name="spellfail_astralonly" section="errors">
<type>
<arg name="unit" type="unit"/>
<arg name="region" type="region"/>
@ -5850,6 +5850,7 @@
<text locale="fr">"$unit($unit) in $region($region): '$order($command)' - This unit cannot give anybody away."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - This unit cannot give anybody away."</text>
</message>
<message name="feedback_no_contact" section="errors">
<type>
<arg name="unit" type="unit"/>
@ -5858,9 +5859,19 @@
<arg name="target" type="unit"/>
</type>
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - $unit($target) hat keinen Kontakt mit uns aufgenommen."</text>
<text locale="fr">"$unit($unit) in $region($region): '$order($command)' - $unit($target) did not contact us."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - $unit($target) did not contact us."</text>
</message>
<message name="feedback_no_astralregion" section="errors">
<type>
<arg name="unit" type="unit"/>
<arg name="region" type="region"/>
<arg name="command" type="order"/>
</type>
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Es kann hier kein Kontakt zur Astralwelt aufgenommen werden."</text>
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - There is no connection to the astral plane."</text>
</message>
<message name="feedback_no_contact_resist" section="errors">
<type>
<arg name="unit" type="unit"/>