sman1975
Emperor
Hello,
The mod I'm working on has a group of units - in this case heavy capital ships. I'd like to allow the Battleship to carry 1 "missile" - which doesn't help much until Advanced Ballistics, so it shouldn't break the game. The Battleship will upgrade to the Missile Cruiser which can carry 3 missiles.
To set this up, I would give the Battleship the PROMOTION_CARGO_I promotion, and the Missile Cruiser already has the PROMOTION_CARGO_III promotion from the normal game.
The problem is the Battleship carries the Cargo 1 promotion when upgraded, so Missile Cruisers upgraded from Battleships can carry 4 missiles, but newly built Missile Cruisers will only carry 3.
I'm thinking about changing the "LostWithUpgrade" on the Cargo promotions to TRUE so each unit would start with the same carrying capacity.
Can anyone think of any circumstance where that breaks anything with other units? Or is there a better (preferably non-LUA) method to prevent these cargo promotions stacking?
Thanks!
The mod I'm working on has a group of units - in this case heavy capital ships. I'd like to allow the Battleship to carry 1 "missile" - which doesn't help much until Advanced Ballistics, so it shouldn't break the game. The Battleship will upgrade to the Missile Cruiser which can carry 3 missiles.
To set this up, I would give the Battleship the PROMOTION_CARGO_I promotion, and the Missile Cruiser already has the PROMOTION_CARGO_III promotion from the normal game.
The problem is the Battleship carries the Cargo 1 promotion when upgraded, so Missile Cruisers upgraded from Battleships can carry 4 missiles, but newly built Missile Cruisers will only carry 3.
I'm thinking about changing the "LostWithUpgrade" on the Cargo promotions to TRUE so each unit would start with the same carrying capacity.
Can anyone think of any circumstance where that breaks anything with other units? Or is there a better (preferably non-LUA) method to prevent these cargo promotions stacking?
Thanks!