From 95b158e62c90257d187ca7910b4fc3ad9548e242 Mon Sep 17 00:00:00 2001 From: Singularis Date: Thu, 4 Aug 2022 19:14:28 +0200 Subject: [*] reorganizace vlaků MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [advtrains], [advtrains_train_industrial], [advtrains_train_steam], [moretrains_*] - [unified_inventory] přidána podpora filtrů „typ:lokomotivy“ a „typ:vlaky“ --- advtrains/wagons.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'advtrains/wagons.lua') diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 9cc7a7d..e709a9b 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -1342,8 +1342,13 @@ function advtrains.register_wagon(sysname_p, prototype, desc, inv_img, nincreati advtrains.wagon_prototypes[sysname] = prototype --group classification to make recipe searching easier - local wagon_groups = { not_in_creative_inventory = nincreative and 1 or 0} - if prototype.is_locomotive then wagon_groups['at_loco'] = 1 end + local wagon_groups = { + not_in_creative_inventory = nincreative and 1 or 0, + at_wagon = 1, + } + if prototype.is_locomotive then + wagon_groups['at_loco'] = 1 + end if prototype.seat_groups then if prototype.seat_groups.dstand then wagon_groups['at_control'] = 1 end if prototype.seat_groups.pass then wagon_groups['at_pax'] = 1 end -- cgit v1.2.3