1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-05 15:05:57 +02:00

added is-meltdown command

This commit is contained in:
grilledham 2018-06-21 12:20:07 +01:00
parent 86b9878736
commit 0b969649c8

View File

@ -161,7 +161,16 @@ local function reactor_toggle()
end end
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('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.on_nth_tick(60, on_tick)
Event.add(defines.events.on_player_mined_entity, entity_destroyed) Event.add(defines.events.on_player_mined_entity, entity_destroyed)