diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-18 19:48:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-18 19:48:31 +0000 |
commit | 074132d6d67ef741e0cdef93b73943306133ae63 (patch) | |
tree | 4d6c1bdc6286794165e7a7f92510108ab132a4e3 /scripts/toy.groovy | |
parent | Fix image tagspec for leaving in bondage (diff) | |
download | toy-074132d6d67ef741e0cdef93b73943306133ae63.zip |
Unset outfit properties when dress() fails
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 3 |
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()); |