Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turkey.lua Improvements #1014

Merged
merged 3 commits into from
Dec 4, 2019
Merged

Conversation

Zahir-Khan
Copy link
Member

Removed vanilla ore spawn.

@grilledham
Copy link
Collaborator

Line 150 could use Event.on_nth_tick

@Zahir-Khan
Copy link
Member Author

Line 150 could use Event.on_nth_tick

There was a mention of desync possibility, that is why I didn't use it and also I don't quite understand it fully.

@grilledham
Copy link
Collaborator

We use it a lot, so there shouldn't be any desync risk.

Something like this should work:

Event.on_nth_tick(36000,
    function(event)
            local message = turkey_message_random[math.random(#turkey_message_random)]
            game.print('[color=yellow][font=compi]' .. message .. '[/font][/color]')
    end
)

@Zahir-Khan
Copy link
Member Author

This closes #1013

@theorangeangle theorangeangle merged commit 17c433a into Refactorio:develop Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants