summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-12-18 19:48:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2018-12-18 19:48:31 +0000
commit074132d6d67ef741e0cdef93b73943306133ae63 (patch)
tree4d6c1bdc6286794165e7a7f92510108ab132a4e3 /scripts
parentFix image tagspec for leaving in bondage (diff)
downloadtoy-074132d6d67ef741e0cdef93b73943306133ae63.zip
Unset outfit properties when dress() fails
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toy.groovy3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index 5ae388a..a33959c 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -118,6 +118,9 @@ def dress = { specs ->
outfit = selectImageSet(OWNER, specs);
if (!outfit) {
showPopup("No outfit for $OWNER : $specs");
+ save("toy.owner.outfit", null);
+ save("toy.owner.outfitTime", null);
+ return;
}
save("toy.owner.outfit", outfit.set);
save("toy.owner.outfitTime", getTime());