Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Version: 3.0.20
Date: ????
Changes:
- MK02 trains now tilt on rail ramps
- Fixed some techs having a too-fast cycle time
- Fixed all techs added by "enable all feature flags" not being seen by autotech.
---------------------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ if mods["pycoalprocessing"] then
require "prototypes/buildings/mk02-locomotive"
require "prototypes/buildings/mk02-cargo-wagon"
require "prototypes/buildings/mk02-fluid-wagon"
require "prototypes/buildings/mk02-train-sloped"
end

--Voiding
Expand Down
113 changes: 113 additions & 0 deletions prototypes/buildings/mk02-train-sloped.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
if not mods["elevated-rails"] then return end
local meld = require("__core__.lualib.meld")

local updates = {}

updates.locomotive =
{
pictures =
{
slope_angle_between_frames = 1.25,
sloped =
{
layers =
{
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/locomotive/sloped/loco-sloped",
{
dice = 4,
priority = "very-low",
direction_count = 160,
scale = 0.5,
usage = "train"
}
),
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/locomotive/sloped/loco-mask-sloped",
{
dice = 4,
priority = "very-low",
flags = {"mask"},
direction_count = 160,
apply_runtime_tint = true,
draw_as_glow = true,
blend_mode = "normal",
scale = 0.5,
usage = "train"
}
)
}
}
}
}

updates.fluid_wagon =
{
pictures =
{
slope_angle_between_frames = 1.25,
sloped =
{
layers =
{
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/fluid-wagon/sloped/fluid-sloped",
{
priority = "very-low",
direction_count = 160,
scale = 0.5,
usage = "train"
}
),
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/fluid-wagon/sloped/fluid-mask-sloped",
{
priority = "very-low",
flags = {"mask"},
direction_count = 160,
apply_runtime_tint = true,
draw_as_glow = true,
blend_mode = "additive",
scale = 0.5,
usage = "train"
}
)
}
}
}
}

updates.cargo_wagon =
{
pictures =
{
slope_angle_between_frames = 1.25,
sloped =
{
layers =
{
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/cargo-wagon/sloped/wagon-sloped",
{
priority = "very-low",
direction_count = 160,
scale = 0.5,
usage = "train"
}
),
util.sprite_load("__pyindustrygraphics__/graphics/entity/mk02-train/cargo-wagon/sloped/wagon-mask-sloped",
{
priority = "very-low",
flags = {"mask"},
direction_count = 160,
apply_runtime_tint = true,
draw_as_glow = true,
blend_mode = "additive",
scale = 0.5,
usage = "train"
}
)
}
}
}
}


meld(data.raw["locomotive"]["mk02-locomotive"], updates.locomotive)
meld(data.raw["fluid-wagon"]["mk02-fluid-wagon"], updates.fluid_wagon)
meld(data.raw["cargo-wagon"]["mk02-wagon"], updates.cargo_wagon)