Loading

wotwot

  1.  
  2. item(FEAT_TRAINS, item_capacity_part, 153){
  3.   property{
  4.     sprite_id:            SPRITE_ID_NEW_TRAIN;
  5.     name:                 string(STR_capacity_part_name);
  6.     climates_available:   ALL_CLIMATES;
  7.     introduction_date:    date(1900, 1,1,);
  8.     model_life:           VEHICLE_NEVER_EXPIRES;
  9.     vehicle_life:         255;
  10.     reliability_decay:    5;
  11.    
  12.     refittable_cargo_classes:     ALL_CARGO_CLASSES;
  13.     non_refittable_cargo_classes: bitmask();
  14.     cargo_capacity:       40;
  15.     loading_speed:        8;
  16.    
  17.     //speed:                       666 km/h;
  18.     //power:                       1 hp;
  19.     //tractive_effort_coefficient: 0.01;
  20.     weight:                      40 ton;
  21.    
  22.     air_drag_coefficient:        0;
  23.     extra_power_per_wagon:       0;
  24.     extra_weight_per_wagon:      0;
  25.  
  26.     track_type:           RAIL;
  27.     //engine_class:         ENGINE_CLASS_DIESEL;
  28.     //running_cost_base:    RUNNING_COST_DIESEL;
  29.     //visual_effect_and_powered: visual_effect_and_powered(1,2,DISABLE_WAGON_POWER);
  30.     misc_flags:                bitmask(TRAIN_FLAG_FLIP, TRAIN_FLAG_MU, TRAIN_FLAG_2CC);//most of it meaningless? FLIP and MU ? 2cc useless for wagons, too    
  31.  
  32.     length:               8;
  33.     dual_headed:          0;
  34.    
  35.     cost_factor:          10;
  36.     running_cost_factor:  100;
  37.     refit_cost:           0;
  38.     bitmask_vehicle_info: 0;
  39.     ai_engine_rank:       0;
  40.     ai_special_flag:      AI_FLAG_CARGO;
  41.   }
  42.   graphics{
  43.     default:  switch_engine_01_graphics;
  44.     //purchase: spriteset_purchase_engine01;
  45.     additional_text: string(STR_capacity_part_purchase);
  46.  
  47.     //purchase_speed:                       666;
  48.     //purchase_power:                       1;
  49.     //purchase_tractive_effort_coefficient: 1;
  50.     purchase_weight:                      40;
  51.  
  52.     cargo_capacity: return 300/(position_in_consist-1);
  53.     loading_speed: return 60/(position_in_consist-1);
  54.  
  55.     //power: return 12800/(position_in_consist-1);
  56.  
  57.     colour_mapping: palette_2cc(COLOUR_GREEN,COLOUR_GREEN);
  58.    
  59.  
  60.     //speed:                        switch_engine01_speed;
  61.     //power:                        switch_engine01_power;
  62.     //tractive_effort_coefficient:  switch_engine01_TE;
  63.     //weight:                       switch_engine01_weight;
  64.   }
  65. }

Comments