diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/toy/social.groovy | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/scripts/toy/social.groovy b/scripts/toy/social.groovy index 384b0a2..0a6c179 100644 --- a/scripts/toy/social.groovy +++ b/scripts/toy/social.groovy @@ -6,7 +6,7 @@  	toy.metaClass.setupPlan { plan, float startmin, float startmax, float endmin, float endmax ->  		final timeWindow = { float min, float max -> (int)((min * HOUR) - localTimeOffset() + getRandom((int)((max - min) * HOUR))) };  		final friendName = FRIENDS[getRandom(FRIENDS.size())]; -		final day = getDay() + ((getRandom(3) + 1) * DAY); +		final day = getDay() + ((getRandom(3) + (localTime() > startmin ? 1 : 0)) * DAY);  		addEventIfMissing(plan, day + timeWindow(startmin, startmax), BEGINPLAN,  				[friendName: friendName, returnTime: day + timeWindow(endmin, endmax)]);  	} | 
