mirror of
https://github.com/peter-tanner/Oil-refinery-overhaul.git
synced 2024-11-30 14:20:23 +08:00
forgot to add renamed dir
This commit is contained in:
parent
edbfe4dbfd
commit
46fa805bfa
4
Refinery_overhaul_0.1.0/data.lua
Normal file
4
Refinery_overhaul_0.1.0/data.lua
Normal file
|
@ -0,0 +1,4 @@
|
|||
require("prototypes.entity")
|
||||
require("prototypes.item")
|
||||
--require("prototypes.recipe")
|
||||
--require("prototypes.technology")
|
10
Refinery_overhaul_0.1.0/info.json
Normal file
10
Refinery_overhaul_0.1.0/info.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "Refinery_overhaul",
|
||||
"version": "0.1.0",
|
||||
"factorio_version": "0.16",
|
||||
"title": "Oil Refinery Overhaul",
|
||||
"author": "npc_strider(morley376)",
|
||||
"contact": "",
|
||||
"homepage": "http://steamcommunity.com/id/morley376",
|
||||
"description": "Removes the oil-refinery entity and replaces it with an in-world method of constructing distileries"
|
||||
}
|
263
Refinery_overhaul_0.1.0/prototypes/entity.lua
Normal file
263
Refinery_overhaul_0.1.0/prototypes/entity.lua
Normal file
|
@ -0,0 +1,263 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "assembling-machine",
|
||||
name = "heat-test",
|
||||
icon = "__base__/graphics/icons/chemical-plant.png",
|
||||
icon_size = 32,
|
||||
flags = {"placeable-neutral","placeable-player", "player-creation"},
|
||||
minable = {hardness = 0.2, mining_time = 0.5, result = "chemical-plant"},
|
||||
max_health = 300,
|
||||
corpse = "big-remnants",
|
||||
dying_explosion = "medium-explosion",
|
||||
collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
|
||||
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
|
||||
drawing_box = {{-1.5, -1.9}, {1.5, 1.5}},
|
||||
module_specification =
|
||||
{
|
||||
module_slots = 3
|
||||
},
|
||||
allowed_effects = {"consumption", "speed", "productivity", "pollution"},
|
||||
energy_usage = "210kW",
|
||||
--[[energy_source =
|
||||
{
|
||||
type = "electric",
|
||||
usage_priority = "secondary-input",
|
||||
emissions = 0.03 / 3.5
|
||||
},]]
|
||||
energy_source =
|
||||
{
|
||||
type = "heat",
|
||||
max_temperature = 1000,
|
||||
specific_heat = "1MJ",
|
||||
max_transfer = "2GW",
|
||||
connections =
|
||||
{
|
||||
{
|
||||
position = {0, -1.2+0.25},
|
||||
direction = defines.direction.north
|
||||
}
|
||||
},
|
||||
pipe_covers =
|
||||
|
||||
make_4way_animation_from_spritesheet(
|
||||
{
|
||||
filename = "__base__/graphics/entity/heat-exchanger/heatex-endings.png",
|
||||
line_length = 4,
|
||||
width = 32,
|
||||
height = 32,
|
||||
direction_count = 4,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/heat-exchanger/hr-heatex-endings.png",
|
||||
line_length = 4,
|
||||
width = 64,
|
||||
height = 64,
|
||||
direction_count = 4,
|
||||
scale = 0.5
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
animation = make_4way_animation_from_spritesheet({ layers =
|
||||
{
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/chemical-plant.png",
|
||||
width = 122,
|
||||
height = 134,
|
||||
frame_count = 1,
|
||||
shift = util.by_pixel(-5, -4.5),
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-chemical-plant.png",
|
||||
width = 244,
|
||||
height = 268,
|
||||
frame_count = 1,
|
||||
shift = util.by_pixel(-5, -4.5),
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/chemical-plant-shadow.png",
|
||||
width = 175,
|
||||
height = 110,
|
||||
frame_count = 1,
|
||||
shift = util.by_pixel(31.5, 11),
|
||||
draw_as_shadow = true,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-chemical-plant-shadow.png",
|
||||
width = 350,
|
||||
height = 219,
|
||||
frame_count = 1,
|
||||
shift = util.by_pixel(31.5, 10.75),
|
||||
draw_as_shadow = true,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
}}),
|
||||
working_visualisations =
|
||||
{
|
||||
{
|
||||
north_position = util.by_pixel(30, -24),
|
||||
west_position = util.by_pixel(1, -49.5),
|
||||
south_position = util.by_pixel(-30, -48),
|
||||
east_position = util.by_pixel(-11, -1),
|
||||
apply_recipe_tint = "primary",
|
||||
animation =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/boiling-green-patch.png",
|
||||
frame_count = 32,
|
||||
width = 15,
|
||||
height = 10,
|
||||
animation_speed = 0.5,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-boiling-green-patch.png",
|
||||
frame_count = 32,
|
||||
width = 30,
|
||||
height = 20,
|
||||
animation_speed = 0.5,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
north_position = util.by_pixel(30, -24),
|
||||
west_position = util.by_pixel(1, -49.5),
|
||||
south_position = util.by_pixel(-30, -48),
|
||||
east_position = util.by_pixel(-11, -1),
|
||||
apply_recipe_tint = "secondary",
|
||||
animation =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/boiling-green-patch-mask.png",
|
||||
frame_count = 32,
|
||||
width = 15,
|
||||
height = 10,
|
||||
animation_speed = 0.5,
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-boiling-green-patch-mask.png",
|
||||
frame_count = 32,
|
||||
width = 30,
|
||||
height = 20,
|
||||
animation_speed = 0.5,
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
apply_recipe_tint = "tertiary",
|
||||
north_position = {0, 0},
|
||||
west_position = {0, 0},
|
||||
south_position = {0, 0},
|
||||
east_position = {0, 0},
|
||||
north_animation =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png",
|
||||
frame_count = 1,
|
||||
width = 87,
|
||||
height = 60,
|
||||
shift = util.by_pixel(0, -5),
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png",
|
||||
x = 0,
|
||||
frame_count = 1,
|
||||
width = 174,
|
||||
height = 119,
|
||||
shift = util.by_pixel(0, -5.25),
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
east_animation =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png",
|
||||
x = 87,
|
||||
frame_count = 1,
|
||||
width = 87,
|
||||
height = 60,
|
||||
shift = util.by_pixel(0, -5),
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png",
|
||||
x = 174,
|
||||
frame_count = 1,
|
||||
width = 174,
|
||||
height = 119,
|
||||
shift = util.by_pixel(0, -5.25),
|
||||
scale = 0.5
|
||||
}
|
||||
},
|
||||
south_animation =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/boiling-window-green-patch.png",
|
||||
x = 174,
|
||||
frame_count = 1,
|
||||
width = 87,
|
||||
height = 60,
|
||||
shift = util.by_pixel(0, -5),
|
||||
hr_version =
|
||||
{
|
||||
filename = "__base__/graphics/entity/chemical-plant/hr-boiling-window-green-patch.png",
|
||||
x = 348,
|
||||
frame_count = 1,
|
||||
width = 174,
|
||||
height = 119,
|
||||
shift = util.by_pixel(0, -5.25),
|
||||
scale = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
vehicle_impact_sound ={ filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
|
||||
working_sound =
|
||||
{
|
||||
sound =
|
||||
{
|
||||
{
|
||||
filename = "__base__/sound/chemical-plant.ogg",
|
||||
volume = 0.8
|
||||
}
|
||||
},
|
||||
idle_sound = { filename = "__base__/sound/idle1.ogg", volume = 0.6 },
|
||||
apparent_volume = 1.5
|
||||
},
|
||||
crafting_speed = 1.25,
|
||||
ingredient_count = 4,
|
||||
crafting_categories = {"chemistry"},
|
||||
fluid_boxes =
|
||||
{
|
||||
{
|
||||
production_type = "input",
|
||||
pipe_covers = pipecoverspictures(),
|
||||
base_area = 10,
|
||||
base_level = -1,
|
||||
pipe_connections = {{ type="input", position = {-1, -2} }}
|
||||
},
|
||||
{
|
||||
production_type = "input",
|
||||
pipe_covers = pipecoverspictures(),
|
||||
base_area = 10,
|
||||
base_level = -1,
|
||||
pipe_connections = {{ type="input", position = {1, -2} }}
|
||||
},
|
||||
{
|
||||
production_type = "output",
|
||||
pipe_covers = pipecoverspictures(),
|
||||
base_level = 1,
|
||||
pipe_connections = {{ position = {-1, 2} }}
|
||||
},
|
||||
{
|
||||
production_type = "output",
|
||||
pipe_covers = pipecoverspictures(),
|
||||
base_level = 1,
|
||||
pipe_connections = {{ position = {1, 2} }}
|
||||
}
|
||||
}
|
||||
}--,
|
||||
})
|
14
Refinery_overhaul_0.1.0/prototypes/item.lua
Normal file
14
Refinery_overhaul_0.1.0/prototypes/item.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "item",
|
||||
name = "heat-test",
|
||||
icon = "__base__/graphics/icons/chemical-plant.png",
|
||||
icon_size = 32,
|
||||
flags = {"goes-to-quickbar"},
|
||||
subgroup = "production-machine",
|
||||
order = "e[heat-test]",
|
||||
place_result = "heat-test",
|
||||
stack_size = 10
|
||||
}
|
||||
})
|
6
Refinery_overhaul_0.1.0/prototypes/recipe.lua
Normal file
6
Refinery_overhaul_0.1.0/prototypes/recipe.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
}
|
||||
}
|
||||
)
|
6
Refinery_overhaul_0.1.0/prototypes/technology.lua
Normal file
6
Refinery_overhaul_0.1.0/prototypes/technology.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
data:extend(
|
||||
{
|
||||
{
|
||||
}
|
||||
}
|
||||
)
|
12
mod-list.json
Normal file
12
mod-list.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"mods": [
|
||||
{
|
||||
"name": "base",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"name": "Refinery_overhaul",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user