Remove settings check for wooden rails
This commit is contained in:
parent
ae98408dee
commit
a52c40bad8
2 changed files with 112 additions and 139 deletions
|
|
@ -5,7 +5,7 @@ local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
|
||||||
log("BI.Settings.BI_Game_Tweaks_Disassemble: " .. tostring(BI.Settings.BI_Game_Tweaks_Disassemble))
|
log("BI.Settings.BI_Game_Tweaks_Disassemble: " .. tostring(BI.Settings.BI_Game_Tweaks_Disassemble))
|
||||||
|
|
||||||
if BI.Settings.BI_Game_Tweaks_Disassemble then
|
if BI.Settings.BI_Game_Tweaks_Disassemble then
|
||||||
log("Enabling disassemble recipes!")
|
log("Enabling disassemble recipes!")
|
||||||
--- Bio Tweaks
|
--- Bio Tweaks
|
||||||
data:extend({
|
data:extend({
|
||||||
-- Item subgroup
|
-- Item subgroup
|
||||||
|
|
@ -20,8 +20,8 @@ log("Enabling disassemble recipes!")
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-burner-mining-drill-disassemble",
|
name = "bi-burner-mining-drill-disassemble",
|
||||||
localised_description = {"recipe-description.bi-disassemble-recipes"},
|
localised_description = { "recipe-description.bi-disassemble-recipes" },
|
||||||
icons = { {icon = ICONPATH .. "burner-mining-drill_disassemble.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH .. "burner-mining-drill_disassemble.png", icon_size = 64, } },
|
||||||
category = "advanced-crafting",
|
category = "advanced-crafting",
|
||||||
subgroup = "bio-disassemble",
|
subgroup = "bio-disassemble",
|
||||||
order = "a[Disassemble]-a[bi-burner-mining-drill-disassemble]",
|
order = "a[Disassemble]-a[bi-burner-mining-drill-disassemble]",
|
||||||
|
|
@ -31,20 +31,19 @@ log("Enabling disassemble recipes!")
|
||||||
allow_decomposition = false,
|
allow_decomposition = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "burner-mining-drill", amount = 1},
|
{ type = "item", name = "burner-mining-drill", amount = 1 },
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{type="item", name="stone", amount=4},
|
{ type = "item", name = "stone", amount = 4 },
|
||||||
{type="item", name="iron-plate", amount=4}
|
{ type = "item", name = "iron-plate", amount = 4 }
|
||||||
},
|
},
|
||||||
main_product = "",
|
main_product = "",
|
||||||
},
|
},
|
||||||
----
|
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-burner-inserter-disassemble",
|
name = "bi-burner-inserter-disassemble",
|
||||||
localised_description = {"recipe-description.bi-disassemble-recipes"},
|
localised_description = { "recipe-description.bi-disassemble-recipes" },
|
||||||
icons = { {icon = ICONPATH .. "burner_inserter_disassemble.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH .. "burner_inserter_disassemble.png", icon_size = 64, } },
|
||||||
category = "advanced-crafting",
|
category = "advanced-crafting",
|
||||||
subgroup = "bio-disassemble",
|
subgroup = "bio-disassemble",
|
||||||
order = "a[Disassemble]-b[bi-burner-inserter-disassemble]",
|
order = "a[Disassemble]-b[bi-burner-inserter-disassemble]",
|
||||||
|
|
@ -54,19 +53,18 @@ log("Enabling disassemble recipes!")
|
||||||
allow_decomposition = false,
|
allow_decomposition = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "burner-inserter", amount = 1},
|
{ type = "item", name = "burner-inserter", amount = 1 },
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{type="item", name="iron-plate", amount=2},
|
{ type = "item", name = "iron-plate", amount = 2 },
|
||||||
},
|
},
|
||||||
main_product = "",
|
main_product = "",
|
||||||
},
|
},
|
||||||
----
|
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-long-handed-inserter-disassemble",
|
name = "bi-long-handed-inserter-disassemble",
|
||||||
localised_description = {"recipe-description.bi-disassemble-recipes"},
|
localised_description = { "recipe-description.bi-disassemble-recipes" },
|
||||||
icons = { {icon = ICONPATH .. "long_handed_inserter_disassemble.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH .. "long_handed_inserter_disassemble.png", icon_size = 64, } },
|
||||||
category = "advanced-crafting",
|
category = "advanced-crafting",
|
||||||
subgroup = "bio-disassemble",
|
subgroup = "bio-disassemble",
|
||||||
order = "a[Disassemble]-c[bi-long-handed-inserter-disassemble]",
|
order = "a[Disassemble]-c[bi-long-handed-inserter-disassemble]",
|
||||||
|
|
@ -76,21 +74,20 @@ log("Enabling disassemble recipes!")
|
||||||
allow_decomposition = false,
|
allow_decomposition = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "long-handed-inserter", amount = 1},
|
{ type = "item", name = "long-handed-inserter", amount = 1 },
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{type="item", name="iron-gear-wheel", amount=1},
|
{ type = "item", name = "iron-gear-wheel", amount = 1 },
|
||||||
{type="item", name="iron-plate", amount=1},
|
{ type = "item", name = "iron-plate", amount = 1 },
|
||||||
{type="item", name="electronic-circuit", amount=1},
|
{ type = "item", name = "electronic-circuit", amount = 1 },
|
||||||
},
|
},
|
||||||
main_product = "",
|
main_product = "",
|
||||||
},
|
},
|
||||||
---
|
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-stone-furnace-disassemble",
|
name = "bi-stone-furnace-disassemble",
|
||||||
localised_description = {"recipe-description.bi-disassemble-recipes"},
|
localised_description = { "recipe-description.bi-disassemble-recipes" },
|
||||||
icons = { {icon = ICONPATH .. "stone_furnace_disassemble.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH .. "stone_furnace_disassemble.png", icon_size = 64, } },
|
||||||
category = "advanced-crafting",
|
category = "advanced-crafting",
|
||||||
subgroup = "bio-disassemble",
|
subgroup = "bio-disassemble",
|
||||||
order = "a[Disassemble]-d[bi-stone-furnace-disassemble]",
|
order = "a[Disassemble]-d[bi-stone-furnace-disassemble]",
|
||||||
|
|
@ -100,19 +97,18 @@ log("Enabling disassemble recipes!")
|
||||||
allow_decomposition = false,
|
allow_decomposition = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "stone-furnace", amount = 1},
|
{ type = "item", name = "stone-furnace", amount = 1 },
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{type="item", name="stone", amount=3},
|
{ type = "item", name = "stone", amount = 3 },
|
||||||
},
|
},
|
||||||
main_product = "",
|
main_product = "",
|
||||||
},
|
},
|
||||||
---
|
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-steel-furnace-disassemble",
|
name = "bi-steel-furnace-disassemble",
|
||||||
localised_description = {"recipe-description.bi-disassemble-recipes"},
|
localised_description = { "recipe-description.bi-disassemble-recipes" },
|
||||||
icons = { {icon = ICONPATH .. "steel-furnace_disassemble.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH .. "steel-furnace_disassemble.png", icon_size = 64, } },
|
||||||
category = "advanced-crafting",
|
category = "advanced-crafting",
|
||||||
subgroup = "bio-disassemble",
|
subgroup = "bio-disassemble",
|
||||||
order = "a[Disassemble]-e[bi-steel-furnace-disassemble]",
|
order = "a[Disassemble]-e[bi-steel-furnace-disassemble]",
|
||||||
|
|
@ -122,11 +118,11 @@ log("Enabling disassemble recipes!")
|
||||||
allow_decomposition = false,
|
allow_decomposition = false,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "steel-furnace", amount = 1},
|
{ type = "item", name = "steel-furnace", amount = 1 },
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
{type="item", name="steel-plate", amount=4},
|
{ type = "item", name = "steel-plate", amount = 4 },
|
||||||
{type="item", name="stone-brick", amount=4}
|
{ type = "item", name = "stone-brick", amount = 4 }
|
||||||
},
|
},
|
||||||
main_product = "",
|
main_product = "",
|
||||||
},
|
},
|
||||||
|
|
@ -143,16 +139,17 @@ if SET and not mods["Krastorio2"] then
|
||||||
enabled = false,
|
enabled = false,
|
||||||
energy_required = 21,
|
energy_required = 21,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type = "item", name = "electric-furnace", amount = 1},
|
{ type = "item", name = "electric-furnace", amount = 1 },
|
||||||
{type = "item", name = "productivity-module", amount = 1},
|
{ type = "item", name = "productivity-module", amount = 1 },
|
||||||
{type = "item", name = "bi-rail-wood", amount = 40}
|
{ type = "item", name = "bi-rail-wood", amount = 40 }
|
||||||
},
|
},
|
||||||
results = {{type="item", name="production-science-pack", amount=3}},
|
results = { { type = "item", name = "production-science-pack", amount = 3 } },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
--~ BI_Functions.lib.allow_productivity("bi-production-science-pack")
|
--~ BI_Functions.lib.allow_productivity("bi-production-science-pack")
|
||||||
--~ thxbob.lib.tech.add_recipe_unlock("production-science-pack", "bi-production-science-pack")
|
--~ thxbob.lib.tech.add_recipe_unlock("production-science-pack", "bi-production-science-pack")
|
||||||
BioInd.writeDebug("Added alternative recipe for Production science packs.")
|
BioInd.writeDebug("Added alternative recipe for Production science packs.")
|
||||||
else
|
else
|
||||||
BioInd.writeDebug("Didn't add alternative recipe for Production science packs! (\"Krastorio\": %s\tSetting: %s", {(mods["Krastorio2"] and "active" or "not active"), (SET and "enabled" or "disabled")})
|
BioInd.writeDebug("Didn't add alternative recipe for Production science packs! (\"Krastorio\": %s\tSetting: %s",
|
||||||
|
{ (mods["Krastorio2"] and "active" or "not active"), (SET and "enabled" or "disabled") })
|
||||||
end
|
end
|
||||||
|
|
@ -1,27 +1,18 @@
|
||||||
require ("prototypes.Wood_Products.rail-pictures-wood")
|
require("prototypes.Wood_Products.rail-pictures-wood")
|
||||||
|
|
||||||
local BioInd = require('common')('Bio_Industries_2')
|
local BioInd = require('common')('Bio_Industries_2')
|
||||||
local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
|
|
||||||
local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/"
|
local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/"
|
||||||
local item_sounds = require("__base__.prototypes.item_sounds")
|
local item_sounds = require("__base__.prototypes.item_sounds")
|
||||||
|
local hit_effects = require("__base__.prototypes.entity.hit-effects")
|
||||||
|
|
||||||
local hit_effects = require ("__base__.prototypes.entity.hit-effects")
|
|
||||||
local sounds = require("__base__.prototypes.entity.sounds")
|
|
||||||
local tile_sounds = require("__base__.prototypes.tile.tile-sounds")
|
local tile_sounds = require("__base__.prototypes.tile.tile-sounds")
|
||||||
local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
|
||||||
|
|
||||||
|
data:extend({
|
||||||
if BI.Settings.BI_Game_Tweaks_Recipe then
|
---- ITEM
|
||||||
|
{
|
||||||
|
|
||||||
data:extend({
|
|
||||||
---- ITEM
|
|
||||||
{
|
|
||||||
type = "rail-planner",
|
type = "rail-planner",
|
||||||
name = "bi-rail-wood",
|
name = "bi-rail-wood",
|
||||||
icons = { {icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } },
|
||||||
localised_name = {"item-name.bi-rail-wood"},
|
localised_name = { "item-name.bi-rail-wood" },
|
||||||
subgroup = "train-transport",
|
subgroup = "train-transport",
|
||||||
order = "a[rail]-0[rail]",
|
order = "a[rail]-0[rail]",
|
||||||
inventory_move_sound = item_sounds.train_inventory_move,
|
inventory_move_sound = item_sounds.train_inventory_move,
|
||||||
|
|
@ -29,78 +20,74 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
drop_sound = item_sounds.train_inventory_move,
|
drop_sound = item_sounds.train_inventory_move,
|
||||||
place_result = "bi-straight-rail-wood",
|
place_result = "bi-straight-rail-wood",
|
||||||
stack_size = 100,
|
stack_size = 100,
|
||||||
rails =
|
rails = {
|
||||||
{
|
|
||||||
"bi-straight-rail-wood",
|
"bi-straight-rail-wood",
|
||||||
"bi-curved-rail-a-wood",
|
"bi-curved-rail-a-wood",
|
||||||
"bi-curved-rail-b-wood",
|
"bi-curved-rail-b-wood",
|
||||||
"bi-half-diagonal-rail-wood"
|
"bi-half-diagonal-rail-wood"
|
||||||
},
|
},
|
||||||
manual_length_limit = 22.5 -- 2*(Curved-A) + 2*(Curved-B) + their planner penalty + margin
|
manual_length_limit = 22.5 -- 2*(Curved-A) + 2*(Curved-B) + their planner penalty + margin
|
||||||
},
|
},
|
||||||
|
|
||||||
---- Recipe
|
---- Recipe
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-rail-wood",
|
name = "bi-rail-wood",
|
||||||
localised_name = {"entity-name.bi-rail-wood"},
|
localised_name = { "entity-name.bi-rail-wood" },
|
||||||
localised_description = {"entity-description.bi-rail-wood"},
|
localised_description = { "entity-description.bi-rail-wood" },
|
||||||
icons = { { icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH_E .. "rail-wood.png", icon_size = 64, } },
|
||||||
enabled = false,
|
enabled = false,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{type="item",name="wood",amount=6},
|
{ type = "item", name = "wood", amount = 6 },
|
||||||
{type="item",name="stone",amount=1},
|
{ type = "item", name = "stone", amount = 1 },
|
||||||
{type="item",name="steel-plate",amount=1},
|
{ type = "item", name = "steel-plate", amount = 1 },
|
||||||
{type="item",name="iron-stick",amount=1},
|
{ type = "item", name = "iron-stick", amount = 1 },
|
||||||
},
|
},
|
||||||
results={{type="item",name="bi-rail-wood",amount=2}},
|
results = { { type = "item", name = "bi-rail-wood", amount = 2 } },
|
||||||
main_product = "",
|
main_product = "",
|
||||||
requester_paste_multiplier = 4,
|
requester_paste_multiplier = 4,
|
||||||
--~ always_show_made_in = true,
|
--~ always_show_made_in = true,
|
||||||
--~ allow_decomposition = false,
|
--~ allow_decomposition = false,
|
||||||
allow_as_intermediate = false, -- Added for 0.18.34/1.1.4
|
allow_as_intermediate = false, -- Added for 0.18.34/1.1.4
|
||||||
always_show_made_in = false, -- Changed for 0.18.34/1.1.4
|
always_show_made_in = false, -- Changed for 0.18.34/1.1.4
|
||||||
allow_decomposition = true, -- Changed for 0.18.34/1.1.4
|
allow_decomposition = true, -- Changed for 0.18.34/1.1.4
|
||||||
subgroup = "transport",
|
subgroup = "transport",
|
||||||
order = "a[train-system]-a[rail]",
|
order = "a[train-system]-a[rail]",
|
||||||
-- This is a custom property for use by "Krastorio 2" (it will change
|
-- This is a custom property for use by "Krastorio 2" (it will change
|
||||||
-- ingredients/results; used for wood/wood pulp)
|
-- ingredients/results; used for wood/wood pulp)
|
||||||
mod = "Bio_Industries",
|
mod = "Bio_Industries",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = "bi-rail-wood-to-concrete",
|
name = "bi-rail-wood-to-concrete",
|
||||||
icons = { {icon = ICONPATH_E .. "rail-wood-to-concrete.png", icon_size = 64, } },
|
icons = { { icon = ICONPATH_E .. "rail-wood-to-concrete.png", icon_size = 64, } },
|
||||||
enabled = false,
|
enabled = false,
|
||||||
ingredients =
|
ingredients = {
|
||||||
{
|
{ type = "item", name = "bi-rail-wood", amount = 2 },
|
||||||
{type = "item", name = "bi-rail-wood", amount = 2},
|
{ type = "item", name = "stone-brick", amount = 6 },
|
||||||
{type = "item", name = "stone-brick", amount = 6},
|
|
||||||
|
|
||||||
},
|
},
|
||||||
results = {{type="item", name="rail", amount=2}}
|
results = { { type = "item", name = "rail", amount = 2 } }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
--- Entity
|
--- Entity
|
||||||
|
|
||||||
{
|
{
|
||||||
type = "straight-rail",
|
type = "straight-rail",
|
||||||
name = "bi-straight-rail-wood",
|
name = "bi-straight-rail-wood",
|
||||||
order = "a[ground-rail]-a[bi-straight-rail-wood]",
|
order = "a[ground-rail]-a[bi-straight-rail-wood]",
|
||||||
icon = ICONPATH_E .. "straight-rail-wood.png",
|
icon = ICONPATH_E .. "straight-rail-wood.png",
|
||||||
localised_name = {"entity-name.bi-straight-rail-wood"},
|
localised_name = { "entity-name.bi-straight-rail-wood" },
|
||||||
collision_box = {{-1, -1}, {1, 1}}, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
collision_box = { { -1, -1 }, { 1, 1 } }, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
||||||
flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
|
flags = { "placeable-neutral", "player-creation", "building-direction-8-way" },
|
||||||
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 1},
|
minable = { mining_time = 0.2, result = "bi-rail-wood", count = 1 },
|
||||||
max_health = 200,
|
max_health = 200,
|
||||||
corpse = "straight-rail-remnants",
|
corpse = "straight-rail-remnants",
|
||||||
dying_explosion =
|
dying_explosion = {
|
||||||
{
|
|
||||||
name = "rail-explosion"
|
name = "rail-explosion"
|
||||||
},
|
},
|
||||||
resistances =
|
resistances = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
type = "fire",
|
type = "fire",
|
||||||
percent = 100
|
percent = 100
|
||||||
|
|
@ -111,10 +98,10 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
||||||
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
|
selection_box = { { -1.7, -0.8 }, { 1.7, 0.8 } },
|
||||||
damaged_trigger_effect = hit_effects.wall(),
|
damaged_trigger_effect = hit_effects.wall(),
|
||||||
pictures = new_rail_pictures_wood("straight"),
|
pictures = new_rail_pictures_wood("straight"),
|
||||||
placeable_by = {item = "bi-rail-wood", count = 1},
|
placeable_by = { item = "bi-rail-wood", count = 1 },
|
||||||
walking_sound = tile_sounds.walking.rails,
|
walking_sound = tile_sounds.walking.rails,
|
||||||
extra_planner_goal_penalty = -4,
|
extra_planner_goal_penalty = -4,
|
||||||
factoriopedia_alternative = "straight-rail",
|
factoriopedia_alternative = "straight-rail",
|
||||||
|
|
@ -129,30 +116,28 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
order = "a[ground-rail]-b[bi-half-diagonal-rail-wood]",
|
order = "a[ground-rail]-b[bi-half-diagonal-rail-wood]",
|
||||||
deconstruction_alternative = "bi-straight-rail-wood",
|
deconstruction_alternative = "bi-straight-rail-wood",
|
||||||
icon = ICONPATH_E .. "curved-rail-wood.png",
|
icon = ICONPATH_E .. "curved-rail-wood.png",
|
||||||
localised_name = {"entity-name.bi-half-diagonal-rail-wood"},
|
localised_name = { "entity-name.bi-half-diagonal-rail-wood" },
|
||||||
collision_box = {{-0.75, -2.236}, {0.75, 2.236}}, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
collision_box = { { -0.75, -2.236 }, { 0.75, 2.236 } }, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
||||||
tile_height = 2,
|
tile_height = 2,
|
||||||
extra_planner_goal_penalty = -4,
|
extra_planner_goal_penalty = -4,
|
||||||
flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
|
flags = { "placeable-neutral", "player-creation", "building-direction-8-way" },
|
||||||
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 2},
|
minable = { mining_time = 0.2, result = "bi-rail-wood", count = 2 },
|
||||||
max_health = 200,
|
max_health = 200,
|
||||||
corpse = "half-diagonal-rail-remnants",
|
corpse = "half-diagonal-rail-remnants",
|
||||||
dying_explosion =
|
dying_explosion = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {0.9, 2.2}
|
offset = { 0.9, 2.2 }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion"
|
name = "rail-explosion"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {-1.2, -2}
|
offset = { -1.2, -2 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resistances =
|
resistances = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
type = "fire",
|
type = "fire",
|
||||||
percent = 100
|
percent = 100
|
||||||
|
|
@ -163,10 +148,10 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
||||||
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
|
selection_box = { { -1.7, -0.8 }, { 1.7, 0.8 } },
|
||||||
damaged_trigger_effect = hit_effects.wall(),
|
damaged_trigger_effect = hit_effects.wall(),
|
||||||
pictures = new_rail_pictures_wood("half-diagonal"),
|
pictures = new_rail_pictures_wood("half-diagonal"),
|
||||||
placeable_by = {item = "bi-rail-wood", count = 2},
|
placeable_by = { item = "bi-rail-wood", count = 2 },
|
||||||
walking_sound = tile_sounds.walking.rails,
|
walking_sound = tile_sounds.walking.rails,
|
||||||
extra_planner_penalty = 0,
|
extra_planner_penalty = 0,
|
||||||
factoriopedia_alternative = "straight-rail",
|
factoriopedia_alternative = "straight-rail",
|
||||||
|
|
@ -180,28 +165,26 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
order = "a[ground-rail]-c[bi-curved-rail-a-wood]",
|
order = "a[ground-rail]-c[bi-curved-rail-a-wood]",
|
||||||
deconstruction_alternative = "bi-straight-rail-wood",
|
deconstruction_alternative = "bi-straight-rail-wood",
|
||||||
icon = ICONPATH_E .. "curved-rail-wood.png",
|
icon = ICONPATH_E .. "curved-rail-wood.png",
|
||||||
localised_name = {"entity-name.bi-curved-rail-a-wood"},
|
localised_name = { "entity-name.bi-curved-rail-a-wood" },
|
||||||
collision_box = {{-0.75, -2.516}, {0.75, 2.516}}, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
collision_box = { { -0.75, -2.516 }, { 0.75, 2.516 } }, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
||||||
flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
|
flags = { "placeable-neutral", "player-creation", "building-direction-8-way" },
|
||||||
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 3},
|
minable = { mining_time = 0.2, result = "bi-rail-wood", count = 3 },
|
||||||
max_health = 200,
|
max_health = 200,
|
||||||
corpse = "curved-rail-a-remnants",
|
corpse = "curved-rail-a-remnants",
|
||||||
dying_explosion =
|
dying_explosion = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {0.9, 2.2}
|
offset = { 0.9, 2.2 }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion"
|
name = "rail-explosion"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {-1.2, -2}
|
offset = { -1.2, -2 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resistances =
|
resistances = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
type = "fire",
|
type = "fire",
|
||||||
percent = 100
|
percent = 100
|
||||||
|
|
@ -212,10 +195,10 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
||||||
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
|
selection_box = { { -1.7, -0.8 }, { 1.7, 0.8 } },
|
||||||
damaged_trigger_effect = hit_effects.wall(),
|
damaged_trigger_effect = hit_effects.wall(),
|
||||||
pictures = new_rail_pictures_wood("curved-a"),
|
pictures = new_rail_pictures_wood("curved-a"),
|
||||||
placeable_by = {item = "bi-rail-wood", count = 3},
|
placeable_by = { item = "bi-rail-wood", count = 3 },
|
||||||
walking_sound = tile_sounds.walking.rails,
|
walking_sound = tile_sounds.walking.rails,
|
||||||
extra_planner_penalty = 0.5,
|
extra_planner_penalty = 0.5,
|
||||||
deconstruction_marker_positions = rail_8shifts_vector(-0.248, -0.533),
|
deconstruction_marker_positions = rail_8shifts_vector(-0.248, -0.533),
|
||||||
|
|
@ -230,28 +213,26 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
order = "a[ground-rail]-d[bi-curved-rail-b-wood]",
|
order = "a[ground-rail]-d[bi-curved-rail-b-wood]",
|
||||||
deconstruction_alternative = "bi-straight-rail-wood",
|
deconstruction_alternative = "bi-straight-rail-wood",
|
||||||
icon = ICONPATH_E .. "curved-rail-wood.png",
|
icon = ICONPATH_E .. "curved-rail-wood.png",
|
||||||
localised_name = {"entity-name.bi-curved-rail-b-wood"},
|
localised_name = { "entity-name.bi-curved-rail-b-wood" },
|
||||||
collision_box = {{-0.75, -2.441}, {0.75, 2.441}}, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
collision_box = { { -0.75, -2.441 }, { 0.75, 2.441 } }, -- has custommly generated box, but the prototype needs something that is used to generate building smokes
|
||||||
flags = {"placeable-neutral", "player-creation", "building-direction-8-way"},
|
flags = { "placeable-neutral", "player-creation", "building-direction-8-way" },
|
||||||
minable = {mining_time = 0.2, result = "bi-rail-wood", count = 3},
|
minable = { mining_time = 0.2, result = "bi-rail-wood", count = 3 },
|
||||||
max_health = 200,
|
max_health = 200,
|
||||||
corpse = "curved-rail-b-remnants",
|
corpse = "curved-rail-b-remnants",
|
||||||
dying_explosion =
|
dying_explosion = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {0.9, 2.2}
|
offset = { 0.9, 2.2 }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion"
|
name = "rail-explosion"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rail-explosion",
|
name = "rail-explosion",
|
||||||
offset = {-1.2, -2}
|
offset = { -1.2, -2 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
resistances =
|
resistances = {
|
||||||
{
|
|
||||||
{
|
{
|
||||||
type = "fire",
|
type = "fire",
|
||||||
percent = 100
|
percent = 100
|
||||||
|
|
@ -262,10 +243,10 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
-- collision box is hardcoded for rails as to avoid unexpected changes in the way rail blocks are merged
|
||||||
selection_box = {{-1.7, -0.8}, {1.7, 0.8}},
|
selection_box = { { -1.7, -0.8 }, { 1.7, 0.8 } },
|
||||||
damaged_trigger_effect = hit_effects.wall(),
|
damaged_trigger_effect = hit_effects.wall(),
|
||||||
pictures = new_rail_pictures_wood("curved-b"),
|
pictures = new_rail_pictures_wood("curved-b"),
|
||||||
placeable_by = {item = "bi-rail-wood", count = 3},
|
placeable_by = { item = "bi-rail-wood", count = 3 },
|
||||||
walking_sound = tile_sounds.walking.rails,
|
walking_sound = tile_sounds.walking.rails,
|
||||||
extra_planner_penalty = 0.5,
|
extra_planner_penalty = 0.5,
|
||||||
deconstruction_marker_positions = rail_8shifts_vector(-0.309, -0.155),
|
deconstruction_marker_positions = rail_8shifts_vector(-0.309, -0.155),
|
||||||
|
|
@ -275,8 +256,3 @@ local simulations = require("__base__.prototypes.factoriopedia-simulations")
|
||||||
fast_replaceable_group = "curved-rail-b",
|
fast_replaceable_group = "curved-rail-b",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue