summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-23 13:39:21 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-23 14:08:13 +0100
commit01d47f8b989cf28fa114776e6b6d73e4dc09c2d6 (patch)
treec2b300cf1150a2840bfc973acac09fc9475a31ff /scripts/toy.groovy
parentExtract orgasm control into a module (diff)
downloadtoy-01d47f8b989cf28fa114776e6b6d73e4dc09c2d6.zip
Fix assignment to parent property bug
Fixes bug with assignment to DOMME and sessionAborted properties from metaClass method.
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 82427ac..5e2be3b 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -51,7 +51,7 @@ return new Object() {
if (!f.exists()) return [:];
return Eval.me(f.text);
};
- return [
+ DOMME = [
"$DATAFOLDER/images/toy/domme.groovy",
"$DATAFOLDER/images/toy/$domme/person.groovy",
"$DATAFOLDER/images/toy/$domme/$set/set.groovy" ]
@@ -1196,7 +1196,7 @@ return new Object() {
// GO!
setDefault("toy.owner", "ancilla");
OWNER = loadString("toy.owner");
- DOMME = loadDomme(OWNER);
+ loadDomme(OWNER);
loadModules(this);
def getDayNum = { Math.floorDiv(getTime() - localTimeOffset() - 14400, 86400) };
def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 };