RESERVIERE PERSONEN geht nicht mehr

Magiegebiete haben englische NAmen (gleicher Name, bis auf "Kein Gebiet")
This commit is contained in:
Enno Rehling 2004-07-03 08:55:41 +00:00
parent 11bff85cff
commit 6bec8beb75
11 changed files with 76 additions and 65 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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";
}

View File

@ -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

View File

@ -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;
}

View File

@ -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] =

View File

@ -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);

View File

@ -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);
}

View File

@ -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()

View File

@ -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>
@ -4153,10 +4180,10 @@
und sein überlegtes Verhalten wird ihm manch Vorteil in
der Verteidigung geben.</text>
<text locale="en">This ancient battle chant lifts the
spirit of your troops and helps them withstand even the
fear-inspiring aura of demonic and undead beings. A
fighter thus fortified against evil will not flee even
in the face of terror, and his defenses will be strengthened.</text>
spirit of your troops and helps them withstand even the
fear-inspiring aura of demonic and undead beings. A
fighter thus fortified against evil will not flee even
in the face of terror, and his defenses will be strengthened.</text>
</string>
<string name="transfer_aura_song">
<text locale="de">Mit Hilfe dieses Zaubers kann der

View File

@ -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>