Modify build order (hopefully improve)
Fix whitespace
Gather statistics on weapon damage classes
Implement body class to weapon class adaptation
Fix typos found by Duha
Remove unused randomID() function, simplify random()
Fix != to !==
Simplify checking for undefined, fix typos along the way
Enable weapon class specific research adaptation
Disable some workarounds for game bugs that are now fixed
Add distance function to math
Add withChance function to math
rewrite countStructList to use reduce.
Fix whitespace
Fix off-by-one in withChance()
Add a comment on using random()
Remove workarounds for componentAvailable() bugs
Fix a typo in buildGateways()
Fix a typo in countStructList()
Simplify adaptive decisions code