summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-06-16 14:03:59 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-06-16 14:03:59 +0100
commite169792e0983458da75d456fb62d4513f25b68c7 (patch)
tree1505b5e2d101c0d5aa407f364ca9770c38dfe3ed /scripts/toy.groovy
parentMake last suck in stage harsher (diff)
downloadtoy-e169792e0983458da75d456fb62d4513f25b68c7.zip
Count disappointments
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 052d78d..50661f8 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -42,6 +42,7 @@ return new Object() {
def DOMME = null;
final SITTER = "sarah-james";
final SOFT = "soft";
+ final DISAPPOINT = "disappoint";
final DATAFOLDER = getDataFolder();
// Imagery
@@ -1528,6 +1529,9 @@ return new Object() {
if (goodToy) {
adjustPunish(-20);
}
+ else {
+ setProp(DISAPPOINT, getProp(DISAPPOINT, loadI, 0) + 1);
+ }
show(null);
};
def playActivity = {