forked from github/server
"Wurmloch-Betreten funktioniert nur manchmal" Fehlermeldung, die das besser erklaert.
This commit is contained in:
parent
feea3e0039
commit
1762317393
2 changed files with 35 additions and 24 deletions
|
@ -74,20 +74,22 @@ wormhole_age(struct attrib * a)
|
|||
unit * u = r->units;
|
||||
|
||||
for (;u!=NULL && maxtransport!=0;u=u->next) {
|
||||
message * m;
|
||||
if (u->number>maxtransport) continue;
|
||||
if (teure_talente(u)) continue;
|
||||
if (u->building!=data->entry) continue;
|
||||
|
||||
if (data->exit!=NULL) {
|
||||
if (u->building==data->entry) {
|
||||
message * m = NULL;
|
||||
if (u->number>maxtransport || teure_talente(u)) {
|
||||
m = msg_message("wormhole_requirements", "unit region", u, u->region);
|
||||
} else if (data->exit!=NULL) {
|
||||
move_unit(u, data->exit->region, NULL);
|
||||
maxtransport -= u->number;
|
||||
m = msg_message("wormhole_exit", "unit region", u, data->exit->region);
|
||||
add_message(&data->exit->region->msgs, m);
|
||||
}
|
||||
if (m!=NULL) {
|
||||
add_message(&u->faction->msgs, m);
|
||||
msg_release(m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* it's important that destroy_building doesn't change b->region, because
|
||||
* otherwise the tunnel would no longer be bi-directional after this */
|
||||
|
|
|
@ -6184,6 +6184,15 @@
|
|||
<text locale="en">"$unit($unit) in $region($region): '$order($command)' - No pyramids may be build in this region. The closest region to build a pyramid in is between $int($mindist) and $int($maxdist) regions away."</text>
|
||||
<text locale="fr">"$unit($unit) in $region($region): '$order($command)' - No pyramids may be build in this region. The closest region to build a pyramid in is between $int($mindist) and $int($maxdist) regions away."</text>
|
||||
</message>
|
||||
<message name="wormhole_requirements" section="events">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
<arg name="region" type="region"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) kann in $region($region) nicht durch das Wurmloch reisen, da die Einheit entweder zu gross ist oder teure Talente besitzt."</text>
|
||||
<text locale="fr">"$unit($unit) cannot travel through the wormhole in $region($region) because the unit is either too big or has restricted skills."</text>
|
||||
<text locale="en">"$unit($unit) cannot travel through the wormhole in $region($region) because the unit is either too big or has restricted skills."</text>
|
||||
</message>
|
||||
<message name="wormhole_exit" section="events">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
|
|
Loading…
Reference in a new issue