Page 1 of 1

Repairing units

Posted: Wed Sep 23, 2020 9:01 am
by Kossatx
Hi again, ¿any idea about where is the function which penalizes repairing units in enermy original hexes? :?:

Re: Repairing units

Posted: Wed Sep 23, 2020 1:06 pm
by Robotron
The repair penalty is not for simply being on enemy hexes, but for being on enemy hexes in difficult terrain, namely dunes, deserts, swamps, mountains, rough.

function GetRepairCost(unit)

in game_repair.lua

Re: Repairing units

Posted: Wed Sep 23, 2020 1:53 pm
by Kossatx
Robotron wrote: Wed Sep 23, 2020 1:06 pm The repair penalty is not for simply being on enemy hexes, but for being on enemy hexes in difficult terrain, namely dunes, deserts, swamps, mountains, rough.

function GetRepairCost(unit)

in game_repair.lua
Ok, I thought it was a general penalty for being in enemy territory :mrgreen: Thanks Robotron!