Forged Alliance Forever Forged Alliance Forever Forums 2017-11-06T02:59:32+02:00 /feed.php?f=41&t=15386 2017-11-06T02:59:32+02:00 2017-11-06T02:59:32+02:00 /viewtopic.php?t=15386&p=156012#p156012 <![CDATA[Re: Remove commander upgrade limit.]]>
Mirrowel wrote:
Now because i could not find any info on how to remove that limit i am asking here.


Well, to change/modify the commander upgrade you have to change the commander itself and some gamefunctions:

File: lua/sim/Unit.lua
Modify the function "OnWorkBegin" and remove the "Prerequisite" code at line ~2861
Also remove the failcheck for already used slots in line ~2866

File: lua/ui/game/construction.lua
Modify the function "OrderEnhancement" to prevent removing of already installed enhancements in line ~1228
Modify the function "OnClickHandler". Search for "item.type == 'enhancement'". Then patch the icon management. Line 1482-1523

This will remove the buildlimitation.

greetings, Uveso.

Statistics: Posted by Uveso — 06 Nov 2017, 02:59


]]>
2017-11-04T20:33:11+02:00 2017-11-04T20:33:11+02:00 /viewtopic.php?t=15386&p=155958#p155958 <![CDATA[Remove commander upgrade limit.]]> Now because i could not find any info on how to remove that limit i am asking here.

Statistics: Posted by Mirrowel — 04 Nov 2017, 20:33


]]>