mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 13:56:20 +09:00
..
This commit is contained in:
@@ -4,6 +4,7 @@ Date: 2026-06-21
|
|||||||
|
|
||||||
Changes:
|
Changes:
|
||||||
- [GM] Generic code layout restructure.
|
- [GM] Generic code layout restructure.
|
||||||
|
- [MI] Introduced a virtual signal system to help item or entity searching.
|
||||||
|
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 3.0.148
|
Version: 3.0.148
|
||||||
|
|||||||
@@ -0,0 +1,179 @@
|
|||||||
|
local items = {
|
||||||
|
['tooltip'] = {
|
||||||
|
-- BASE ITEM 0
|
||||||
|
['electronic-circuit'] = {
|
||||||
|
type = 'item',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['advanced-circuit'] = {
|
||||||
|
type = 'item',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['processing-unit'] = {
|
||||||
|
type = 'item',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['automation-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['logistic-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
-- BASE ITEM 5
|
||||||
|
['military-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'grey'
|
||||||
|
},
|
||||||
|
['chemical-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['production-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'purple'
|
||||||
|
},
|
||||||
|
['utility-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['space-science-pack'] = {
|
||||||
|
type = 'tool',
|
||||||
|
color = 'white'
|
||||||
|
},
|
||||||
|
-- BASE ITEM 10
|
||||||
|
['speed-module'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['speed-module-2'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['speed-module-3'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['efficiency-module'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['efficiency-module-2'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
-- BASE ITEM 15
|
||||||
|
['efficiency-module-3'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['productivity-module'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['productivity-module-2'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['productivity-module-3'] = {
|
||||||
|
type = 'module',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
-- BASE ENTITY, ITEM 0
|
||||||
|
['transport-belt'] = {
|
||||||
|
type = 'transport-belt',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['fast-transport-belt'] = {
|
||||||
|
type = 'transport-belt',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['express-transport-belt'] = {
|
||||||
|
type = 'transport-belt',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['underground-belt'] = {
|
||||||
|
type = 'underground-belt',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['fast-underground-belt'] = {
|
||||||
|
type = 'underground-belt',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
-- BASE ENTITY, ITEM 5
|
||||||
|
['express-underground-belt'] = {
|
||||||
|
type = 'underground-belt',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['splitter'] = {
|
||||||
|
type = 'splitter',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['fast-splitter'] = {
|
||||||
|
type = 'splitter',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['express-splitter'] = {
|
||||||
|
type = 'splitter',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['passive-provider-chest'] = {
|
||||||
|
type = 'logistic-container',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
-- BASE ENTITY, ITEM 10
|
||||||
|
['storage-chest'] = {
|
||||||
|
type = 'logistic-container',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
['requester-chest'] = {
|
||||||
|
type = 'blue-container',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['buffer-chest'] = {
|
||||||
|
type = 'logistic-container',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['active-provider-chest'] = {
|
||||||
|
type = 'logistic-container',
|
||||||
|
color = 'purple'
|
||||||
|
},
|
||||||
|
['inserter'] = {
|
||||||
|
type = 'inserter',
|
||||||
|
color = 'yellow'
|
||||||
|
},
|
||||||
|
-- BASE ENTITY, ITEM 15
|
||||||
|
['long-handed-inserter'] = {
|
||||||
|
type = 'inserter',
|
||||||
|
color = 'red'
|
||||||
|
},
|
||||||
|
['fast-inserter'] = {
|
||||||
|
type = 'inserter',
|
||||||
|
color = 'blue'
|
||||||
|
},
|
||||||
|
['bulk-inserter'] = {
|
||||||
|
type = 'inserter',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['stack-inserter'] = {
|
||||||
|
type = 'inserter',
|
||||||
|
color = 'white'
|
||||||
|
},
|
||||||
|
-- SPACE_AGE ENTITY, ITEM 0
|
||||||
|
['turbo-transport-belt'] = {
|
||||||
|
type = 'transport-belt',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['turbo-underground-belt'] = {
|
||||||
|
type = 'underground-belt',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
['turbo-splitter'] = {
|
||||||
|
type = 'splitter',
|
||||||
|
color = 'green'
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return items
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
local mod_graphic_location = '__PHI-CL__/graphics/'
|
local mod_graphic_location = '__PHI-CL__/graphics/'
|
||||||
|
local items = require('mig-c')
|
||||||
local mod_tint = {
|
local mod_tint = {
|
||||||
[2] = {r=140, g=142, b=200},
|
[2] = {r=140, g=142, b=200},
|
||||||
[3] = {r=242, g=161, b=26},
|
[3] = {r=242, g=161, b=26},
|
||||||
@@ -695,3 +696,26 @@ if data.raw['container'] and data.raw['container']['steel-chest'] and data.raw['
|
|||||||
table.insert(data.raw.technology['rocket-silo'].effects, {type = 'unlock-recipe', recipe = 'proxy-cargo-landing-chest'})
|
table.insert(data.raw.technology['rocket-silo'].effects, {type = 'unlock-recipe', recipe = 'proxy-cargo-landing-chest'})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- GM-VP C 19 BASE ENTITY
|
||||||
|
-- GM-VP C 38 BASE ITEM
|
||||||
|
-- GM-VP C 3 SPACE_AGE ENTITY, ITEM
|
||||||
|
if items['tooltip'] and data.raw.item then
|
||||||
|
for k, v in pairs(items['tooltip']) do
|
||||||
|
if v.type and v.color and data.raw[v.type] and data.raw[v.type][k] then
|
||||||
|
if not data.raw[v.type][k].custom_tooltip_fields then
|
||||||
|
data.raw[v.type][k].custom_tooltip_fields = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(data.raw[v.type][k].custom_tooltip_fields, '[virtual-signal=signal-' .. v.color .. ']')
|
||||||
|
end
|
||||||
|
|
||||||
|
if v.color and data.raw.item[k] then
|
||||||
|
if not data.raw.item[k].custom_tooltip_fields then
|
||||||
|
data.raw.item[k].custom_tooltip_fields = {}
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(data.raw.item[k].custom_tooltip_fields, '[virtual-signal=signal-' .. v.color .. ']')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user