-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdata.lua
More file actions
23 lines (19 loc) · 1.02 KB
/
Copy pathdata.lua
File metadata and controls
23 lines (19 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bts = {}
bts.path = '__better-train-system__/'
bts.path_p = bts.path .. 'prototypes/'
bts.path_g = bts.path .. 'graphics/'
bts.path_c = bts.path .. 'compatibility/'
require(bts.path_p .. 'utils')
require(bts.path_p .. 'entity/locomotive')
require(bts.path_p .. 'entity/wagon')
require(bts.path_p .. 'item')
require(bts.path_p .. 'recipe')
require(bts.path_p .. 'technology')
local iwed = 'item-with-entity-data'
-- switch Mk.2 and Mk.0 icons (cuz T2 are red, so base game will become orange)
data.raw[iwed]['locomotive'].icon, data.raw[iwed]['locomotive-mk3'].icon = data.raw[iwed]['locomotive-mk3'].icon, data.raw[iwed]['locomotive'].icon
data.raw.locomotive['locomotive'].icon, data.raw.locomotive['locomotive-mk3'].icon = data.raw.locomotive['locomotive-mk3'].icon, data.raw.locomotive['locomotive'].icon
-- update subgroups for vanilla
data.raw[iwed]['locomotive'].subgroup = 'train-transport-e-2'
data.raw[iwed]['cargo-wagon'].subgroup = 'train-transport-e-3'
data.raw[iwed]['fluid-wagon'].subgroup = 'train-transport-e-4'