diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-13 11:27:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-13 11:27:51 +0000 |
commit | b3dd600aad40f346fd317576fee21591ee752bf9 (patch) | |
tree | 3ef945830874fb1f833f38df533d94939447f965 /scripts/toy.groovy | |
parent | Return after redress summon failure (diff) | |
download | toy-b3dd600aad40f346fd317576fee21591ee752bf9.zip |
Setup last thing before main loop
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 07145f2..9cdd26b 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1378,7 +1378,6 @@ def setupShowCalendar = { }; // GO! -setupInitial(); def getDayNum = { Math.floorDiv(getTime() + localTimeOffset() - 14400, 86400) }; def getAvail = { dayNum -> loadInteger("toy.availability.$dayNum") ?: 0 }; def addAvail = { amount -> @@ -1419,6 +1418,7 @@ if (plannedCheck(LUNCH) || plannedCheck(SHOPPING) || plannedCheck(PARTY)) { else { leaveNote(null, null); } +setupInitial(); final cycleTime = 6; while (true) { |