File: 037_optimised_trigger.nml

package info (click to toggle)
nml 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,932 kB
  • sloc: python: 20,457; ansic: 109; makefile: 68
file content (22 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
grf {
    grfid: "NML\37";
    name: string(STR_REGRESSION_NAME);
    desc: string(STR_REGRESSION_DESC);
    version: 0;
    min_compatible_version: 0;
}

random_switch(FEAT_TRAINS, SELF, unconditional_switch) {
    8: return 5;
}

random_switch(FEAT_TRAINS, SELF, trigger_only, bitmask(TRIGGER_VEHICLE_NEW_LOAD)) {
    8: return 7;
}

item(FEAT_TRAINS, colored_train, 100) {
    graphics {
        colour_mapping: unconditional_switch;
        default: trigger_only;
    }
}