mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-03 06:04:02 +07:00
Welp forgot I was on debug mode
I should probably add in a pre-commit check
This commit is contained in:
parent
9d24fc0ff5
commit
096eb7935a
@ -38,7 +38,7 @@ class UncivGame(
|
||||
* This exists so that when debugging we can see the entire map.
|
||||
* 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 */
|
||||
val superchargedForDebug = false
|
||||
|
||||
|
@ -291,7 +291,7 @@ object UnitAutomation {
|
||||
// move into position far away enough that the bombard doesn't hurt
|
||||
if (tileToMoveTo != null)
|
||||
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)
|
||||
val militaryUnitsAroundEnemyCity =
|
||||
closestReachableEnemyCity.getTilesInDistance(3)
|
||||
|
Loading…
Reference in New Issue
Block a user