1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-21 19:20:07 +02:00

Manually enable loaders in 1000x, improve doc redmew_qol

This commit is contained in:
plague006 2019-02-10 14:35:18 -05:00
parent 552f8aab2e
commit bcaef1a570
2 changed files with 4 additions and 6 deletions

View File

@ -1,10 +1,5 @@
-- Assorted quality of life improvements that are restricted in scope. Similar to redmew_commands but event-based rather than command-based.
-- This file has each module in 3 parts.
-- The local functions (including at least 1 tokenized function) are located below the "Local functions" comment
-- The functions which register and remove the events (allowing for runtime enabling/disabling of features) are located below the "Event registers" comment
-- Lastly the public get/set functions are located after the "Getters/setters" comment
-- Dependencies
local Token = require 'utils.token'
local Event = require 'utils.event'

View File

@ -184,9 +184,12 @@ Event.on_init(
-- Techs
force.technologies['automation'].researched = true
force.technologies['logistics'].researched = true
force.technologies['turrets'].researched = true
force.technologies['military'].researched = true
force.technologies['logistics'].researched = true
if config.redmew_qol.enabled and config.redmew_qol.loaders.enabled then
force.recipes['loader'].enabled = true
end
-- DayNight call
DayNight.set_fixed_brightness(1, RS.get_surface())