Forked from
pregmodfan / fc-pregmod
22516 commits behind the upstream repository.
-
ezsh authored
The SlaveSummary function was a long-long sheet of if's and it was practically unmaintainable. Refactor it into a list of rendering delgates, where delegates are set once and called without branching. Now we set delegates for each summary render call, but it can be done on game start and game loading.
ezsh authoredThe SlaveSummary function was a long-long sheet of if's and it was practically unmaintainable. Refactor it into a list of rendering delgates, where delegates are set once and called without branching. Now we set delegates for each summary render call, but it can be done on game start and game loading.
slaveSummaryHelpers.js 78.48 KiB