mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
Welp forgot I was on debug mode
I should probably add in a pre-commit check
This commit is contained in:
@ -38,7 +38,7 @@ class UncivGame(
|
|||||||
* This exists so that when debugging we can see the entire map.
|
* This exists so that when debugging we can see the entire map.
|
||||||
* Remember to turn this to false before commit and upload!
|
* Remember to turn this to false before commit and upload!
|
||||||
*/
|
*/
|
||||||
var viewEntireMapForDebug = true
|
var viewEntireMapForDebug = false
|
||||||
/** For when you need to test something in an advanced game and don't have time to faff around */
|
/** For when you need to test something in an advanced game and don't have time to faff around */
|
||||||
val superchargedForDebug = false
|
val superchargedForDebug = false
|
||||||
|
|
||||||
|
@ -291,7 +291,7 @@ object UnitAutomation {
|
|||||||
// move into position far away enough that the bombard doesn't hurt
|
// move into position far away enough that the bombard doesn't hurt
|
||||||
if (tileToMoveTo != null)
|
if (tileToMoveTo != null)
|
||||||
unit.movement.headTowards(tileToMoveTo)
|
unit.movement.headTowards(tileToMoveTo)
|
||||||
} else {
|
} else { // unit range <= 2
|
||||||
// calculate total damage of units in surrounding 4-spaces from enemy city (so we can attack a city from 2 directions at once)
|
// calculate total damage of units in surrounding 4-spaces from enemy city (so we can attack a city from 2 directions at once)
|
||||||
val militaryUnitsAroundEnemyCity =
|
val militaryUnitsAroundEnemyCity =
|
||||||
closestReachableEnemyCity.getTilesInDistance(3)
|
closestReachableEnemyCity.getTilesInDistance(3)
|
||||||
|
Reference in New Issue
Block a user