File: 035_switch_scope.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 (40 lines) | stat: -rw-r--r-- 918 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
grf {
    grfid: "NML\35";
    name: string(STR_REGRESSION_NAME);
    desc: string(STR_REGRESSION_DESC);
    version: 0;
    min_compatible_version: 0;
}

random_switch(FEAT_INDUSTRYTILES, SELF, random1, bitmask(TRIGGER_INDUSTRYTILE_TILELOOP)) {
    2: relative_x < 2;
    1: relative_y > 5;
}

switch(FEAT_INDUSTRYTILES, SELF, var1, town_zone) {
    0: relative_x < 2;
    default: relative_y > 5;
}

random_switch(FEAT_INDUSTRYTILES, PARENT, random2, bitmask(TRIGGER_INDUSTRYTILE_TILELOOP)) {
    2: founder_colour1 < 2;
    1: founder_colour2 > 5;
}

switch(FEAT_INDUSTRYTILES, PARENT, var2, production_level) {
    0: founder_colour1 < 2;
    default: founder_colour2 > 5;
}

item(FEAT_INDUSTRYTILES, coal_mine) {
    property {
        substitute: 0;
        override: 0;
    }
    graphics {
        foundations: random1;
        autoslope: random2;
        anim_speed: var1;
        anim_control: var2;
    }
}