forked from github/server
RESERVIERE PERSONEN geht nicht mehr Magiegebiete haben englische NAmen (gleicher Name, bis auf "Kein Gebiet")
This commit is contained in:
parent
11bff85cff
commit
6bec8beb75
|
@ -1990,7 +1990,8 @@ report(FILE *F, faction * f, const faction_list * addresses,
|
|||
centre(F, gamedate_season(f->locale), true);
|
||||
rnl(F);
|
||||
sprintf(buf, "%s, %s/%s (%s)", factionname(f),
|
||||
LOC(f->locale, rc_name(f->race, 1)), neue_gebiete[f->magiegebiet],
|
||||
LOC(f->locale, rc_name(f->race, 1)),
|
||||
LOC(f->locale, mkname("school", neue_gebiete[f->magiegebiet])),
|
||||
f->email);
|
||||
centre(F, buf, true);
|
||||
if (f->alliance!=NULL) {
|
||||
|
|
|
@ -254,7 +254,17 @@ givemen(int n, unit * u, unit * u2, struct order * ord)
|
|||
}
|
||||
}
|
||||
}
|
||||
addgive(u, u2, n, R_PERSON, ord, error);
|
||||
if (error) {
|
||||
cmistake(u, ord, error, MSG_COMMERCE);
|
||||
}
|
||||
else if (!u2 || u2->faction!=u->faction) {
|
||||
ADDMSG(&u->faction->msgs, msg_message("give_person", "unit target amount",
|
||||
u, u2?ucansee(u->faction, u2, u_unknown()):u_peasants(), n));
|
||||
if (u2) {
|
||||
ADDMSG(&u2->faction->msgs, msg_message("give_person", "unit target amount",
|
||||
ucansee(u2->faction, u, u_unknown()), u2, n));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -2149,7 +2149,6 @@ resource_type * r_permaura;
|
|||
resource_type * r_peasants;
|
||||
resource_type * r_unit;
|
||||
resource_type * r_hp;
|
||||
resource_type * r_person;
|
||||
|
||||
resource_type * r_silver;
|
||||
item_type * i_silver;
|
||||
|
@ -2175,9 +2174,6 @@ init_resources(void)
|
|||
i_silver = new_itemtype(r_silver, ITF_NONE, 1/*weight*/, 0);
|
||||
r_silver->uchange = res_changeitem;
|
||||
|
||||
r_person = new_resourcetype(&names[2], NULL, RTF_NONE);
|
||||
r_person->uchange = res_changeperson;
|
||||
|
||||
r_permaura = new_resourcetype(&names[4], NULL, RTF_NONE);
|
||||
r_permaura->uchange = res_changepermaura;
|
||||
|
||||
|
@ -2198,7 +2194,6 @@ init_resources(void)
|
|||
oldresourcetype[R_PERMAURA] = r_permaura;
|
||||
oldresourcetype[R_HITPOINTS] = r_hp;
|
||||
oldresourcetype[R_PEASANTS] = r_peasants;
|
||||
oldresourcetype[R_PERSON] = r_person;
|
||||
oldresourcetype[R_UNIT] = r_unit;
|
||||
|
||||
/* alte typen registrieren: */
|
||||
|
@ -2372,8 +2367,6 @@ resname(resource_t res, int index)
|
|||
return index==1?"peasant":"peasant_p";
|
||||
} else if (res == R_UNIT) {
|
||||
return index==1?"unit":"unit_p";
|
||||
} else if (res == R_PERSON) {
|
||||
return index==1?"person":"person_p";
|
||||
} else if (res == R_HITPOINTS) {
|
||||
return index==1?"hp":"hp_p";
|
||||
}
|
||||
|
|
|
@ -264,7 +264,6 @@ extern resource_type * r_permaura;
|
|||
extern resource_type * r_peasants;
|
||||
extern resource_type * r_unit;
|
||||
extern resource_type * r_hp;
|
||||
extern resource_type * r_person;
|
||||
|
||||
typedef struct t_item {
|
||||
const char *name[4];
|
||||
|
@ -519,7 +518,6 @@ enum {
|
|||
|
||||
|
||||
R_UNIT, /* Einheit (gib x einheit) */
|
||||
R_PERSON,
|
||||
|
||||
MAX_RESOURCES, /* do not use outside item.c ! */
|
||||
NORESOURCE = (resource_t) - 1
|
||||
|
|
|
@ -71,8 +71,6 @@ new_get_resource(const unit * u, const resource_type * rtype)
|
|||
return u->hp;
|
||||
if (rtype == oldresourcetype[R_PEASANTS])
|
||||
return rpeasants(u->region);
|
||||
if (rtype == oldresourcetype[R_PERSON])
|
||||
return u->number;
|
||||
assert(!"unbekannte ressource entdeckt");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -59,12 +59,12 @@
|
|||
const char * g_reportdir;
|
||||
|
||||
const char *neue_gebiete[] = {
|
||||
"Kein Magiegebiet",
|
||||
"Illaun",
|
||||
"Tybied",
|
||||
"Cerddor",
|
||||
"Gwyrrd",
|
||||
"Draig"
|
||||
"none",
|
||||
"illaun",
|
||||
"tybied",
|
||||
"cerddor",
|
||||
"gwyrrd",
|
||||
"draig"
|
||||
};
|
||||
|
||||
const char *coasts[MAXDIRECTIONS] =
|
||||
|
|
|
@ -32,6 +32,7 @@ extern "C" {
|
|||
|
||||
extern const char *directions[];
|
||||
extern const char *neue_gebiete[];
|
||||
extern const char *coasts[];
|
||||
|
||||
/* kann_finden speedups */
|
||||
extern boolean kann_finden(struct faction * f1, struct faction * f2);
|
||||
|
@ -104,8 +105,6 @@ extern int bufunit(const struct faction * f, const struct unit * u, int indent,
|
|||
extern int bufunit_ugroupleader(const struct faction * f, const struct unit * u, int indent, int mode);
|
||||
#endif
|
||||
|
||||
extern const char *neue_gebiete[];
|
||||
extern const char *coasts[];
|
||||
extern const char * reportpath(void);
|
||||
extern struct faction * visible_faction(const struct faction *f, const struct unit * u);
|
||||
extern struct faction_list * get_addresses(struct faction * f);
|
||||
|
|
|
@ -314,7 +314,10 @@ tower_init(void)
|
|||
if (!r->buildings) {
|
||||
building * b = new_building(bt_find("castle"), r, NULL);
|
||||
b->size = 10;
|
||||
if (i!=0) sprintf(buf, "Turm des %s", neue_gebiete[i]);
|
||||
if (i!=0) {
|
||||
sprintf(buf, "Turm des %s",
|
||||
LOC(default_locale, mkname("school", neue_gebiete[i])));
|
||||
}
|
||||
else sprintf(buf, "Turm der Ahnungslosen");
|
||||
set_string(&b->name, buf);
|
||||
}
|
||||
|
|
|
@ -239,34 +239,6 @@ getgarbage(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
writefactiondata(void)
|
||||
{
|
||||
FILE *F;
|
||||
char zText[128];
|
||||
|
||||
sprintf(zText, "%s/faction-data.xml", basepath());
|
||||
F = cfopen(zText, "w");
|
||||
if(F) {
|
||||
faction *f;
|
||||
for(f = factions; f; f=f->next) {
|
||||
fprintf(F,"<faction>\n");
|
||||
fprintf(F,"\t<id>%s</id>\n",itoa36(f->no));
|
||||
fprintf(F,"\t<name>%s</name>\n",f->name);
|
||||
fprintf(F,"\t<email>%s</email>\n",f->email);
|
||||
fprintf(F,"\t<password>%s</password>\n",f->passw);
|
||||
fprintf(F,"\t<race>%s</race>\n",rc_name(f->race,1));
|
||||
fprintf(F,"\t<magic>%s</magic>\n",neue_gebiete[f->magiegebiet]);
|
||||
fprintf(F,"\t<nmrs>%d</nmrs>\n",turn-f->lastorders);
|
||||
fprintf(F,"\t<score>%d</score>\n",f->score);
|
||||
fprintf(F,"</faction>\n");
|
||||
}
|
||||
}
|
||||
fclose(F);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef SHORTPWDS
|
||||
static void
|
||||
readshortpwds()
|
||||
|
|
|
@ -7,6 +7,33 @@
|
|||
_a: including article (ein Troll, a troll)
|
||||
-->
|
||||
|
||||
<name="school">
|
||||
<string name="none">
|
||||
<text locale="de">Kein Magiegebiet</text>
|
||||
<text locale="en">no magic school</text>
|
||||
</string>
|
||||
<string name="illaun">
|
||||
<text locale="de">Illaun</text>
|
||||
<text locale="en">Illaun</text>
|
||||
</string>
|
||||
<string name="tybied">
|
||||
<text locale="de">Tybied</text>
|
||||
<text locale="en">Tybied</text>
|
||||
</string>
|
||||
<string name="cerddor">
|
||||
<text locale="de">Cerddor</text>
|
||||
<text locale="en">Cerddor</text>
|
||||
</string>
|
||||
<string name="gwyrrd">
|
||||
<text locale="de">Gwyrrd</text>
|
||||
<text locale="en">Gwyrrd</text>
|
||||
</string>
|
||||
<string name="draig">
|
||||
<text locale="de">Draig</text>
|
||||
<text locale="en">Draig</text>
|
||||
</string>
|
||||
</namespace>
|
||||
|
||||
<string name="Tresen">
|
||||
<text locale="de">Tresen</text>
|
||||
<text locale="en">counter </text>
|
||||
|
|
|
@ -5509,6 +5509,16 @@
|
|||
</type>
|
||||
<text locale="de">"$string"</text>
|
||||
</message>
|
||||
<message name="give_person" section="economy">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
<arg name="amount" type="int"/>
|
||||
<arg name="target" type="unit"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) übergibt $int($amount) Person$if($eq($amount,1),"","en") an $unit($target)."</text>
|
||||
<text locale="fr">"$unit($unit) transfers $int($amount) person$if($eq($amount,1),"","s") to $unit($target)."</text>
|
||||
<text locale="en">"$unit($unit) transfers $int($amount) person$if($eq($amount,1),"","s") to $unit($target)."</text>
|
||||
</message>
|
||||
<message name="give" section="economy">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
|
@ -5517,8 +5527,8 @@
|
|||
<arg name="target" type="unit"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) übergibt $int($amount) $resource($resource,$amount) an $unit($target)."</text>
|
||||
<text locale="fr">"$unit($unit) gave $int($amount) $resource($resource,$amount) to $unit($target)."</text>
|
||||
<text locale="en">"$unit($unit) gave $int($amount) $resource($resource,$amount) to $unit($target)."</text>
|
||||
<text locale="fr">"$unit($unit) gives $int($amount) $resource($resource,$amount) to $unit($target)."</text>
|
||||
<text locale="en">"$unit($unit) gives $int($amount) $resource($resource,$amount) to $unit($target)."</text>
|
||||
</message>
|
||||
<message name="maintenance" section="economy">
|
||||
<type>
|
||||
|
|
Loading…
Reference in New Issue