The faction mod has sorta ran into an issue. Build.js is limited to a maximum of 15 units per bar (0-14). I tried to get around this by adding two of the same numbered units, but then one of them disappears and cann't be built. Anyone know how to fix this?
Nevermind, it was an easy fix by increasing the ITEMS_PER_ROW in live_game_build_bar.js but this is definitley not a practical way to add new build bars.
It actually makes sense from an object-oriented approach; you define var limits at the top level, and they filter down into child declarations, etc. Problem is, JS vanilla isn't designed very well for object-oriented programming (or really, programming at all ), you'd need something like Angular (urgh) or React to really build on this approach. Upvoting purely for being arsed to provide the fix you found <3 A lot of modders forget to do that with their own threads (in general, not just with PA), haha.