12 | } | 12 | }
|
---|
| | 13 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_0,
|
---|
| | 14 | [
|
---|
| | 15 | STORE_PERM(
|
---|
| | 16 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 17 | 1
|
---|
| | 18 | ),
|
---|
| | 19 | STORE_PERM(
|
---|
| | 20 | max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
|
---|
| | 21 | 2
|
---|
| | 22 | ),
|
---|
| | 23 | STORE_PERM(
|
---|
| | 24 | max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
|
---|
| | 25 | 3
|
---|
| | 26 | ),
|
---|
| | 27 | STORE_PERM(255, 9),
|
---|
| | 28 | ]) {
|
---|
| | 29 | blast_furnace_simple_produce_0;
|
---|
| | 30 | }
|
---|
| | 31 | if (economy==1) {
|
---|
| | 32 | produce (blast_furnace_simple_produce_1,
|
---|
| | 33 | [
|
---|
| | 34 | IORE: incoming_cargo_waiting("IORE");
|
---|
| | 35 | COAL: incoming_cargo_waiting("COAL");
|
---|
| | 36 | SCMT: incoming_cargo_waiting("SCMT");
|
---|
| | 37 | ],
|
---|
| | 38 | [
|
---|
| | 39 | METL: (LOAD_PERM(10) * 8) / 8;
|
---|
| | 40 | ],
|
---|
| | 41 | 0)
|
---|
| | 42 | }
|
---|
| | 43 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_1,
|
---|
| | 44 | [
|
---|
| | 45 | STORE_PERM(
|
---|
| | 46 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 47 | 1
|
---|
| | 48 | ),
|
---|
| | 49 | STORE_PERM(
|
---|
| | 50 | max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
|
---|
| | 51 | 2
|
---|
| | 52 | ),
|
---|
| | 53 | STORE_PERM(
|
---|
| | 54 | max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
|
---|
| | 55 | 3
|
---|
| | 56 | ),
|
---|
| | 57 | STORE_PERM(255, 9),
|
---|
| | 58 | ]) {
|
---|
| | 59 | blast_furnace_simple_produce_1;
|
---|
| | 60 | }
|
---|
| | 61 | if (economy==4) {
|
---|
| | 62 | produce (blast_furnace_simple_produce_4,
|
---|
| | 63 | [
|
---|
| | 64 | IORE: incoming_cargo_waiting("IORE");
|
---|
| | 65 | COAL: incoming_cargo_waiting("COAL");
|
---|
| | 66 | SCMT: incoming_cargo_waiting("SCMT");
|
---|
| | 67 | ],
|
---|
| | 68 | [
|
---|
| | 69 | METL: (LOAD_PERM(10) * 8) / 8;
|
---|
| | 70 | ],
|
---|
| | 71 | 0)
|
---|
| | 72 | }
|
---|
| | 73 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_4,
|
---|
| | 74 | [
|
---|
| | 75 | STORE_PERM(
|
---|
| | 76 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 77 | 1
|
---|
| | 78 | ),
|
---|
| | 79 | STORE_PERM(
|
---|
| | 80 | max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
|
---|
| | 81 | 2
|
---|
| | 82 | ),
|
---|
| | 83 | STORE_PERM(
|
---|
| | 84 | max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
|
---|
| | 85 | 3
|
---|
| | 86 | ),
|
---|
| | 87 | STORE_PERM(255, 9),
|
---|
| | 88 | ]) {
|
---|
| | 89 | blast_furnace_simple_produce_4;
|
---|
| | 90 | }
|
---|
| | 91 | if (economy==5) {
|
---|
| | 92 | produce (blast_furnace_simple_produce_5,
|
---|
| | 93 | [
|
---|
| | 94 | IORE: incoming_cargo_waiting("IORE");
|
---|
| | 95 | COKE: incoming_cargo_waiting("COKE");
|
---|
| | 96 | LIME: incoming_cargo_waiting("LIME");
|
---|
| | 97 | ],
|
---|
| | 98 | [
|
---|
| | 99 | IRON: (LOAD_PERM(10) * 4) / 8;
|
---|
| | 100 | CSTI: (LOAD_PERM(10) * 2) / 8;
|
---|
| | 101 | SLAG: (LOAD_PERM(10) * 2) / 8;
|
---|
| | 102 | ],
|
---|
| | 103 | 0)
|
---|
| | 104 | }
|
---|
| | 105 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_5,
|
---|
| | 106 | [
|
---|
| | 107 | STORE_PERM(
|
---|
| | 108 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 109 | 1
|
---|
| | 110 | ),
|
---|
| | 111 | STORE_PERM(
|
---|
| | 112 | max(LOAD_PERM(2), (incoming_cargo_waiting("COKE") > 0) * current_date),
|
---|
| | 113 | 2
|
---|
| | 114 | ),
|
---|
| | 115 | STORE_PERM(
|
---|
| | 116 | max(LOAD_PERM(3), (incoming_cargo_waiting("LIME") > 0) * current_date),
|
---|
| | 117 | 3
|
---|
| | 118 | ),
|
---|
| | 119 | STORE_PERM(255, 9),
|
---|
| | 120 | ]) {
|
---|
| | 121 | blast_furnace_simple_produce_5;
|
---|
| | 122 | }
|
---|
| | 123 | if (economy==3) {
|
---|
| | 124 | produce (blast_furnace_simple_produce_3,
|
---|
| | 125 | [
|
---|
| | 126 | IORE: incoming_cargo_waiting("IORE");
|
---|
| | 127 | COAL: incoming_cargo_waiting("COAL");
|
---|
| | 128 | SCMT: incoming_cargo_waiting("SCMT");
|
---|
| | 129 | ],
|
---|
| | 130 | [
|
---|
| | 131 | METL: (LOAD_PERM(10) * 8) / 8;
|
---|
| | 132 | ],
|
---|
| | 133 | 0)
|
---|
| | 134 | }
|
---|
| | 135 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_3,
|
---|
| | 136 | [
|
---|
| | 137 | STORE_PERM(
|
---|
| | 138 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 139 | 1
|
---|
| | 140 | ),
|
---|
| | 141 | STORE_PERM(
|
---|
| | 142 | max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
|
---|
| | 143 | 2
|
---|
| | 144 | ),
|
---|
| | 145 | STORE_PERM(
|
---|
| | 146 | max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
|
---|
| | 147 | 3
|
---|
| | 148 | ),
|
---|
| | 149 | STORE_PERM(255, 9),
|
---|
| | 150 | ]) {
|
---|
| | 151 | blast_furnace_simple_produce_3;
|
---|
| | 152 | }
|
---|
| | 153 | if (economy==2) {
|
---|
| | 154 | produce (blast_furnace_simple_produce_2,
|
---|
| | 155 | [
|
---|
| | 156 | IORE: incoming_cargo_waiting("IORE");
|
---|
| | 157 | COAL: incoming_cargo_waiting("COAL");
|
---|
| | 158 | SCMT: incoming_cargo_waiting("SCMT");
|
---|
| | 159 | ],
|
---|
| | 160 | [
|
---|
| | 161 | METL: (LOAD_PERM(10) * 8) / 8;
|
---|
| | 162 | ],
|
---|
| | 163 | 0)
|
---|
| | 164 | }
|
---|
| | 165 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_2,
|
---|
| | 166 | [
|
---|
| | 167 | STORE_PERM(
|
---|
| | 168 | max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
|
---|
| | 169 | 1
|
---|
| | 170 | ),
|
---|
| | 171 | STORE_PERM(
|
---|
| | 172 | max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
|
---|
| | 173 | 2
|
---|
| | 174 | ),
|
---|
| | 175 | STORE_PERM(
|
---|
| | 176 | max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
|
---|
| | 177 | 3
|
---|
| | 178 | ),
|
---|
| | 179 | STORE_PERM(255, 9),
|
---|
| | 180 | ]) {
|
---|
| | 181 | blast_furnace_simple_produce_2;
|
---|
| | 182 | }
|
---|
| | 183 | switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce, economy) {
|
---|
| | 184 | 0: blast_furnace_produce_economy_0;
|
---|
| | 185 | 1: blast_furnace_produce_economy_1;
|
---|
| | 186 | 4: blast_furnace_produce_economy_4;
|
---|
| | 187 | 5: blast_furnace_produce_economy_5;
|
---|
| | 188 | 3: blast_furnace_produce_economy_3;
|
---|
| | 189 | 2: blast_furnace_produce_economy_2;
|
---|
| | 190 | } |
---|