Merge pull request #257 from badgerman/feature/rename-cerddor

Bug 2115: fix the name of Cerddor everywhere.
This commit is contained in:
Enno Rehling 2015-07-08 18:57:08 +02:00
commit 434923ec67
18 changed files with 30 additions and 51 deletions

View File

@ -3922,7 +3922,7 @@
<text locale="de">Gesang des Lebens analysieren</text> <text locale="de">Gesang des Lebens analysieren</text>
<text locale="en">Analyze Song of Life</text> <text locale="en">Analyze Song of Life</text>
</string> </string>
<string name="cerrdorfumbleshield"> <string name="cerddorfumbleshield">
<text locale="de">Bannlied</text> <text locale="de">Bannlied</text>
<text locale="en">Countersong</text> <text locale="en">Countersong</text>
</string> </string>
@ -4324,7 +4324,7 @@
<text locale="de">Kraft der Natur</text> <text locale="de">Kraft der Natur</text>
<text locale="en">force of nature</text> <text locale="en">force of nature</text>
</string> </string>
<string name="wdwpyramid_cerrdor"> <string name="wdwpyramid_cerddor">
<text locale="de">Gesang der Götter</text> <text locale="de">Gesang der Götter</text>
<text locale="en">Song of the Gods</text> <text locale="en">Song of the Gods</text>
</string> </string>
@ -5126,7 +5126,7 @@
able to decipher all enchantments or spells, which able to decipher all enchantments or spells, which
aren't disguised beyond your capability.</text> aren't disguised beyond your capability.</text>
</string> </string>
<string name="cerrdorfumbleshield"> <string name="cerddorfumbleshield">
<text locale="de">Dieser schrille Gesang hallt über das <text locale="de">Dieser schrille Gesang hallt über das
ganze Schlachtfeld. Die besonderen Dissonanzen in den ganze Schlachtfeld. Die besonderen Dissonanzen in den
Melodien machen es Magiern fast unmöglich, sich auf ihre Melodien machen es Magiern fast unmöglich, sich auf ihre

View File

@ -37,7 +37,7 @@
<entry spell="summon_familiar" level="9" /> <entry spell="summon_familiar" level="9" />
<entry spell="draigfumbleshield" level="9" /> <entry spell="draigfumbleshield" level="9" />
<entry spell="gwyrrdfumbleshield" level="5" /> <entry spell="gwyrrdfumbleshield" level="5" />
<entry spell="cerrdorfumbleshield" level="5" /> <entry spell="cerddorfumbleshield" level="5" />
<entry spell="tybiedfumbleshield" level="2" /> <entry spell="tybiedfumbleshield" level="2" />
<entry spell="concealing_aura" level="1" /> <entry spell="concealing_aura" level="1" />
<entry spell="shockwave" level="5" /> <entry spell="shockwave" level="5" />

View File

@ -22,7 +22,7 @@
<entry spell="calm_monster" level="6" /> <entry spell="calm_monster" level="6" />
<entry spell="calm_riot" level="14" /> <entry spell="calm_riot" level="14" />
<entry spell="cerddor_destroymagic" level="8" /> <entry spell="cerddor_destroymagic" level="8" />
<entry spell="cerrdorfumbleshield" level="5" /> <entry spell="cerddorfumbleshield" level="5" />
<entry spell="chaosrow" level="8" /> <entry spell="chaosrow" level="8" />
<entry spell="clone" level="9" /> <entry spell="clone" level="9" />
<entry spell="coldfront" level="8" /> <entry spell="coldfront" level="8" />

View File

@ -619,7 +619,7 @@
<spell name="gwyrrdfumbleshield" rank="2" index="144" variable="true" combat="1"> <spell name="gwyrrdfumbleshield" rank="2" index="144" variable="true" combat="1">
<resource name="aura" amount="5" cost="level"/> <resource name="aura" amount="5" cost="level"/>
</spell> </spell>
<spell name="cerrdorfumbleshield" rank="2" index="145" variable="true" combat="1"> <spell name="cerddorfumbleshield" rank="2" index="145" variable="true" combat="1">
<resource name="aura" amount="5" cost="level"/> <resource name="aura" amount="5" cost="level"/>
</spell> </spell>
<spell name="tybiedfumbleshield" rank="2" index="146" variable="true" combat="1"> <spell name="tybiedfumbleshield" rank="2" index="146" variable="true" combat="1">

View File

@ -206,7 +206,18 @@
</string> </string>
</namespace> </namespace>
<namespace name="spellinfo"> <namespace name="spellinfo">
<string name="concealing_aura">
<text locale="de">Dieser Zauber wird die gesamte Ausrüstung der
Zieleinheit für
einige Zeit vor den Blicken anderer verschleiern. Der
Zauber
schützt nicht vor Dieben und Spionen.</text>
<text locale="en">This spell will hide the whole equipment of a target
unit from the
looks of others. It will not protect against thieves or
spies.</text>
</string>
<string name="raindance"> <string name="raindance">
<text locale="de">Durch dieses uralte Tanzritual ruft der Zauberkundige <text locale="de">Durch dieses uralte Tanzritual ruft der Zauberkundige
die Kräfte des Lebens und der Fruchtbarkeit an. Die darauf folgenden die Kräfte des Lebens und der Fruchtbarkeit an. Die darauf folgenden

View File

@ -27,7 +27,7 @@
<entry spell="summon_familiar" level="9" /> <entry spell="summon_familiar" level="9" />
<entry spell="song_of_slavery" level="13" /> <entry spell="song_of_slavery" level="13" />
<entry spell="cerddor_destroymagic" level="8" /> <entry spell="cerddor_destroymagic" level="8" />
<entry spell="cerrdorfumbleshield" level="5" /> <entry spell="cerddorfumbleshield" level="5" />
<entry spell="big_recruit" level="14" /> <entry spell="big_recruit" level="14" />
<entry spell="raindance" level="3" /> <entry spell="raindance" level="3" />
<entry spell="create_roi" level="6" /> <entry spell="create_roi" level="6" />

View File

@ -26,7 +26,7 @@
<entry spell="calm_monster" level="6" /> <entry spell="calm_monster" level="6" />
<entry spell="calm_riot" level="15" /> <entry spell="calm_riot" level="15" />
<entry spell="cerddor_destroymagic" level="8" /> <entry spell="cerddor_destroymagic" level="8" />
<entry spell="cerrdorfumbleshield" level="5" /> <entry spell="cerddorfumbleshield" level="5" />
<entry spell="chaosrow" level="8" /> <entry spell="chaosrow" level="8" />
<entry spell="chaossuction" level="14" /> <entry spell="chaossuction" level="14" />
<entry spell="clone" level="9" /> <entry spell="clone" level="9" />

View File

@ -402,7 +402,7 @@
<spell name="gwyrrdfumbleshield" rank="2" index="144" variable="true" combat="1"> <spell name="gwyrrdfumbleshield" rank="2" index="144" variable="true" combat="1">
<resource name="aura" amount="5" cost="level"/> <resource name="aura" amount="5" cost="level"/>
</spell> </spell>
<spell name="cerrdorfumbleshield" rank="2" index="145" variable="true" combat="1"> <spell name="cerddorfumbleshield" rank="2" index="145" variable="true" combat="1">
<resource name="aura" amount="5" cost="level"/> <resource name="aura" amount="5" cost="level"/>
</spell> </spell>
<spell name="tybiedfumbleshield" rank="2" index="146" variable="true" combat="1"> <spell name="tybiedfumbleshield" rank="2" index="146" variable="true" combat="1">

View File

@ -1,17 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<strings> <strings>
<namespace name="spellinfo"> <namespace name="spellinfo">
<string name="concealing_aura">
<text locale="de">Dieser Zauber wird die gesamte Ausrüstung der
Zieleinheit für
einige Zeit vor den Blicken anderer verschleiern. Der
Zauber
schützt nicht vor Dieben und Spionen.</text>
<text locale="en">This spell will hide the whole equipment of a target
unit from the
looks of others. It will not protect against thieves or
spies.</text>
</string>
<string name="headache"> <string name="headache">
<text locale="de"> <text locale="de">
Aufzeichung des Vortrags von Selen Ard'Ragorn in Bar'Glingal: Aufzeichung des Vortrags von Selen Ard'Ragorn in Bar'Glingal:

View File

@ -205,12 +205,6 @@ caddmessage(region * r, faction * f, const char *s, msg_t mtype, int level)
{ {
message *m = NULL; message *m = NULL;
#define LOG_ENGLISH
#ifdef LOG_ENGLISH
if (f && f->locale != default_locale) {
log_warning("message for locale \"%s\": %s\n", locale_name(f->locale), s);
}
#endif
unused_arg(level); unused_arg(level);
switch (mtype) { switch (mtype) {
case MSG_INCOME: case MSG_INCOME:

View File

@ -78,9 +78,6 @@ int change_resource(unit * u, const resource_type * rtype, int change)
assert(!"undefined resource detected. rtype->uchange not initialized."); assert(!"undefined resource detected. rtype->uchange not initialized.");
assert(i == get_resource(u, rtype)); assert(i == get_resource(u, rtype));
assert(i >= 0); assert(i >= 0);
if (i >= 100000000) {
log_warning("%s has %d %s\n", unitname(u), i, rtype->_name);
}
return i; return i;
} }

View File

@ -78,6 +78,7 @@ static const char *sp_aliases[][2] = {
{ "illaunfamiliar", "summon_familiar" }, { "illaunfamiliar", "summon_familiar" },
{ "draigfamiliar", "summon_familiar" }, { "draigfamiliar", "summon_familiar" },
{ "commonfamiliar", "summon_familiar" }, { "commonfamiliar", "summon_familiar" },
{ "cerrdorfumbleshield", "cerddorfumbleshield" },
{ NULL, NULL }, { NULL, NULL },
}; };

View File

@ -136,7 +136,7 @@ enum {
SPL_GWYRRD_ARMORSHIELD, SPL_GWYRRD_ARMORSHIELD,
SPL_DRAIG_FUMBLESHIELD, SPL_DRAIG_FUMBLESHIELD,
SPL_GWYRRD_FUMBLESHIELD, SPL_GWYRRD_FUMBLESHIELD,
SPL_CERRDOR_FUMBLESHIELD, SPL_CERDDOR_FUMBLESHIELD,
SPL_TYBIED_FUMBLESHIELD, SPL_TYBIED_FUMBLESHIELD,
SPL_SHADOWKNIGHTS = 147, SPL_SHADOWKNIGHTS = 147,
SPL_ITEMCLOAK = 150, SPL_ITEMCLOAK = 150,

View File

@ -1374,41 +1374,27 @@ static void durchreisende(stream *out, const region * r, const faction * f)
if (cansee_durchgezogen(f, r, u, 0)) { if (cansee_durchgezogen(f, r, u, 0)) {
++counter; ++counter;
if (u->ship != NULL) { if (u->ship != NULL) {
#ifdef GERMAN_FLUFF_ENABLED
if (strcmp("de", f->locale->name)==0) {
if (counter == 1) {
bytes = (int)strlcpy(bufp, "Die ", size);
}
else {
bytes = (int)strlcpy(bufp, "die ", size);
}
if (wrptr(&bufp, &size, bytes) != 0) {
WARN_STATIC_BUFFER();
break;
}
}
#endif
bytes = (int)strlcpy(bufp, shipname(u->ship), size); bytes = (int)strlcpy(bufp, shipname(u->ship), size);
} }
else { else {
bytes = (int)strlcpy(bufp, unitname(u), size); bytes = (int)strlcpy(bufp, unitname(u), size);
} }
if (wrptr(&bufp, &size, bytes) != 0) { if (wrptr(&bufp, &size, bytes) != 0) {
WARN_STATIC_BUFFER(); INFO_STATIC_BUFFER();
break; break;
} }
if (counter + 1 < maxtravel) { if (counter + 1 < maxtravel) {
bytes = (int)strlcpy(bufp, ", ", size); bytes = (int)strlcpy(bufp, ", ", size);
if (wrptr(&bufp, &size, bytes) != 0) { if (wrptr(&bufp, &size, bytes) != 0) {
WARN_STATIC_BUFFER(); INFO_STATIC_BUFFER();
break; break;
} }
} }
else if (counter + 1 == maxtravel) { else if (counter + 1 == maxtravel) {
bytes = (int)strlcpy(bufp, LOC(f->locale, "list_and"), size); bytes = (int)strlcpy(bufp, LOC(f->locale, "list_and"), size);
if (wrptr(&bufp, &size, bytes) != 0) { if (wrptr(&bufp, &size, bytes) != 0) {
WARN_STATIC_BUFFER(); INFO_STATIC_BUFFER();
break; break;
} }
} }

View File

@ -6583,7 +6583,7 @@ static spelldata spell_functions[] = {
{ "heroic_song", sp_hero, 0 }, { "heroic_song", sp_hero, 0 },
{ "transfer_aura_song", sp_transferaura, 0 }, { "transfer_aura_song", sp_transferaura, 0 },
{ "analysesong_unit", sp_analysesong_unit, 0 }, { "analysesong_unit", sp_analysesong_unit, 0 },
{ "cerrdorfumbleshield", sp_fumbleshield, 0 }, { "cerddorfumbleshield", sp_fumbleshield, 0 },
{ "calm_monster", sp_calm_monster, 0 }, { "calm_monster", sp_calm_monster, 0 },
{ "seduction", sp_seduce, 0 }, { "seduction", sp_seduce, 0 },
{ "headache", sp_headache, 0 }, { "headache", sp_headache, 0 },

View File

@ -1504,7 +1504,7 @@ int sp_fumbleshield(struct castorder * co)
switch (sp->id) { switch (sp->id) {
case SPL_DRAIG_FUMBLESHIELD: case SPL_DRAIG_FUMBLESHIELD:
case SPL_GWYRRD_FUMBLESHIELD: case SPL_GWYRRD_FUMBLESHIELD:
case SPL_CERRDOR_FUMBLESHIELD: case SPL_CERDDOR_FUMBLESHIELD:
case SPL_TYBIED_FUMBLESHIELD: case SPL_TYBIED_FUMBLESHIELD:
duration = 100; duration = 100;
effect = _max(1, 25 - level); effect = _max(1, 25 - level);

View File

@ -32,7 +32,7 @@ extern "C" {
extern bool is_migrant(struct unit *u); extern bool is_migrant(struct unit *u);
extern int study_cost(struct unit *u, skill_t talent); extern int study_cost(struct unit *u, skill_t talent);
#define MAXTEACHERS 8 #define MAXTEACHERS 16
typedef struct teaching_info { typedef struct teaching_info {
struct unit *teachers[MAXTEACHERS]; struct unit *teachers[MAXTEACHERS];
int value; int value;

View File

@ -17,5 +17,6 @@ extern size_t slprintf(char * dst, size_t size, const char * format, ...);
#endif #endif
#define WARN_STATIC_BUFFER() log_warning("static buffer too small in %s:%d\n", __FILE__, __LINE__) #define WARN_STATIC_BUFFER() log_warning("static buffer too small in %s:%d\n", __FILE__, __LINE__)
#define INFO_STATIC_BUFFER() log_info("static buffer too small in %s:%d\n", __FILE__, __LINE__)
#endif #endif