forked from github/server
Feature: friedliebende Rassen (ungenutzt)
Zauber Bergwaechter nur in Berg/Gletscher
This commit is contained in:
parent
8439981256
commit
90c0cc9a64
|
@ -3665,13 +3665,16 @@ init_battle(region * r, battle **bp)
|
|||
continue;
|
||||
}
|
||||
|
||||
if ((u->race->battle_flags&BF_CANATTACK) == 0) {
|
||||
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "race_no_attack", "race", u->race));
|
||||
continue;
|
||||
}
|
||||
/**
|
||||
** Fehlerbehandlung Angreifer
|
||||
**/
|
||||
#ifdef DELAYED_OFFENSE
|
||||
if (get_moved(&u->attribs) && !guarded_by(r, u->faction)) {
|
||||
add_message(&u->faction->msgs,
|
||||
msg_message("no_attack_after_advance", "unit region command", u, u->region, ord));
|
||||
ADDMSG(&u->faction->msgs, msg_feedback(u, ord, "no_attack_after_advance", ""));
|
||||
}
|
||||
#endif
|
||||
if (LongHunger(u)) {
|
||||
|
|
|
@ -156,6 +156,7 @@ extern int rc_specialdamage(const race *, const race *, const struct weapon_type
|
|||
#define BF_RES_CUT (1<<3) /* Halber Schaden durch CUT */
|
||||
#define BF_RES_BASH (1<<4) /* Halber Schaden durch BASH */
|
||||
#define BF_INV_NONMAGIC (1<<5) /* Immun gegen nichtmagischen Schaden */
|
||||
#define BF_CANATTACK (1<<6) /* Kann keine ATTACKIERE Befehle ausfuehren */
|
||||
|
||||
extern int unit_old_max_hp(struct unit * u);
|
||||
extern const char * racename(const struct locale *lang, const struct unit *u, const race * rc);
|
||||
|
|
|
@ -1446,6 +1446,7 @@ parse_races(xmlDocPtr doc)
|
|||
if (xml_bvalue(node, "resistbash", false)) rc->battle_flags |= BF_RES_BASH;
|
||||
if (xml_bvalue(node, "resistcut", false)) rc->battle_flags |= BF_RES_CUT;
|
||||
if (xml_bvalue(node, "resistpierce", false)) rc->battle_flags |= BF_RES_PIERCE;
|
||||
if (xml_bvalue(node, "canattack", true)) rc->battle_flags |= BF_CANATTACK;
|
||||
|
||||
/* reading eressea/races/race/ai */
|
||||
xpath->node = node;
|
||||
|
|
|
@ -2234,14 +2234,10 @@ sp_ironkeeper(castorder *co)
|
|||
unit *mage = co->magician.u;
|
||||
int cast_level = co->level;
|
||||
|
||||
/* this does not make sense anymore, iron and laen can appear
|
||||
* in any region */
|
||||
/*
|
||||
if (rterrain(r) != T_MOUNTAIN && rterrain(r) != T_GLACIER) {
|
||||
report_failure(mage, co->order);
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
|
||||
keeper = create_unit(r, mage->faction, 1, new_race[RC_IRONKEEPER], 0, "Bergwächter", mage);
|
||||
|
||||
|
|
|
@ -6018,6 +6018,17 @@
|
|||
<text locale="fr">"'$order($command)' - $unit($unit) marched into $region($region) during the last turn and is too exhausted to attack."</text>
|
||||
<text locale="en">"'$order($command)' - $unit($unit) marched into $region($region) during the last turn and is too exhausted to attack."</text>
|
||||
</message>
|
||||
<message name="race_no_attack" section="errors">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
<arg name="region" type="region"/>
|
||||
<arg name="command" type="order"/>
|
||||
<arg name="race" type="race"/>
|
||||
</type>
|
||||
<text locale="de">"$unit($unit) in $region($region): '$order($command)' - $race($race,0) sind friedliebend und attackieren niemand."</text>
|
||||
<text locale="fr">"'$order($command)' - $race($race,0) are peace-loving and will not attack anyone."</text>
|
||||
<text locale="en">"'$order($command)' - $race($race,0) are peace-loving and will not attack anyone."</text>
|
||||
</message>
|
||||
<message name="skill_needed" section="production">
|
||||
<type>
|
||||
<arg name="unit" type="unit"/>
|
||||
|
|
Loading…
Reference in New Issue