fix operator precedent bug

This commit is contained in:
gambit 2024-10-11 17:27:47 +03:00
parent bfc8745539
commit fc990ee050

View file

@ -426,11 +426,11 @@ function C012_AfterClass_Amanda_ForceChangePlayer(NewCloth) {
function C012_AfterClass_Amanda_ForceRandomBondage(BondageType) {
if ((BondageType == "Full") || (BondageType == "Hug") || (BondageType == "Gag")) {
PlayerRandomGag();
if (!Common_PlayerGagged && (BondageType == "Gag")) OverridenIntroText = GetText("CantFindRestrain" + (BondageType == "Hug") ? "ForHug" : "");
if (!Common_PlayerGagged && (BondageType == "Gag")) OverridenIntroText = GetText("CantFindRestrain" + ((BondageType == "Hug") ? "ForHug" : ""));
}
if ((BondageType == "Full") || (BondageType == "Hug") || (BondageType == "Restrain")) {
PlayerRandomRestrain();
if (!Common_PlayerRestrained) OverridenIntroText = GetText("CantFindRestrain" + (BondageType == "Hug") ? "ForHug" : "");
if (!Common_PlayerRestrained) OverridenIntroText = GetText("CantFindRestrain" + ((BondageType == "Hug") ? "ForHug" : ""));
}
CurrentTime = CurrentTime + 50000;
}