From 5788f24e1e69822586a4215a87204cdeab524283 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Emmanuel Zorg <zorgjeanbe@proton.me> Date: Fri, 7 Oct 2022 22:57:26 +0200 Subject: [PATCH] Check the SpankingToys type when doing the Gavel punishment in movie --- BondageClub/Screens/Room/MovieStudio/MovieStudio.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BondageClub/Screens/Room/MovieStudio/MovieStudio.js b/BondageClub/Screens/Room/MovieStudio/MovieStudio.js index 2bbc69d27e..ce610de328 100644 --- a/BondageClub/Screens/Room/MovieStudio/MovieStudio.js +++ b/BondageClub/Screens/Room/MovieStudio/MovieStudio.js @@ -803,7 +803,7 @@ function MovieStudioCanDoActivity(Activity) { if (Activity == "InterviewMistressWhip") return ((InventoryGet(Player, "ItemHands") != null) && (InventoryGet(Player, "ItemHands").Property.Type == "Whip")); if (Activity == "InterviewMistressProd") return ((InventoryGet(Player, "ItemHands") != null) && (InventoryGet(Player, "ItemHands").Property.Type == "CattleProd")); if (Activity == "InterviewMistressPunishCross") return !InventoryIsWorn(CurrentCharacter, "X-Cross", "ItemDevices"); - if (Activity == "InterviewMistressPunishGavel") return InventoryIsWorn(Player, "SpankingToys", "ItemHands"); + if (Activity == "InterviewMistressPunishGavel") return (InventoryIsWorn(Player, "SpankingToys", "ItemHands") && InventoryGet(Player, "ItemHands").Property.Type === "Gavel"); if (Activity == "InterviewWearDusterGag") return (InventoryGet(Player, "ItemMouth") == null); if (Activity == "InterviewLeaveHandItem") return !(InventoryGet(Player, "ItemHands") == null); if (Activity == "InterviewMaidFeatherDusterJournalist") return (InventoryIsWorn(Player, "SpankingToys", "ItemHands") && (InventoryGet(Player, "ItemHands").Property.Type == "FeatherDuster")); @@ -856,4 +856,4 @@ function MovieStudioGetLongDuster() { function MovieStudioGetMoney() { CharacterChangeMoney(Player, MovieStudioMoney); MovieStudioDirector.CurrentDialog = DialogFind(MovieStudioDirector, "MovieSalary").replace("SALARYAMOUNT", (MovieStudioMoney).toString()); -} \ No newline at end of file +} -- GitLab