mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
Exploring units no longer auto-enter city states
This commit is contained in:
@ -114,7 +114,7 @@
|
|||||||
|
|
||||||
"declaringWar": "You are but a pest on this Earth, prepare to be eliminated!",
|
"declaringWar": "You are but a pest on this Earth, prepare to be eliminated!",
|
||||||
"attacked": "You are a fool who evokes pity. You have brought my hostility upon yourself and your repulsive civilization!",
|
"attacked": "You are a fool who evokes pity. You have brought my hostility upon yourself and your repulsive civilization!",
|
||||||
"defeated": "Strike me down and my soul will torment yours forever – you have won nothing.",
|
"defeated": "Strike me down and my soul will torment yours forever, you have won nothing.",
|
||||||
"introduction": "Greetings, I am Ramesses the god. I am the living embodiment of Egypt, mother and father of all civilizations.",
|
"introduction": "Greetings, I am Ramesses the god. I am the living embodiment of Egypt, mother and father of all civilizations.",
|
||||||
|
|
||||||
"neutralHello": "Good day.",
|
"neutralHello": "Good day.",
|
||||||
|
@ -389,6 +389,7 @@ class UnitAutomation {
|
|||||||
.filter {
|
.filter {
|
||||||
unit.movement.canMoveTo(it) && it.position !in unit.civInfo.exploredTiles
|
unit.movement.canMoveTo(it) && it.position !in unit.civInfo.exploredTiles
|
||||||
&& unit.movement.canReach(it)
|
&& unit.movement.canReach(it)
|
||||||
|
&& (it.getOwner()==null || !it.getOwner()!!.isCityState())
|
||||||
}
|
}
|
||||||
if (unexploredTilesAtDistance.isNotEmpty()) {
|
if (unexploredTilesAtDistance.isNotEmpty()) {
|
||||||
unit.movement.headTowards(unexploredTilesAtDistance.random())
|
unit.movement.headTowards(unexploredTilesAtDistance.random())
|
||||||
|
Reference in New Issue
Block a user