diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/toy.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index b47586a..d8651ff 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -31,7 +31,7 @@ final START = "start", END = "end", FRIEND = "friend"; final FRIENDS = [ "Tori", "Sophie", "Krystal" ]; // toy.position final KNEELING = "kneeling", ALLFOURS = "allfours", STANDING = "standing"; -final OWNER = "ancilla"; +def OWNER = null; final SITTER = "sarah-james"; final SOFT = "soft"; @@ -1384,6 +1384,8 @@ def setupShowCalendar = { }; // GO! +setDefault("toy.owner", "ancilla"); +OWNER = loadString("toy.owner"); def getDayNum = { Math.floorDiv(getTime() + localTimeOffset() - 14400, 86400) }; def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 }; def addAvail = { amount -> |