Project

General

Profile

Bug #2483 » 0001-POTENTIALLY_HOSTILE_PLAYER-Be-false-for-the-player-i-S3_2.patch

Sweet Tea Dorminy, 11/15/2026 01:47 AM

View differences:

ai/default/daiunit.h
(ptype->attack_strength * ptype->hp * ptype->firepower)
#define IS_ATTACKER(ptype) \
(ptype->attack_strength > ptype->transport_capacity)
/* A player's diplstate with itself is DS_NO_CONTACT, so test for self
* before NEVER_MET(). */
#define POTENTIALLY_HOSTILE_PLAYER(ait, pplayer, aplayer) \
(WAR(pplayer, aplayer) || NEVER_MET(pplayer, aplayer) \
|| dai_diplomacy_get(ait, pplayer, aplayer)->countdown >= 0)
((pplayer) != (aplayer) \
&& (WAR(pplayer, aplayer) || NEVER_MET(pplayer, aplayer) \
|| dai_diplomacy_get(ait, pplayer, aplayer)->countdown >= 0))
#define UNITTYPE_COSTS(ut) \
(ut->pop_cost * 3 + ut->happy_cost \
+ ut->upkeep[O_SHIELD] + ut->upkeep[O_FOOD] + ut->upkeep[O_GOLD])
(1-1/2)