Exclude Sats, lasertowers, etc. from the repair array in main.
I modified my local copy of: plugin.tatakau.repair.main
I increased the wait to 50ms and the global script took 22 seconds to complete. After looking around a lot I finally realized I was running on too many things.
In main:
Code: Select all
$ships = get ship array: of race Player class/type=Ship
Code: Select all
$ships = get ship array: of race Player class/type=Moveable Ship
Have I bugged something or is this a real performance gain?
------------------------------------------------------------------------
On an unrelated note (continuing the 'it feel like cheating' thread)
I suggest you modify repair.single to return TRUE if the shields are down.
The marines are busy trying to get the shields up before they will attempt to repair hull and armor.
I assume my Marines are repairing the ship from within, but they won't stand next to the outer hull while it's taking damage.
----------------------------------------------------------
If you want to make repairs less frequent, modify the Artificial life timer in plugin.tatakau.repair.al:
search for 'timer interval'