Bug #1904 ยป 0059-AI-Reduce-war-countdown-to-2-turns-in-case-of-spaces.patch
| ai/default/daidiplomacy.c | ||
|---|---|---|
|
ai->diplomacy.strategy = WIN_SPACE; /* Yes! */
|
||
|
} else {
|
||
|
if (ai->diplomacy.strategy == WIN_SPACE) {
|
||
|
ai->diplomacy.strategy = WIN_OPEN;
|
||
|
ai->diplomacy.strategy = WIN_OPEN;
|
||
|
}
|
||
|
}
|
||
| ... | ... | |
|
/* This means war!!! */
|
||
|
pplayer->ai_common.love[player_index(aplayer)] -= MAX_AI_LOVE / 2;
|
||
|
DIPLO_LOG(ait, LOG_DIPL, pplayer, aplayer, "plans war due to spaceship");
|
||
|
war_countdown(ait, pplayer, aplayer, 4 + map_size_checked(),
|
||
|
DAI_WR_SPACE);
|
||
|
war_countdown(ait, pplayer, aplayer, 2, DAI_WR_SPACE);
|
||
|
}
|
||
|
} players_iterate_alive_end;
|
||
|
}
|
||