From e169792e0983458da75d456fb62d4513f25b68c7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 16 Jun 2019 14:03:59 +0100 Subject: Count disappointments --- scripts/toy.groovy | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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 = { -- cgit v1.2.3