Free upkeep in ports

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Free upkeep in ports

Post by Kossatx »

Hi, I would like to remove free upkeep for ships in ports. Is it possible?
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2151
Joined: Tue Nov 23, 2010 3:35 pm

Re: Free upkeep in ports

Post by Robotron »

open script called:

game_resources.lua

Scroll down to:

function GetUpkeep(faction, pureArmyCost)

goto line 148 which should read:

Code: Select all

if unit.alive and unit.prototype.upkeepPP > 0 and not (unit.type == Unit.NAVAL and unit.hex.construction ~= nil) then
change that line to:

Code: Select all

if unit.alive and unit.prototype.upkeepPP > 0 then
Why do you want to change free upkeep anyway? Do you think it's unbalanced?
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: Free upkeep in ports

Post by Kossatx »

I only play against AI, and I think AI isn't smart enought to use ports to avoid fleets upkeep. That's the only reason I do it.
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”