From 555521632db857d1f09318f3b486ebd9497d2734 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 Jan 2019 17:17:33 +0000 Subject: Add hidden option for permanent chastity between plays --- scripts/toy.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/toy.groovy b/scripts/toy.groovy index a043117..c819901 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -23,6 +23,7 @@ final BONDAGE = "bondage", CBT = "cbt", CHORES = "chores", PAIN = "pain"; final CUM = "cum", EDGE = "edge" final PERMIT = "permit"; final PLAY = "play"; +final PERM_CHASTE = "perm_chaste"; // toy.state. final CHASTE = "chaste", COLLARED = "collared", CUFFED = "cuffed", CLAMPED = "clamped", GAGGED = "gagged", NAKED = "naked"; final REDRESS = "redress"; @@ -156,6 +157,7 @@ def getDay = { (int)(getTime() / DAY) * DAY }; def has = {i -> loadBoolean("toys.$i") == true}; def likes = {i -> loadBoolean("fetish.$i") == true}; def can = {i -> loadBoolean("toy.permission.$i") == true}; +def perm = can; def givePermission = {i -> save("toy.permission.$i", true)}; def revokePermission = {i -> save("toy.permission.$i", false)}; def is = {i -> loadBoolean("toy.state.$i") == true}; @@ -1107,6 +1109,10 @@ def sessionRelease = { goodToy -> present([DRESSED], [ ["Ahhh,", "OK,"], ["I'm done with you for now.", "That was fun... for me at least."]]); + if (perm(PERM_CHASTE)) { + wait(getRandom(10) + 5); + postChastity(); + } } else { present([DRESSED], [ -- cgit v1.2.3