aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_japan/init.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-12-22 18:55:10 +0100
committerorwell96 <mono96.mml@gmail.com>2016-12-22 18:55:10 +0100
commitd08e202346192c50072450a3eaa3b28cad852b84 (patch)
treefcb449a63df2c21178fba742d2121cb98c0ff6ab /advtrains_train_japan/init.lua
parentf806ed9eee8c13eb0b4868641311d25257c63f46 (diff)
downloadadvtrains-d08e202346192c50072450a3eaa3b28cad852b84.tar.gz
advtrains-d08e202346192c50072450a3eaa3b28cad852b84.tar.bz2
advtrains-d08e202346192c50072450a3eaa3b28cad852b84.zip
remove train type concept and calculate train's capabilities based on used wagons
Diffstat (limited to 'advtrains_train_japan/init.lua')
-rw-r--r--advtrains_train_japan/init.lua8
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",