The ZK attributes gadget is an interface for changing reload times and movement speeds. It is well tested and deals with the edge cases. It also does a lot of other stuff and the interface is not great; it works on UnitRulesParams (good) but you have to change the gadget to make it listen to the UnitRulesParam (bad).
The ZK attributes gadget is an interface for changing reload times and movement speeds. It is well tested and deals with the edge cases. It also does a lot of other stuff and the interface is not great; it works on UnitRulesParams (good) but you have to change the gadget to make it listen to the UnitRulesParam (bad).
A generic version of the gadget should be created to save on edge case management. https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Gadgets/unit_attributes.lua