aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
authorSingularis <singularis@volny.cz>2022-08-04 19:14:28 +0200
committerorwell <orwell@bleipb.de>2025-05-27 20:22:01 +0200
commit95b158e62c90257d187ca7910b4fc3ad9548e242 (patch)
tree26ba306d1e939f1a59c162c056a6e83cd880fd5e /advtrains/wagons.lua
parent7e38201fade820683814dd921201ef13de4287b4 (diff)
downloadadvtrains-95b158e62c90257d187ca7910b4fc3ad9548e242.tar.gz
advtrains-95b158e62c90257d187ca7910b4fc3ad9548e242.tar.bz2
advtrains-95b158e62c90257d187ca7910b4fc3ad9548e242.zip
[*] reorganizace vlaků
- [advtrains], [advtrains_train_industrial], [advtrains_train_steam], [moretrains_*] - [unified_inventory] přidána podpora filtrů „typ:lokomotivy“ a „typ:vlaky“
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua9
1 files changed, 7 insertions, 2 deletions
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