mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-09 00:14:37 +00:00
idk what i broke lol
This commit is contained in:
parent
9a7dac435d
commit
4c0b005e18
2
daily.sh
2
daily.sh
|
@ -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"
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue