Code: Select all
switch (FEAT_INDUSTRIES, SELF, switch_check_road_university, nearby_tile_class(6,0) == TILE_CLASS_ROAD
) {
1: CB_RESULT_LOCATION_ALLOW;
return CB_RESULT_LOCATION_DISALLOW;
}
item(FEAT_INDUSTRIES, university, 73) {
property {
substitute: 0;
life_type: IND_LIFE_TYPE_PROCESSING;
closure_msg: TTD_STR_NEWS_INDUSTRY_CLOSURE_SUPPLY_PROBLEMS;
prod_increase_msg: TTD_STR_NEWS_INDUSTRY_PRODUCTION_INCREASE_GENERAL;
prod_decrease_msg: TTD_STR_NEWS_INDUSTRY_PRODUCTION_DECREASE_GENERAL;
new_ind_msg: TTD_STR_NEWS_INDUSTRY_CONSTRUCTION;
min_cargo_distr: 5;
map_colour: 169;
spec_flags: bitmask(IND_FLAG_LONG_CARGO_TYPE_LISTS, IND_FLAG_ONLY_IN_LARGE_TOWNS);
layouts:
[
university_industry_layout_1_tilelayout,
];
name: string(STR_IND_university);
nearby_station_name: string(STR_STATION, string(STR_TOWN));
prob_map_gen: 5;
prob_random: 13;
prob_in_game: 6;
prospect_chance: 0.75;
fund_cost_multiplier: 140;
remove_cost_multiplier: 0;
cargo_types:[accept_cargo("STUD", produce_cargo("WORK",1))];
}
}
item(FEAT_INDUSTRIES, university, 73) {
graphics {
location_check: switch_check_road_university;
extra_text_industry: return string(STR_EXTRA_university);
}
}
Any idea?