mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-10 16:08:13 -06:00
identify code locations that need to handle signal quality
This commit is contained in:
@@ -588,6 +588,7 @@ local function tick_poll_station(map_data, mod_settings)
|
|||||||
local item_name = v.signal.name
|
local item_name = v.signal.name
|
||||||
local item_count = v.count
|
local item_count = v.count
|
||||||
local item_type = v.signal.type
|
local item_type = v.signal.type
|
||||||
|
-- FIXME handle v.signal.quality
|
||||||
if item_name then
|
if item_name then
|
||||||
if item_type == "virtual" then
|
if item_type == "virtual" then
|
||||||
if item_name == SIGNAL_PRIORITY then
|
if item_name == SIGNAL_PRIORITY then
|
||||||
@@ -605,6 +606,7 @@ local function tick_poll_station(map_data, mod_settings)
|
|||||||
local item_name = v.signal.name
|
local item_name = v.signal.name
|
||||||
local item_count = v.count
|
local item_count = v.count
|
||||||
local item_type = v.signal.type
|
local item_type = v.signal.type
|
||||||
|
-- FIXME handle v.signal.quality
|
||||||
if item_name then
|
if item_name then
|
||||||
if item_type == "virtual" then
|
if item_type == "virtual" then
|
||||||
if item_name == SIGNAL_PRIORITY then
|
if item_name == SIGNAL_PRIORITY then
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ function inventory_tab.build(map_data, player_data)
|
|||||||
if comb1_signals then
|
if comb1_signals then
|
||||||
for _, signal_ID in pairs(comb1_signals) do
|
for _, signal_ID in pairs(comb1_signals) do
|
||||||
local item = signal_ID.signal.name
|
local item = signal_ID.signal.name
|
||||||
|
-- FIXME handle signal_ID.signal.quality
|
||||||
if item then
|
if item then
|
||||||
if item == search_item then
|
if item == search_item then
|
||||||
goto has_match
|
goto has_match
|
||||||
@@ -136,6 +137,7 @@ function inventory_tab.build(map_data, player_data)
|
|||||||
if station.is_stack and item_type == "item" then
|
if station.is_stack and item_type == "item" then
|
||||||
r_threshold = r_threshold*get_stack_size(map_data, item.name)
|
r_threshold = r_threshold*get_stack_size(map_data, item.name)
|
||||||
end
|
end
|
||||||
|
-- FIXME handle v.signal.quality
|
||||||
|
|
||||||
if -count >= r_threshold then
|
if -count >= r_threshold then
|
||||||
if inventory_requested[item.name] == nil then
|
if inventory_requested[item.name] == nil then
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ function stations_tab.build(map_data, player_data, query_limit)
|
|||||||
if comb1_signals then
|
if comb1_signals then
|
||||||
for _, signal_ID in pairs(comb1_signals) do
|
for _, signal_ID in pairs(comb1_signals) do
|
||||||
local item = signal_ID.signal.name
|
local item = signal_ID.signal.name
|
||||||
|
-- FIXME handle signal_ID.signal.quality
|
||||||
if item then
|
if item then
|
||||||
if item == search_item then
|
if item == search_item then
|
||||||
goto has_match
|
goto has_match
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ function util.slot_table_build_from_station(station)
|
|||||||
end
|
end
|
||||||
local count = v.count
|
local count = v.count
|
||||||
local name = item.name
|
local name = item.name
|
||||||
|
-- FIXME handle item.quality
|
||||||
local sprite, img_path, item_string = util.generate_item_references(name)
|
local sprite, img_path, item_string = util.generate_item_references(name)
|
||||||
if sprite ~= nil then
|
if sprite ~= nil then
|
||||||
local color
|
local color
|
||||||
@@ -181,6 +182,7 @@ function util.slot_table_build_from_control_signals(station, map_data)
|
|||||||
local item = v.signal
|
local item = v.signal
|
||||||
local count = v.count
|
local count = v.count
|
||||||
local name = item.name
|
local name = item.name
|
||||||
|
-- FIXME handle item.quality
|
||||||
local sprite = ""
|
local sprite = ""
|
||||||
local color = "default"
|
local color = "default"
|
||||||
if item.type ~= "virtual" then
|
if item.type ~= "virtual" then
|
||||||
|
|||||||
Reference in New Issue
Block a user