Feature #158 ยป 0001-AI-Reduce-space-part-want-on-wonder-city.patch
ai/default/daicity.c | ||
---|---|---|
if (is_wonder(pimprove)) {
|
||
if (is_great_wonder(pimprove)) {
|
||
wonder_player_id =
|
||
game.info.great_wonder_owners[improvement_index(pimprove)];
|
||
wonder_player_id
|
||
= game.info.great_wonder_owners[improvement_index(pimprove)];
|
||
}
|
||
wonder_city_id = pplayer->wonders[improvement_index(pimprove)];
|
||
}
|
ai/default/daieffects.c | ||
---|---|---|
&& (adv->dipl.spacerace_leader
|
||
|| adv->dipl.production_leader == pplayer
|
||
|| adv->dipl.tech_leader == pplayer)) {
|
||
v += 140;
|
||
if (pcity->id == adv->wonder_city) {
|
||
/* adjust_improvement_wants_by_effects() lowers want for any non-wonder
|
||
* target on wonder city. We want space part want reduced even more than
|
||
* regular buildings, as buildings are at least helping the specific city
|
||
* when finished. */
|
||
v += 80;
|
||
} else {
|
||
v += 140;
|
||
}
|
||
}
|
||
break;
|
||
case EFT_SPY_RESISTANT:
|
ai/default/daimilitary.c | ||
---|---|---|
CITY_LOG(LOG_DEBUG, pcity, "m_a_c_d does not want defenders");
|
||
}
|
||
}
|
||
} /* ok, don't need to defend */
|
||
} /* Ok, don't need to defend */
|
||
if (pcity->surplus[O_SHIELD] <= 0
|
||
|| pcity->feel[CITIZEN_UNHAPPY][FEELING_FINAL] > pcity->feel[CITIZEN_UNHAPPY][FEELING_EFFECT]
|