Page 1 of 1

1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 1:14 pm
by jrone
Searched forums but did not find anything on this so maybe it is intended.
Anyways if you disband a unit Mp is calculated using .costPP as base (see code below).
For exemple if Austria disbands their BB they get 124 Mp. If you disband a garrison you get 10 Mp back etc.



function GetDisbandRefund(unit)
local PPrefund
local MPrefund
if unit.type ~= Unit.NAVAL then
if unit.hex.originalFaction.alliance.id == unit.faction.alliance.id then
if unit.hex.originalFaction.id == unit.faction.id then
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
else
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 25 / 10000)
end
else
PPrefund = 0
end
if unit.hex.originalFaction.alliance.id == unit.faction.alliance.id then
if unit.hex.originalFaction.id == unit.faction.id then
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 100 / 10000)
else
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
end
else
MPrefund = 0
end
else
PPrefund = math.floor(unit.prototype.costPP * unit.hp * 50 / 10000)
* MPrefund = math.floor(unit.prototype.costPP * unit.hp * 100 / 10000)

return PPrefund, MPrefund
end

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 4:34 pm
by Vyper
I don't think getting MP back from disbanding is currently working. I actually got through my first single player campaign this weekend, and in the end game the CP powers started to disband the massive armies I had returning from Russia....and 0 MP increases (Except for a very small seasonal increase in MP, which I'm guessing is just a part of the game).

Seems like bad bait though...doesn't the game messages say disbanding a BB flotilla cost 30% National Morale?

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 5:05 pm
by jrone
It is working but...
If your unit is inside its original country borders you get 100% refund of MP and 50 % of PP.
If your unit is inside orginal alliance borders but outisde its own country you get 50% refund of MP and 25 % of PP.
Any other case and you get 0.

Naval units don't have these restrictions they just need to be in a port and always yield 100% of MP and 50% of PP.

The bug lets you trade PP for manpower if you wish though. You can build artillery for 50 PP and 5 MP and disband it for 25 PP and 50 MP as long as it stays inside its original country border. Or build a submarine for 22 PP and 1 MP and disband it for 11 PP and 22 MP. I agree that disbanding the BB is not a smart move though [;)] .

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 5:07 pm
by Hellfirejet
This has been rectified in the next Game Play patch I'm working on now cheers.when it should have been returning MP it has been returning addition PP.[;)]

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 5:11 pm
by jrone
Thanks, good to know.
Though it is returning MP and not extra PP. Just alot of extra MP [:)].

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 5:17 pm
by Hellfirejet
The disband problem was discussed in this thread a couple of weeks back,you can read about it here.[:)]

tm.asp?m=3659671

RE: 1.5.1 Disband manpower bug?

Posted: Mon Aug 04, 2014 5:22 pm
by jrone
Oh sorry I must have missed that thread somehow when I did a search.
Nevermind then nothing to see here [8|].