summaryrefslogtreecommitdiff
path: root/scripts/toy.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r--scripts/toy.groovy2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index f5182aa..8f3a10a 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -160,6 +160,8 @@ def set = {i, s -> save("toy.state.$i", s)};
def positioned = { i -> loadString("toy.position") == i };
def getPunish = { loadInteger("toy.punishment") ?: 0; };
def adjustPunish = { p -> save("toy.punishment", Math.max(getPunish() + (int)p, 0)); };
+def getAway = { loadString("toy.owner.away") };
+def setAway = { a -> save("toy.owner.away", a) };
def namedEvents;
def loadEvents = {
return (loadMap("toy.events") ?: [:]);