Skip to content

Commit

Permalink
remove old config file
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Jan 17, 2024
1 parent a4c50ad commit ae7289c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 61 deletions.
21 changes: 0 additions & 21 deletions config.lua

This file was deleted.

8 changes: 0 additions & 8 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ for event, _ in pairs(gui_events) do
script.on_event(event, process_gui_event)
end

--Set up default MOD global variables
MOD = {}
MOD.name = 'pycoalprocessing'
MOD.fullname = 'PyCoalProcessing'
MOD.IF = 'PYC'
MOD.path = '__pycoalprocessing__'
MOD.config = require('config')

require 'scripts.wiki.wiki'
require 'scripts.wiki.text-pages'
require 'scripts.wiki.spreadsheet-pages'
Expand Down
41 changes: 9 additions & 32 deletions data-final-fixes.lua
Original file line number Diff line number Diff line change
@@ -1,37 +1,14 @@
local DEBUG = require('config').DEBUG

if DEBUG then
local developer = require('__stdlib__/stdlib/data/developer/developer')
developer.make_test_entities('pycoalprocessing')
end

--[[
--find all techs with utility science packs and log a list of names
local techs = {}
for t, tech in pairs(data.raw.technology) do
--log(tech.name)
if tech.unit ~= nil and tech.unit.ingredients ~= nil then
for i, ing in pairs(tech.unit.ingredients) do
--log(serpent.block(ing))
if string.match(ing[1], "utility") then
table.insert(techs, tech.name)
end
end
end
end
log(serpent.block(techs))
]]--

for r,recipe in pairs(data.raw.recipe) do
if recipe.category == "combustion" and not recipe.name:find("%-biomass$") then
local temp
for _,result in pairs(recipe.results) do
if result.name == "combustion-mixture1" then
temp = result.temperature
if mods.pyalternativenergy then
for _, recipe in pairs(data.raw.recipe) do
if not recipe.localised_name and recipe.category == 'combustion' and not recipe.name:find('%-biomass$') then
local temp
for _, result in pairs(recipe.results) do
if result.name == 'combustion-mixture1' then
temp = result.temperature
end
end
recipe.localised_name = {'recipe-name.' .. recipe.name, temp}
end
recipe.localised_name = {"recipe-name." .. recipe.name, temp}
end
end

Expand Down

0 comments on commit ae7289c

Please sign in to comment.