[0.69.420-PUBLIC#1897] Crew blurbs partially missing

one_two

Well-Known Member
Jan 20, 2022
457
130
There's an error in crew() function in game_functions.js:

JavaScript:
function crew(counter = false, allcrew = false, btnSlot = 0)
{
// ...
    const mcObj = multiCrewInteractions();
    const crewMembers = mcObj.crewMembers;
    let crewMessages = mcObj.crewMessages;
// ...
    if (!counter) {
//...
        if (sortedKeys.length > 14) {
//...
        } else {
            addButton(btnSlot, `Crew`,
                () => {
                    clearMenu();
                    // Crew display
// !these two lines should be swapped
                    displayOutput();
                    buttonLoop(sortedKeys);
// !these two lines should be swapped
                }
            );
        }

Individual crew member blurbs are genereated and added to crewMessages in buttonLoop() function, while the results are displayed by displayOutput(). If there's no more than 14 crew members (i.e. pretty much always without cheats) then displayOutput() call will display incomplete blur list, before subsequent buttonLoop() had a chance to add the blurbs for individual members:

1650849454430.png

To fix: swap the order of marked two lines in the code above.
 
Last edited: