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) { function C012_AfterClass_Amanda_ForceRandomBondage(BondageType) {
if ((BondageType == "Full") || (BondageType == "Hug") || (BondageType == "Gag")) { if ((BondageType == "Full") || (BondageType == "Hug") || (BondageType == "Gag")) {
PlayerRandomGag(); 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")) { if ((BondageType == "Full") || (BondageType == "Hug") || (BondageType == "Restrain")) {
PlayerRandomRestrain(); PlayerRandomRestrain();
if (!Common_PlayerRestrained) OverridenIntroText = GetText("CantFindRestrain" + (BondageType == "Hug") ? "ForHug" : ""); if (!Common_PlayerRestrained) OverridenIntroText = GetText("CantFindRestrain" + ((BondageType == "Hug") ? "ForHug" : ""));
} }
CurrentTime = CurrentTime + 50000; CurrentTime = CurrentTime + 50000;
} }