[Game Version: 0.69.420-PUBLIC#1814] Goo Shift Menu - Can't 'Revert Sack'

OrangeBurner

Well-Known Member
Mar 13, 2022
305
72
The gooShiftMenu allows you to 'Convert Sack' to the 'Goo' type.
But, you cannot 'Revert Sack' despite the fact code has already be made for the interaction.
'Convert Sack'.png

This is due to a incorrect if statement.
Original code: gooExtras.js, line: 2313:
JavaScript:
if (pc.scrotumType() != GLOBAL.SKIN_TYPE_GOO)
{
    if (pc.scrotumType() != GLOBAL.SKIN_TYPE_GOO) addButton(6, "Convert Sack", () => gooSpecialSack("convert"), "Convert Sack", "Convert your nutsack into goo.");
    else addButton(6, "Revert Sack", () => gooSpecialSack("revert"), "Revert Sack", "Remove your nutsack’s special properties.");
}

What I think it should be:
JavaScript:
if (pc.scrotumType() != GLOBAL.SKIN_TYPE_GOO)
{
    addButton(6, "Convert Sack", () => gooSpecialSack("convert"), "Convert Sack", "Convert your nutsack into goo.");
}
else
{   
    addButton(6, "Revert Sack", () => gooSpecialSack("revert"), "Revert Sack", "Remove your nutsack’s special properties.");
}

More so from that I think the "revert" part of the gooSpecialSack function is also incorrect.
It seems to just do the same thing as the 'convert' and turn the sack into goo again, I think it should turn it into skin at least.

Original code: gooExtras.js, line: 2343
JavaScript:
function gooSpecialSack(response = "none")
{
    clearOutputCodex();

    switch (response)
    {
        case "convert":
            outputCodex("You take a look at your [pc.sack]. Figuring, it looks a little wierd being " + (pc.scrotumType() == 0 ? "skin-covered, bald" : (GLOBAL.SKIN_TYPE_NAMES[pc.scrotumType()]).toLowerCase() + "-covered") + " and overal not-gooey, you decide to change that.");
            outputCodex("\n\nBeads of goo congregate across the surface of your nutsack until it is covered completely. Then with a little jiggle, your scrotum is fully converted back to goo... however it retains some of its unique properties. You’ll have to try this again if you want to completely get rid of it.");

            pc.scrotumTypeRaw = GLOBAL.SKIN_TYPE_GOO;
            pc.scrotumColorRaw = "";
            break;
        case "revert":
            outputCodex("While it was good while it lasted, you decide not to keep your scrotum special. With some concentration, the insides of your nutsack fizzes like a shaken soda bottle. Then, after all the little bubbles subside, your [pc.balls] feel");
            if (pc.balls == 1) outputCodex("s");
            outputCodex(" a little more normal. Still gooey, but normal.");

            pc.scrotumTypeRaw = GLOBAL.SKIN_TYPE_GOO; // Shouldn't turn sack into goo type again
            // Should be: pc.scrotumTypeRaw = GLOBAL.SKIN_TYPE_SKIN
            pc.scrotumColorRaw = "";
            break;
    }
    outputCodex(" Luckily, this change has come at no cost to you!");

    clearMenu();
    addButton(0, "Next", gooBallsMenu);
}