diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-12-22 18:55:10 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-12-22 18:55:10 +0100 |
commit | 901ea26c7749b999cb0cb78e9b2779b2a42528b9 (patch) | |
tree | 3ab52d9fabe7e6bf8098493f6820682256305fb3 /advtrains_train_japan | |
parent | 3de00295d59d91c2a53467584207fa8bedf9a901 (diff) | |
download | basic_trains-901ea26c7749b999cb0cb78e9b2779b2a42528b9.tar.gz basic_trains-901ea26c7749b999cb0cb78e9b2779b2a42528b9.tar.bz2 basic_trains-901ea26c7749b999cb0cb78e9b2779b2a42528b9.zip |
remove train type concept and calculate train's capabilities based on used wagons
Diffstat (limited to 'advtrains_train_japan')
-rw-r--r-- | advtrains_train_japan/init.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index 7cef69c..47f50cf 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -1,6 +1,8 @@ -advtrains.register_wagon("engine_japan", "electric",{ +advtrains.register_wagon("engine_japan", { mesh="advtrains_engine_japan.b3d", textures = {"advtrains_engine_japan.png"}, + drives_on={default=true}, + max_speed=20, seats = { { name="Default Seat (driver stand)", @@ -16,9 +18,11 @@ advtrains.register_wagon("engine_japan", "electric",{ drops={"default:steelblock 4"}, }, "Japanese Train Engine", "advtrains_engine_japan_inv.png") -advtrains.register_wagon("wagon_japan", "electric",{ +advtrains.register_wagon("wagon_japan", { mesh="advtrains_wagon_japan.b3d", textures = {"advtrains_wagon_japan.png"}, + drives_on={default=true}, + max_speed=20, seats = { { name="Default Seat", |