idk what i broke lol

This commit is contained in:
duncathan 2020-03-13 03:25:12 -06:00
parent 9a7dac435d
commit 4c0b005e18
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,6 @@ if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then exit 0; fi
cd src
love-release
sudo xvfb-run --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
sudo xvfb-run -a --server-args="-screen 0 1024x768x24" love "releases/CaveStoryRandomizer.love" --daily
cat daily.txt
curl -H "Content-Type: application/json" -X POST -d @daily.txt "$WEBHOOK"

View File

@ -118,6 +118,11 @@ function generateDaily()
Randomizer.puppy = puppies.val
Randomizer.worldGraph.seqbreak = sequence.val
-- no matter what time of day you run the daily, it'll be consistent throughout the day
local date = os.date("*t", os.time())
date = {year = date[year], month = date[month], day = date[day]}
Randomizer.customseed = tostring(os.time(date))
local seed = Randomizer:_seedRngesus()
Randomizer:_updateSharecode(seed)
Randomizer:_shuffleItems()