1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Merge pull request #191 from grilledham/master

added is-meltdown command
This commit is contained in:
grilledham 2018-06-21 12:24:12 +01:00 committed by GitHub
commit 4088d1ca87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,7 +161,16 @@ local function reactor_toggle()
end
end
local function is_meltdown()
if global.reactors_enabled then
player_print('Reactor metldown is enabled.')
else
player_print('Reactor metldown is disabled.')
end
end
commands.add_command('meltdown', 'Toggles if reactors blow up', reactor_toggle)
commands.add_command('is-meltdown', 'Prints if meltdown is enabled', is_meltdown)
Event.on_nth_tick(60, on_tick)
Event.add(defines.events.on_player_mined_entity, entity_destroyed)