- if (economy==0) {
- produce (blast_furnace_simple_produce_0,
- [
- IORE: incoming_cargo_waiting("IORE");
- COAL: incoming_cargo_waiting("COAL");
- SCMT: incoming_cargo_waiting("SCMT");
- ],
- [
- STEL: (LOAD_PERM(10) * 8) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_0,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_0;
- }
- if (economy==1) {
- produce (blast_furnace_simple_produce_1,
- [
- IORE: incoming_cargo_waiting("IORE");
- COAL: incoming_cargo_waiting("COAL");
- SCMT: incoming_cargo_waiting("SCMT");
- ],
- [
- METL: (LOAD_PERM(10) * 8) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_1,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_1;
- }
- if (economy==4) {
- produce (blast_furnace_simple_produce_4,
- [
- IORE: incoming_cargo_waiting("IORE");
- COAL: incoming_cargo_waiting("COAL");
- SCMT: incoming_cargo_waiting("SCMT");
- ],
- [
- METL: (LOAD_PERM(10) * 8) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_4,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_4;
- }
- if (economy==5) {
- produce (blast_furnace_simple_produce_5,
- [
- IORE: incoming_cargo_waiting("IORE");
- COKE: incoming_cargo_waiting("COKE");
- LIME: incoming_cargo_waiting("LIME");
- ],
- [
- IRON: (LOAD_PERM(10) * 4) / 8;
- CSTI: (LOAD_PERM(10) * 2) / 8;
- SLAG: (LOAD_PERM(10) * 2) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_5,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COKE") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("LIME") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_5;
- }
- if (economy==3) {
- produce (blast_furnace_simple_produce_3,
- [
- IORE: incoming_cargo_waiting("IORE");
- COAL: incoming_cargo_waiting("COAL");
- SCMT: incoming_cargo_waiting("SCMT");
- ],
- [
- METL: (LOAD_PERM(10) * 8) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_3,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_3;
- }
- if (economy==2) {
- produce (blast_furnace_simple_produce_2,
- [
- IORE: incoming_cargo_waiting("IORE");
- COAL: incoming_cargo_waiting("COAL");
- SCMT: incoming_cargo_waiting("SCMT");
- ],
- [
- METL: (LOAD_PERM(10) * 8) / 8;
- ],
- 0)
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce_economy_2,
- [
- STORE_PERM(
- max(LOAD_PERM(1), (incoming_cargo_waiting("IORE") > 0) * current_date),
- 1
- ),
- STORE_PERM(
- max(LOAD_PERM(2), (incoming_cargo_waiting("COAL") > 0) * current_date),
- 2
- ),
- STORE_PERM(
- max(LOAD_PERM(3), (incoming_cargo_waiting("SCMT") > 0) * current_date),
- 3
- ),
- STORE_PERM(255, 9),
- ]) {
- blast_furnace_simple_produce_2;
- }
- switch (FEAT_INDUSTRIES, SELF, blast_furnace_produce, economy) {
- 0: blast_furnace_produce_economy_0;
- 1: blast_furnace_produce_economy_1;
- 4: blast_furnace_produce_economy_4;
- 5: blast_furnace_produce_economy_5;
- 3: blast_furnace_produce_economy_3;
- 2: blast_furnace_produce_economy_2;
- }