forked from github/server
Beautification: New English texts, some NR fixes.
This commit is contained in:
parent
a4ab94eabd
commit
668809b9c2
|
@ -2083,7 +2083,7 @@ report_plaintext(const char * filename, report_context * ctx)
|
||||||
}
|
}
|
||||||
if (!fval(r->terrain, SEA_REGION)) {
|
if (!fval(r->terrain, SEA_REGION)) {
|
||||||
if (sh->coast != NODIRECTION) {
|
if (sh->coast != NODIRECTION) {
|
||||||
scat(LOC(f->locale, "list_and"));
|
scat(LOC(f->locale, ", "));
|
||||||
scat(LOC(f->locale, coasts[sh->coast]));
|
scat(LOC(f->locale, coasts[sh->coast]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4444,11 +4444,7 @@ sp_recruit(castorder *co)
|
||||||
u = create_unit(r, f, n, f->race, 0, (n == 1 ? "Bauer" : "Bauern"), mage);
|
u = create_unit(r, f, n, f->race, 0, (n == 1 ? "Bauer" : "Bauern"), mage);
|
||||||
set_order(&u->thisorder, default_order(f->locale));
|
set_order(&u->thisorder, default_order(f->locale));
|
||||||
|
|
||||||
sprintf(buf, "%s konnte %d %s anwerben", unitname(mage), n,
|
ADDMSG(&mage->faction->msgs, msg_message("recruit_effect", "mage amount", mage, n));
|
||||||
n == 1 ? "Bauer" : "Bauern");
|
|
||||||
addmessage(r, mage->faction, buf, MSG_MAGIC, ML_INFO);
|
|
||||||
|
|
||||||
if (f->race==new_race[RC_URUK]) n = (n+1) / 2;
|
|
||||||
|
|
||||||
return cast_level;
|
return cast_level;
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,28 +217,28 @@ cinfo_sparkle(const void * obj, typ_t typ, const curse *c, int self)
|
||||||
{
|
{
|
||||||
const char * effects[] = {
|
const char * effects[] = {
|
||||||
NULL, /* end grau*/
|
NULL, /* end grau*/
|
||||||
"%s ist im Traum eine Fee erschienen",
|
"sparkle_1",
|
||||||
"%s wird von bösen Alpträumen geplagt",
|
"sparkle_2",
|
||||||
NULL, /* end traum */
|
NULL, /* end traum */
|
||||||
"%s wird von einem glitzernden Funkenregen umgeben",
|
"sparkle_3",
|
||||||
"Ein schimmernder Lichterkranz umgibt %s",
|
"sparkle_4",
|
||||||
NULL, /* end tybied */
|
NULL, /* end tybied */
|
||||||
"Eine Melodie erklingt, und %s tanzt bis spät in die Nacht hinein",
|
"sparkle_5",
|
||||||
"%s findet eine kleine Flöte, die eine wundersame Melodie spielt",
|
"sparkle_6",
|
||||||
"Die Frauen des nahegelegenen Dorfes bewundern %s verstohlen",
|
"sparkle_7",
|
||||||
"Eine Gruppe vorbeiziehender Bergarbeiter rufen %s eindeutig Zweideutiges nach",
|
"sparkle_8",
|
||||||
NULL, /* end cerrdor */
|
NULL, /* end cerrdor */
|
||||||
"%s bekommt von einer Schlange einen Apfel angeboten",
|
"sparkle_9",
|
||||||
"Ein Einhorn berührt %s mit seinem Horn und verschwindet kurz darauf im Unterholz",
|
"sparkle_10",
|
||||||
"Vogelzwitschern begleitet %s auf all seinen Wegen",
|
"sparkle_11",
|
||||||
"Leuchtende Blumen erblühen rund um das Lager von %s",
|
"sparkle_12",
|
||||||
NULL, /* end gwyrrd */
|
NULL, /* end gwyrrd */
|
||||||
"Über %s zieht eine Gruppe Geier ihre Kreise",
|
"sparkle_13",
|
||||||
"Der Kopf von %s hat sich in einen grinsenden Totenschädel verwandelt",
|
"sparkle_14",
|
||||||
"Ratten folgen %s auf Schritt und Tritt",
|
"sparkle_15",
|
||||||
"Pestbeulen befallen den Körper von %s",
|
"sparkle_16",
|
||||||
"Eine dunkle Fee erscheint %s im Schlaf. Sie ist von schauriger Schönheit",
|
"sparkle_17",
|
||||||
"Fäulnisgeruch dringt %s aus allen Körperöffnungen",
|
"sparkle_18",
|
||||||
NULL, /* end draig */
|
NULL, /* end draig */
|
||||||
};
|
};
|
||||||
int m, begin=0, end=0;
|
int m, begin=0, end=0;
|
||||||
|
@ -258,9 +258,10 @@ cinfo_sparkle(const void * obj, typ_t typ, const curse *c, int self)
|
||||||
|
|
||||||
while (effects[end]!=NULL) ++end;
|
while (effects[end]!=NULL) ++end;
|
||||||
if (end==begin) return NULL;
|
if (end==begin) return NULL;
|
||||||
else sprintf(buf, effects[begin + curse_geteffect(c) % (end-begin)], u->name);
|
else {
|
||||||
|
int index = begin + curse_geteffect(c) % (end-begin);
|
||||||
return msg_message("curseinfo::info_str", "text id", buf, c->no);
|
return msg_message(mkname("curseinfo", effects[index]), "text id", buf, c->no);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
static struct curse_type ct_sparkle = { "sparkle",
|
static struct curse_type ct_sparkle = { "sparkle",
|
||||||
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
|
CURSETYP_UNIT, CURSE_SPREADMODULO, ( M_MEN | M_DURATION ),
|
||||||
|
|
|
@ -39,6 +39,150 @@
|
||||||
<text locale="de">"$unit($mage) beschwört einen Schleier der Verwirrung."</text>
|
<text locale="de">"$unit($mage) beschwört einen Schleier der Verwirrung."</text>
|
||||||
<text locale="en">"$unit($mage) summons a fog of confusion."</text>
|
<text locale="en">"$unit($mage) summons a fog of confusion."</text>
|
||||||
</message>
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_1" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) ist im Traum eine Fee erschienen. ($int36($id))"</text>
|
||||||
|
<text locale="en">"In a dream, a fairy appears to $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_2" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) wird von bösen Alpträumen geplagt. ($int36($id))"</text>
|
||||||
|
<text locale="en">"$unit($unit) is haunted by terrbile nightmares. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_3" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) wird von einem glitzernden Funkenregen umgeben. ($int36($id))"</text>
|
||||||
|
<text locale="en">"$unit($unit) is surrounded by a shower of glittering sparkles. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_4" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Ein schimmernder Lichterkranz umgibt $unit($unit). ($int36($id))"</text>
|
||||||
|
<text locale="en">"A circle of shimmering lights surrounds $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_5" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Eine Melodie erklingt, und $unit($unit) tanzt bis spät in die Nacht hinein. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A haunting melody fills the air, and $unit($unit) dances until late into the night. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_6" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) findet eine kleine Flöte, die eine wundersame Melodie spielt. ($int36($id))"</text>
|
||||||
|
<text locale="en">"$unit($unit) finds a small flute that plays a beautiful melody. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_7" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Die Frauen des nahegelegenen Dorfes bewundern $unit($unit) verstohlen. ($int36($id))"</text>
|
||||||
|
<text locale="en">"The women of the nearby village cast furtive looks at $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_8" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Eine Gruppe vorbeiziehender Bergarbeiter rufen $unit($unit) eindeutig Zweideutiges nach. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A group of passing miners makes passes at $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_9" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($unit) bekommt von einer Schlange einen Apfel angeboten. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A large green snake offers $unit($unit) a fine-looking apple. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_10" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Ein Einhorn berührt $unit($unit) mit seinem Horn und verschwindet kurz darauf im Unterholz. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A unicorn touches $unit($unit) with its horn and vanishes into the forest quickly after. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_11" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Vogelzwitschern begleitet $unit($unit) auf all seinen Wegen. ($int36($id))"</text>
|
||||||
|
<text locale="en">"Bird songs follow $unit($unit) on all his travels. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_12" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Leuchtende Blumen erblühen rund um das Lager von $unit($unit). ($int36($id))"</text>
|
||||||
|
<text locale="en">"Brightly coloured flowers pop up all around $unit($unit)'s camp. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_13" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Über $unit($unit) zieht eine Gruppe Geier ihre Kreise. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A group of vultures circles above $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_14" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Der Kopf von $unit($unit) hat sich in einen grinsenden Totenschädel verwandelt. ($int36($id))"</text>
|
||||||
|
<text locale="en">"The head of $unit($unit) has turned into a madly grinning skull. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_15" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Ratten folgen $unit($unit) auf Schritt und Tritt. ($int36($id))"</text>
|
||||||
|
<text locale="en">"Rats follow $unit($unit)'s every step. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_16" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Pestbeulen befallen den Körper von $unit($unit). ($int36($id))"</text>
|
||||||
|
<text locale="en">"The body of $unit($unit) is disfigured by hideous boils. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_17" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Eine dunkle Fee erscheint $unit($unit) im Schlaf. Sie ist von schauriger Schönheit. ($int36($id))"</text>
|
||||||
|
<text locale="en">"A dark and mysterious fairy appears before $unit($unit). She is of bewitching beauty. ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
|
<message name="curseinfo::sparkle_18" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="unit" type="unit"/>
|
||||||
|
<arg name="id" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"Fäulnisgeruch dringt $unit($unit) aus allen Körperöffnungen. ($int36($id))"</text>
|
||||||
|
<text locale="en">"The stench of decay is poring from all the orifices of $unit($unit). ($int36($id))"</text>
|
||||||
|
</message>
|
||||||
<message name="curseinfo::calm_1" section="events">
|
<message name="curseinfo::calm_1" section="events">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
@ -884,6 +1028,14 @@
|
||||||
<text locale="de">"$unit($unit) gelingt es, durch die Nebel auf die Realität zu blicken."</text>
|
<text locale="de">"$unit($unit) gelingt es, durch die Nebel auf die Realität zu blicken."</text>
|
||||||
<text locale="en">"$unit($unit) manages to catch a glimpse of reality through the fog."</text>
|
<text locale="en">"$unit($unit) manages to catch a glimpse of reality through the fog."</text>
|
||||||
</message>
|
</message>
|
||||||
|
<message name="recruit_effect" section="events">
|
||||||
|
<type>
|
||||||
|
<arg name="mage" type="unit"/>
|
||||||
|
<arg name="amount" type="int"/>
|
||||||
|
</type>
|
||||||
|
<text locale="de">"$unit($mage) konnte $int($amount) $if($eq($amount,1),"Bauer","Bauern") anwerben."</text>
|
||||||
|
<text locale="en">"$unit($mage) managed to recruit $int($amount) $if($eq($amount,1),"peasant","peasants")."</text>
|
||||||
|
</message>
|
||||||
<message name="wand_of_tears_effect" section="events">
|
<message name="wand_of_tears_effect" section="events">
|
||||||
<type>
|
<type>
|
||||||
<arg name="unit" type="unit"/>
|
<arg name="unit" type="unit"/>
|
||||||
|
@ -2536,8 +2688,7 @@
|
||||||
<arg name="region" type="region"/>
|
<arg name="region" type="region"/>
|
||||||
</type>
|
</type>
|
||||||
<text locale="de">"$unit($unit) in $region($region) stellt fest, dass es hier $localize($amount,$locale("de")) $resource($herb,$amount) gibt."</text>
|
<text locale="de">"$unit($unit) in $region($region) stellt fest, dass es hier $localize($amount,$locale("de")) $resource($herb,$amount) gibt."</text>
|
||||||
<text locale="fr">"$unit($unit) discovers that $localize($amount,$locale("en")) $resource($herb,$amount) grow in $region($region)."</text>
|
<text locale="en">"$unit($unit) discovers that $localize($amount,$locale("en")) $resource($herb,$amount) grow in $region($region)."</text>
|
||||||
<text locale="en">"$unit($unit) discovers that $localize($amount,$locale("fr")) $resource($herb,$amount) grow in $region($region)."</text>
|
|
||||||
</message>
|
</message>
|
||||||
<message name="destroy_partial" section="events">
|
<message name="destroy_partial" section="events">
|
||||||
<type>
|
<type>
|
||||||
|
|
|
@ -2,11 +2,13 @@ function use_ring_of_levitation(u, amount)
|
||||||
if u.ship~=nil and amount>0 then
|
if u.ship~=nil and amount>0 then
|
||||||
local mallorn = 0
|
local mallorn = 0
|
||||||
for u2 in u.region.units do
|
for u2 in u.region.units do
|
||||||
local i = u2:get_item("mallornseed")
|
if u2.ship==u.ship then
|
||||||
if i>0 then
|
local i = u2:get_item("mallornseed")
|
||||||
u2:use_item("mallornseed", i)
|
if i>0 then
|
||||||
u2:add_item("seed", i)
|
u2:use_item("mallornseed", i)
|
||||||
mallorn = mallorn + i
|
u2:add_item("seed", i)
|
||||||
|
mallorn = mallorn + i
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if mallorn>0 then
|
if mallorn>0 then
|
||||||
|
|
Loading…
Reference in New Issue