forked from github/server
- Bewachen verhindert Rekrutiere (GUARD_DISABLES_RECRUIT anschalten).
This commit is contained in:
parent
3647f69764
commit
cadc111a8d
|
@ -357,6 +357,13 @@ recruit(region * r, unit * u, strlist * S,
|
|||
request *o;
|
||||
int recruitcost;
|
||||
|
||||
#if GUARD_DISABLES_RECRUIT == 1
|
||||
if(is_guarded(r, u, GUARD_RECRUIT)) {
|
||||
cmistake(u, S->s, 70, MSG_EVENT);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (u->faction->race == new_race[RC_INSECT]) {
|
||||
if (month_season[month(0)] == 0 && rterrain(r) != T_DESERT) {
|
||||
#ifdef INSECT_POTION
|
||||
|
|
|
@ -1121,6 +1121,8 @@ extern struct attrib_type at_lighthouse;
|
|||
/* Verhindert Ausstieg + Weiterreise */
|
||||
#define GUARD_CREWS 32
|
||||
/* Verhindert Unterhaltung auf Schiffen */
|
||||
#define GUARD_RECRUIT 64
|
||||
/* Verhindert Rekrutieren */
|
||||
#define GUARD_ALL 0xFFFF
|
||||
|
||||
extern void setguard(struct unit * u, unsigned int flags);
|
||||
|
|
|
@ -211,7 +211,8 @@ struct fspecialdata fspecials[MAXFACTIONSPECIALS] = {
|
|||
"Erdelementarist",
|
||||
"Alle Gebäude dieser Partei sind von Erdelementaren beseelt und können "
|
||||
"sich mit Hilfe eines speziellen Befehls jede Woche um eine Region "
|
||||
"bewegen. Dies macht es den Bewohnern jedoch unmöglich, in dieser "
|
||||
"bewegen. Dies macht es den Bewohnern - welche alle einer Partei mit "
|
||||
"dieser Eigenschaft angehören müssen - jedoch unmöglich, in dieser "
|
||||
"Woche ihren normalen Tätigkeiten nachzugehen.",
|
||||
1
|
||||
},
|
||||
|
|
|
@ -30,3 +30,5 @@
|
|||
#define SKILLPOINTS 0
|
||||
#define NEW_MIGRATION 1
|
||||
#define PEASANTS_DO_NOT_STARVE 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
|
|
|
@ -30,3 +30,5 @@
|
|||
#define TEACHDIFFERENCE 1
|
||||
|
||||
#define PEASANT_ADJUSTMENT 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define SKILLPOINTS 0
|
||||
#define NEW_MIGRATION 1
|
||||
#define PEASANTS_DO_NOT_STARVE 0
|
||||
#define GUARD_DISABLES_RECRUIT 1
|
||||
|
||||
#define VICTORY_CONDITION VICTORY_MURDER
|
||||
#define VICTORY_DELAY 4
|
||||
|
|
|
@ -30,4 +30,5 @@
|
|||
#define TEACHDIFFERENCE 1
|
||||
|
||||
#define PEASANT_ADJUSTMENT 0
|
||||
#define GUARD_DISABLES_RECRUIT 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue