summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-01 17:17:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-01 17:17:33 +0000
commit555521632db857d1f09318f3b486ebd9497d2734 (patch)
tree7ce62a371aa3cd3436faf0a451d5b1c1aa0137c0
parentBack only causes reload in debug (diff)
downloadtoy-555521632db857d1f09318f3b486ebd9497d2734.zip
Add hidden option for permanent chastity between plays
-rw-r--r--scripts/toy.groovy6
1 files changed, 6 insertions, 0 deletions
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.<name>
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], [