mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 20:21:40 +09:00
.
This commit is contained in:
@@ -392,8 +392,8 @@ 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 items['item']['setting'] then
|
if v['setting'] then
|
||||||
local v2 = settings.startup[items['item']['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
v.category = 'item'
|
v.category = 'item'
|
||||||
@@ -413,8 +413,8 @@ 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 items['item']['setting'] then
|
if v['setting'] then
|
||||||
local v2 = settings.startup[items['item']['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
v.category = 'equipment'
|
v.category = 'equipment'
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ if settings.startup['PHI-CT'].value and settings.startup['PHI-CT-TRASH'].value t
|
|||||||
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
local item = table.deepcopy(data.raw['item']['steel-chest'])
|
||||||
item.name = 'trash-chest'
|
item.name = 'trash-chest'
|
||||||
item.place_result = 'trash-chest'
|
item.place_result = 'trash-chest'
|
||||||
item.order = 'b[storage]-e[trash-chest]'
|
item.order = 'b[storage]-h[trash-chest]'
|
||||||
|
|
||||||
item.icons = {
|
item.icons = {
|
||||||
{
|
{
|
||||||
@@ -585,7 +585,7 @@ if settings.startup['PHI-MI'].value and settings.startup['PHI-MI-CHEST'].value t
|
|||||||
|
|
||||||
item.name = 'basic-' .. chests[i]
|
item.name = 'basic-' .. chests[i]
|
||||||
item.place_result = 'basic-' .. chests[i]
|
item.place_result = 'basic-' .. chests[i]
|
||||||
item.order = 'b[storage]-e[basic-' .. chests[i] .. ']'
|
item.order = 'b[storage]-h[basic-' .. chests[i] .. ']'
|
||||||
data:extend({item})
|
data:extend({item})
|
||||||
|
|
||||||
entity.inventory_type = 'with_filters_and_bar'
|
entity.inventory_type = 'with_filters_and_bar'
|
||||||
@@ -616,8 +616,8 @@ 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 items['item']['setting'] then
|
if v['setting'] then
|
||||||
local v2 = settings.startup[items['item']['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
v.category = 'item'
|
v.category = 'item'
|
||||||
@@ -637,8 +637,8 @@ 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 items['item']['setting'] then
|
if v['setting'] then
|
||||||
local v2 = settings.startup[items['item']['setting']].value
|
local v2 = settings.startup[v['setting']].value
|
||||||
|
|
||||||
if v2 >= v.min then
|
if v2 >= v.min then
|
||||||
v.category = 'equipment'
|
v.category = 'equipment'
|
||||||
|
|||||||
Reference in New Issue
Block a user