summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-08 19:30:01 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-08 19:30:01 +0100
commit74f9e025947ccbe62b7b818521863cc770e16b2a (patch)
treedf3b251385456cc52996b92bae5cd655880075b4 /scripts/toy.groovy
parentFix default removeRequest function (diff)
downloadtoy-74f9e025947ccbe62b7b818521863cc770e16b2a.zip
Tag all activities
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 597f71c..a77c5dd 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -40,6 +40,7 @@ return new Object() {
final SITTER = "sarah-james";
final SOFT = "soft";
final DISAPPOINT = "disappoint";
+ final PRE = "pre", INT = "int", PUNISH = "punish", REWARD = "reward", HUMILIATION = "humiliation";
final DATAFOLDER = getDataFolder();
// Imagery
@@ -303,9 +304,10 @@ return new Object() {
def setSessionAbort = { String r = null -> sessionAborted = r };
final activityList = [:];
- final addActivity = { String name, func, images = [] ->
+ final addActivity = { String name, func, images = [], tags = [] ->
activityList[name] = [
func: func,
+ tags: tags ?: [],
images: images ?: []
];
}