Hi guys again!
I tried it again an industry make, what can build nearbery an another indurstry.
To that, i want use be the
but i can't make an workably version. (Yes the same problem like before).
Maybe it's can't use to another Industry, or i have make some wrong?
Code: Select all
item(FEAT_INDUSTRYTILES, title_00_ISZAN_1, 0x00)
{
property
{
substitute: 0x00;
override: 0x00;
accepted_cargos: [[PASS, 8], [FERT, 8], [MNSP, 8]];
}
graphics { layout_00_ISZAN; }
}
tilelayout titlelayout_ISZAN_0
{
0, 0: title_00_ISZAN_0;
}
switch(FEAT_INDUSTRYTILES, SELF, nearby_tile_industrie,
nearby_tile_industrytile_id (0,1))
{
0x0000..0xFFFE: return CB_RESULT_LOCATION_ALLOW ;
CB_RESULT_LOCATION_DISALLOW;
}
item(FEAT_INDUSTRYTILES, title_00_IGYAR) {
property {
substitute: 0x1B;
accepted_cargos: [];
}
graphics {
tile_check: nearby_tile_industrie;
layout_00_ISZAN;
}
}
item(FEAT_INDUSTRIES, ISZAN, 0x00)
{
property
{
substitute: 0x00;
override: 0x00;
name: string(STR_NAME_ISZAN);
layouts: [titlelayout_ISZAN_0];
prob_random: 64;
prob_in_game: 2;
cargo_types: [ accept_cargo("FERT"), accept_cargo("MNSP"),
produce_cargo("GRAI", 0), produce_cargo("WSTE", 0) ];
map_colour: 0xC2;
life_type: IND_LIFE_TYPE_PROCESSING;
fund_cost_multiplier: 100;
min_cargo_distr: 0;
prospect_chance: 0.75;
spec_flags: bitmask(IND_FLAG_PLANT_FIELDS_PERIODICALLY);
}
}
item(FEAT_INDUSTRIES, ISZAN, 0x00)
{
graphics
{
build_prod_change: Industry_reset_switch;
stop_accept_cargo: ISZAN_worker_acceptance;
//extra_text_industry: IUJRA_extra_text;
produce_256_ticks: ISZAN_termes;
control_special: ISZAN_control;
}
}
- - - - - -
tilelayout titlelayout_IGYAR {
0, 0: title_00_IGYAR;
}
switch(FEAT_INDUSTRIES, SELF, IGYAR_extra_text_00, current_year)
{
return string(STR_IND_GYAR);
}
item(FEAT_INDUSTRIES, IGYAR, 0x1B) {
property {
substitute: 0x1B;
name: string(STR_NAME_IGYAR);
layouts: [titlelayout_IGYAR];
prob_random: 0;
prob_in_game: 100;
accept_cargo_types: [];
prod_cargo_types: [];
map_colour: 0x11;
life_type: IND_LIFE_TYPE_PROCESSING;
//spec_flags: bitmask(IND_FLAG_BUILT_ONLY_BEFORE_1950);
fund_cost_multiplier: 100;
prod_multiplier: [0, 0];
min_cargo_distr: 0;
input_multiplier_1: [0, 0];
input_multiplier_2: [0, 0];
input_multiplier_3: [0, 0];
prospect_chance: 10;
// spec_flags: bitmask(IND_FLAG_ONLY_IN_TOWNS);
}
graphics
{
build_prod_change: Industry_reset_switch;
//stop_accept_cargo: IGYAR_worker_acceptance;
extra_text_industry: IGYAR_extra_text_00;
//produce_256_ticks: IGYAR__prod;
}
}