mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -392,7 +392,7 @@ end
|
|||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
if v.stage == file_stage then
|
if v.stage == file_stage then
|
||||||
if v['setting'] then
|
if v.enabled and v['setting'] then
|
||||||
local v2 = settings.startup[v['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
@@ -413,7 +413,7 @@ end
|
|||||||
|
|
||||||
for _, v in pairs(items['equipment']) do
|
for _, v in pairs(items['equipment']) do
|
||||||
if v.stage == file_stage then
|
if v.stage == file_stage then
|
||||||
if v['setting'] then
|
if v.enabled and v['setting'] then
|
||||||
local v2 = settings.startup[v['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
local items = require 'config'
|
local items = require 'config'
|
||||||
|
local graphics_location = '__PHI-CL__/graphics/'
|
||||||
local main = require 'main'
|
local main = require 'main'
|
||||||
local file_stage = 1
|
local file_stage = 1
|
||||||
|
|
||||||
@@ -367,7 +368,7 @@ end
|
|||||||
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRAIN'].value then
|
if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRAIN'].value then
|
||||||
local item = table.deepcopy(data.raw['item']['used-up-uranium-fuel-cell'])
|
local item = table.deepcopy(data.raw['item']['used-up-uranium-fuel-cell'])
|
||||||
item.name = 'empty-train-battery'
|
item.name = 'empty-train-battery'
|
||||||
item.icon = '__PHI-CL__/graphics/battery.png'
|
item.icon = graphics_location .. 'battery.png'
|
||||||
item.order = 'qa'
|
item.order = 'qa'
|
||||||
item.stack_size = 100
|
item.stack_size = 100
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
@@ -377,7 +378,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRAIN'].value t
|
|||||||
name = 'empty-train-battery',
|
name = 'empty-train-battery',
|
||||||
energy_required = 30,
|
energy_required = 30,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
icon = '__PHI-CL__/graphics/battery.png',
|
icon = graphics_location .. 'battery.png',
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
icon_mipmaps = 4,
|
icon_mipmaps = 4,
|
||||||
subgroup = 'intermediate-product',
|
subgroup = 'intermediate-product',
|
||||||
@@ -401,7 +402,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRAIN'].value t
|
|||||||
item.name = 'charged-train-battery'
|
item.name = 'charged-train-battery'
|
||||||
item.burnt_result = 'empty-train-battery'
|
item.burnt_result = 'empty-train-battery'
|
||||||
item.fuel_value = '1GJ'
|
item.fuel_value = '1GJ'
|
||||||
item.icon = '__PHI-CL__/graphics/battery.png'
|
item.icon = graphics_location .. 'battery.png'
|
||||||
item.order = 'qb'
|
item.order = 'qb'
|
||||||
item.stack_size = 10
|
item.stack_size = 10
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
@@ -411,7 +412,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRAIN'].value t
|
|||||||
name = 'charged-train-battery',
|
name = 'charged-train-battery',
|
||||||
energy_required = 60,
|
energy_required = 60,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
icon = '__PHI-CL__/graphics/battery.png',
|
icon = graphics_location .. 'battery.png',
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
icon_mipmaps = 4,
|
icon_mipmaps = 4,
|
||||||
subgroup = 'intermediate-product',
|
subgroup = 'intermediate-product',
|
||||||
@@ -616,7 +617,7 @@ end
|
|||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
if v.stage == file_stage then
|
if v.stage == file_stage then
|
||||||
if v['setting'] then
|
if v.enabled and v['setting'] then
|
||||||
local v2 = settings.startup[v['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
@@ -637,7 +638,7 @@ end
|
|||||||
|
|
||||||
for _, v in pairs(items['equipment']) do
|
for _, v in pairs(items['equipment']) do
|
||||||
if v.stage == file_stage then
|
if v.stage == file_stage then
|
||||||
if v['setting'] then
|
if v.enabled and v['setting'] then
|
||||||
local v2 = settings.startup[v['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
|
local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
|
||||||
-- local graphics_location = '__PHI-CL__/graphics/'
|
|
||||||
local items = require 'config'
|
local items = require 'config'
|
||||||
local main = {}
|
local main = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user