mirror of
https://github.com/peter-tanner/Factorio-Dieselpunk.git
synced 2024-11-30 11:10:21 +08:00
Testing rotation fixes
This commit is contained in:
parent
22c3e93def
commit
10103ab4e0
3
Liquid_Fueled_0.1.0/control.lua
Normal file
3
Liquid_Fueled_0.1.0/control.lua
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
script.on_event(defines.events.on_player_rotated_entity, function(event)
|
||||||
|
game.print("rotated")
|
||||||
|
end)
|
BIN
Liquid_Fueled_0.1.0/graphics/empty.png
Normal file
BIN
Liquid_Fueled_0.1.0/graphics/empty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 225 B |
|
@ -26,26 +26,19 @@ for _, entities in pairs(entities) do
|
||||||
fluid_box =
|
fluid_box =
|
||||||
{
|
{
|
||||||
production_type = "input",
|
production_type = "input",
|
||||||
pipe_picture = assembler2pipepictures(),
|
pipe_picture = assembler3pipepictures(),
|
||||||
pipe_covers = pipecoverspictures(),
|
pipe_covers = pipecoverspictures(),
|
||||||
base_area = 5,
|
base_area = 5,
|
||||||
base_level = -1,
|
base_level = -1,
|
||||||
filter = "fuel-gas",
|
filter = "fuel-gas",
|
||||||
pipe_connections = {{ type="input", position = {-0.5, -1.5}}}
|
pipe_connections = {{ type="input", position = {-0.5, -math.abs(entity.selection_box[1][2])-0.5}}},
|
||||||
|
secondary_draw_orders = { north = -1 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if entity.fluid_boxes == nil then
|
if entity.fluid_boxes == nil then
|
||||||
entity.fluid_boxes = {}
|
entity.fluid_boxes = {}
|
||||||
|
-- else
|
||||||
|
-- entity.fluid_boxes.off_when_no_fluid_recipe = false
|
||||||
end
|
end
|
||||||
entity.fluid_boxes[#entity.fluid_boxes+1] =
|
|
||||||
{
|
|
||||||
production_type = "output",
|
|
||||||
-- pipe_covers = pipecoverspictures(), --TODO: ADD NULL PIPE COVER PICTURES
|
|
||||||
base_area = 10^-5,
|
|
||||||
base_level = 0,
|
|
||||||
-- filter = "water", --TODO: ADD NULL FILTER WITH NULL IMAGE. try the filter = "none" first
|
|
||||||
pipe_connections = {{ type="output", position = {0, entity.selection_box[2][2]}}}
|
|
||||||
}
|
|
||||||
entity.fluid_boxes.off_when_no_fluid_recipe = false
|
|
||||||
data:extend({entity})
|
data:extend({entity})
|
||||||
end
|
end
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
data:extend(
|
data:extend(
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -10,10 +8,10 @@ data:extend(
|
||||||
type = "fluid",
|
type = "fluid",
|
||||||
name = "fuel-gas",
|
name = "fuel-gas",
|
||||||
default_temperature = 24,
|
default_temperature = 24,
|
||||||
base_color = {r=0, g=0, b=0},
|
base_color = {r=0.57, g=0.33, b=0},
|
||||||
flow_color = {r=0.5, g=0.5, b=0.5},
|
flow_color = {r=1, g=0.73, b=0.07},
|
||||||
max_temperature = 1000,
|
max_temperature = 100,
|
||||||
icon = "__base__/graphics/icons/fluid/crude-oil.png",
|
icon = "__base__/graphics/icons/fluid/light-oil.png",
|
||||||
icon_size = 32,
|
icon_size = 32,
|
||||||
pressure_to_speed_ratio = 0.4,
|
pressure_to_speed_ratio = 0.4,
|
||||||
flow_to_energy_ratio = 0.59,
|
flow_to_energy_ratio = 0.59,
|
||||||
|
@ -21,6 +19,25 @@ data:extend(
|
||||||
fuel_value = "0.01MJ",
|
fuel_value = "0.01MJ",
|
||||||
fuel_category = "basic-fuel",
|
fuel_category = "basic-fuel",
|
||||||
order = "a[fluid]-b[crude-oil]"
|
order = "a[fluid]-b[crude-oil]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "rotate",
|
||||||
|
category = "crafting-with-fluid",
|
||||||
|
energy_required = 1,
|
||||||
|
ingredients =
|
||||||
|
{
|
||||||
|
{type="fluid", name="null", amount=10^-10}
|
||||||
|
},
|
||||||
|
results=
|
||||||
|
{
|
||||||
|
{type="fluid", name="null", amount=10^-10}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
)
|
local null = util.table.deepcopy(data.raw["fluid"]["water"])
|
||||||
|
null.name = "null"
|
||||||
|
null.icon = "__Liquid_Fueled__/graphics/empty.png"
|
||||||
|
null.icon_size = 32
|
||||||
|
null.order = "a[fluid]-a[null]"
|
||||||
|
data:extend({null})
|
Loading…
Reference in New Issue
Block a user