Upgrading divisions




Upgrading divisions

Postby Matej von Jakubčo » Sun 9. Sep 2012, 10:18

Currently this mod is not using advantage of ne extremely interesting DH utility, ability to upgrade units to different types ( for this mod it would be for example ability to upgrade light infantry into infantry or elite infantry etc... )

All we need to do is modify files in db/units/division folders by adding something like this

of course for each unit type we have to modify time and upgrade cost factors ( since we are not using same unit types as in classic DH ).

upgrade = { type = garrison upgrade_time_factor = 0.40 upgrade_cost_factor = 0.48 }
upgrade = { type = bergsjaeger upgrade_time_factor = 0.62 upgrade_cost_factor = 1.29 }
upgrade = { type = paratrooper upgrade_time_factor = 0.62 upgrade_cost_factor = 1.97 }
upgrade = { type = marine upgrade_time_factor = 0.62 upgrade_cost_factor = 1.85 }
upgrade = { type = cavalry upgrade_time_factor = 0.9 upgrade_cost_factor = 0.65 }
upgrade = { type = motorized upgrade_time_factor = 0.65 upgrade_cost_factor = 1.72 }
upgrade = { type = mechanized upgrade_time_factor = 1 upgrade_cost_factor = 1.57 }


What do you think about this ?
User avatar
Matej von Jakubčo
 
Posts: 19
Joined: Thu 6. Sep 2012, 14:53
Location: Slovakia

by Advertising » Sun 9. Sep 2012, 10:18

Advertising
 

Re: Upgrading divisions

Postby Arturius » Sun 9. Sep 2012, 12:32

no objection. make it so!
User avatar
Arturius
Administrator
 
Posts: 459
Joined: Wed 15. Feb 2012, 14:20
Location: Erfurt, Germany

Re: Upgrading divisions

Postby Matej von Jakubčo » Sun 9. Sep 2012, 16:53

Arturius wrote:no objection. make it so!



All right. Once bugfixing is done I will try to create some first version of this ( since I will be just guessing correct values for cost of upgrade + time of it ).

Edit : Guessing was not needed, just slightly modified version of existing values should do for the first version.
User avatar
Matej von Jakubčo
 
Posts: 19
Joined: Thu 6. Sep 2012, 14:53
Location: Slovakia

Re: Upgrading divisions

Postby Matej von Jakubčo » Mon 10. Sep 2012, 18:06

First ( basic ) version of division upgrading implemented. Please check it and tell me your opinion about it....
User avatar
Matej von Jakubčo
 
Posts: 19
Joined: Thu 6. Sep 2012, 14:53
Location: Slovakia


Return to Mod1914

Who is online

No registered users

cron