Page 1 of 1
How to mod port bonus range?
Posted: Fri Jul 20, 2018 8:31 pm
by Kossatx
Hi! A few years ago I changed the port bonus range, but now I can't remember how I did it

I thought it was in the game.lua file, but I don't find it there. Anyone can help me?
Re: How to mod port bonus range?
Posted: Tue Jul 24, 2018 2:43 pm
by Robotron
Open game_supply.lua
look for the function called: "function AddPortSupply(alliance, hex)"
look for the line that reads:
hexes = game.map:GetHexesInRange(hex, 2)
change "2" to whatever number you want to change the range of the home water combat bonus.
Re: How to mod port bonus range?
Posted: Tue Jul 24, 2018 5:46 pm
by Kossatx
Robotron wrote: ↑Tue Jul 24, 2018 2:43 pm
Open game_supply.lua
look for the function called: "function AddPortSupply(alliance, hex)"
look for the line that reads:
hexes = game.map:GetHexesInRange(hex, 2)
change "2" to whatever number you want to change the range of the home water combat bonus.
Thanks a lot Robotron!
