mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-11 18:39:43 +07:00
prevent city states from taunting you (#5409)
This commit is contained in:
parent
7752e1834d
commit
e4ff3d43d6
@ -525,6 +525,7 @@ class CityStateFunctions(val civInfo: CivilizationInfo) {
|
|||||||
/** A city state was attacked. What are its protectors going to do about it??? Also checks for Wary */
|
/** A city state was attacked. What are its protectors going to do about it??? Also checks for Wary */
|
||||||
fun cityStateAttacked(attacker: CivilizationInfo) {
|
fun cityStateAttacked(attacker: CivilizationInfo) {
|
||||||
if (!civInfo.isCityState()) return // What are we doing here?
|
if (!civInfo.isCityState()) return // What are we doing here?
|
||||||
|
if (attacker.isCityState()) return // City states can't be upset with each other
|
||||||
|
|
||||||
// We might become wary!
|
// We might become wary!
|
||||||
if (attacker.isMinorCivWarmonger()) { // They've attacked a lot of city-states
|
if (attacker.isMinorCivWarmonger()) { // They've attacked a lot of city-states
|
||||||
|
Loading…
Reference in New Issue
Block a user