There's an error in
Individual crew member blurbs are genereated and added to
To fix: swap the order of marked two lines in the code above.
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:To fix: swap the order of marked two lines in the code above.
Last edited: