forked from github/server
Unicode WIP:
- i18n for more spells.
This commit is contained in:
parent
6fe368d790
commit
d37f068104
2 changed files with 18 additions and 15 deletions
|
@ -1855,7 +1855,7 @@ sp_treewalkexit(castorder *co)
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
|
|
||||||
if (getplane(r) != get_astralplane()) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
if (is_cursed(r->attribs, C_ASTRALBLOCK, 0)) {
|
if (is_cursed(r->attribs, C_ASTRALBLOCK, 0)) {
|
||||||
|
@ -5394,7 +5394,6 @@ sp_enterastral(castorder *co)
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
double power = co->force;
|
double power = co->force;
|
||||||
spellparameter *pa = co->par;
|
spellparameter *pa = co->par;
|
||||||
const spell *sp = co->sp;
|
|
||||||
|
|
||||||
switch(getplaneid(r)) {
|
switch(getplaneid(r)) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -5407,10 +5406,7 @@ sp_enterastral(castorder *co)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rt) {
|
if (!rt) {
|
||||||
sprintf(buf, "%s in %s: 'ZAUBER %s': Es kann hier kein Kontakt zur "
|
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "feedback_no_astralregion", ""));
|
||||||
"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);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5494,7 +5490,6 @@ sp_pullastral(castorder *co)
|
||||||
int cast_level = co->level;
|
int cast_level = co->level;
|
||||||
double power = co->force;
|
double power = co->force;
|
||||||
spellparameter *pa = co->par;
|
spellparameter *pa = co->par;
|
||||||
const spell *sp = co->sp;
|
|
||||||
|
|
||||||
switch (getplaneid(r)) {
|
switch (getplaneid(r)) {
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -5511,7 +5506,7 @@ sp_pullastral(castorder *co)
|
||||||
rl2 = rl2->next;
|
rl2 = rl2->next;
|
||||||
}
|
}
|
||||||
if (!rl2) {
|
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));
|
"target", rt));
|
||||||
free_regionlist(rl);
|
free_regionlist(rl);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -5519,10 +5514,7 @@ sp_pullastral(castorder *co)
|
||||||
free_regionlist(rl);
|
free_regionlist(rl);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sprintf(buf, "%s in %s: 'ZAUBER %s': Dieser Zauber funktioniert "
|
ADDMSG(&mage->faction->msgs, msg_feedback(mage, co->order, "spellfail_astralonly", ""));
|
||||||
"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);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5756,7 +5748,7 @@ sp_fetchastral(castorder *co)
|
||||||
* regions. Only possible on the intersections of schemes */
|
* regions. Only possible on the intersections of schemes */
|
||||||
region_list * rfind;
|
region_list * rfind;
|
||||||
if (getplane(u->region) != get_astralplane()) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
if (rtl!=NULL) free_regionlist(rtl);
|
if (rtl!=NULL) free_regionlist(rtl);
|
||||||
|
|
|
@ -4773,7 +4773,7 @@
|
||||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - Die Zielregion wurde nicht korrekt angegeben."</text>
|
<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>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - Target region was supplied incorrectly."</text>
|
||||||
</message>
|
</message>
|
||||||
<message name="error193" section="errors">
|
<message name="spellfail_astralonly" section="errors">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
<arg name="region" type="region"/>
|
<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="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>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - This unit cannot give anybody away."</text>
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message name="feedback_no_contact" section="errors">
|
<message name="feedback_no_contact" section="errors">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
@ -5858,9 +5859,19 @@
|
||||||
<arg name="target" type="unit"/>
|
<arg name="target" type="unit"/>
|
||||||
</type>
|
</type>
|
||||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - $unit($target) hat keinen Kontakt mit uns aufgenommen."</text>
|
<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>
|
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - $unit($target) did not contact us."</text>
|
||||||
</message>
|
</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">
|
<message name="feedback_no_contact_resist" section="errors">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
|
Loading…
Reference in a new issue