mirror of
https://asciireactor.com/factorio/adamo-physics.git
synced 2024-11-23 14:15:06 +00:00
Update to use latest adamo interface.
This commit is contained in:
parent
4fc594496f
commit
cdcad5345d
@ -64,18 +64,18 @@ end
|
|||||||
local set_burner_colors = function(entity)
|
local set_burner_colors = function(entity)
|
||||||
local entity = entity_or_bust(entity)
|
local entity = entity_or_bust(entity)
|
||||||
if not entity then return end
|
if not entity then return end
|
||||||
local burner = table_or_bust(get_energy_source(entity))
|
local burner = table_or_bust(adamo.entity.get.energy_source(entity))
|
||||||
if not burner then return end
|
if not burner then return end
|
||||||
local color
|
local color
|
||||||
if burner.type == "fluid" and burner.burns_fluid then
|
if burner.type == "fluid" and burner.burns_fluid then
|
||||||
color = colors.gas_fire_glow
|
color = adamo.colors.gas_fire_glow
|
||||||
elseif uses_fuel_type("chemical",entity) then
|
elseif adamo.entity.test.uses_fueltype("chemical",entity) then
|
||||||
color = colors.chemical_fire_glow
|
color = adamo.colors.chemical_fire_glow
|
||||||
elseif burner.type == "heat" then
|
elseif burner.type == "heat" then
|
||||||
color = colors.chemical_fire_glow
|
color = adamo.colors.chemical_fire_glow
|
||||||
else return end
|
else return end
|
||||||
local min_size = 0.05*get_collision_hypotenuse(entity)
|
local min_size = 0.05*adamo.entity.get.collision_hypotenuse(entity)
|
||||||
local glow_num = 0.3*get_collision_hypotenuse(entity)
|
local glow_num = 0.3*adamo.entity.get.collision_hypotenuse(entity)
|
||||||
burner.light_flicker = {
|
burner.light_flicker = {
|
||||||
color = color,
|
color = color,
|
||||||
minimum_light_size = min_size,
|
minimum_light_size = min_size,
|
||||||
@ -235,7 +235,7 @@ for _,panel in pairs(data.raw["solar-panel"]) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _,battery in pairs(data.raw["accumulator"]) do
|
for _,battery in pairs(data.raw["accumulator"]) do
|
||||||
local energy_source = get_energy_source(battery)
|
local energy_source = adamo.entity.get.energy_source(battery)
|
||||||
if energy_source then
|
if energy_source then
|
||||||
energy_source.input_flow_limit =
|
energy_source.input_flow_limit =
|
||||||
energy_mult(
|
energy_mult(
|
||||||
|
@ -15,8 +15,8 @@ heu_fuel_reproc.results = {{"uranium-238",5}}
|
|||||||
heu_fuel_item.fuel_value = "100GJ"
|
heu_fuel_item.fuel_value = "100GJ"
|
||||||
|
|
||||||
|
|
||||||
-- Increasing height of plumbing entities
|
-- Increased height of vanilla fluid boxes.
|
||||||
-- improves megareactor performance.
|
-- Improves megareactor performance.
|
||||||
|
|
||||||
-- water pump
|
-- water pump
|
||||||
data.raw["offshore-pump"]["offshore-pump"]
|
data.raw["offshore-pump"]["offshore-pump"]
|
||||||
|
Loading…
Reference in New Issue
Block a user