I think based off my own reading of the NML spec I've already answered my own question as a 'no' but I thought I'd throw it out there.
Currently I'm doing this:
Code: Select all
switch (FEAT_OBJECTS, SELF, switch_object_auto_build_rules,
(terrain_type == TILETYPE_SNOW) ||
(terrain_type == TILETYPE_DESERT) ||
(nearby_tile_is_water( 0 , 0))
) {
1: return CB_RESULT_LOCATION_DISALLOW;
return CB_RESULT_LOCATION_ALLOW;
}
with this:
Code: Select all
tile_check: switch_object_auto_build_rules;
hiding in the graphics{} block of each object to prevent some objects being built on snow, desert, or tiles directly adjacent the ocean. What I'd *really* love is to detect Farm Land and prevent construction on it too. I've already got "OBJ_FLAG_ANYTHING_REMOVE" set so in theory any farms being built after the fact should be able to clear the land easy-peasy, but these objects are all being generated at map gen time and are getting built after industries are already built and the newobjects are making swiss cheese of farms.
How do?
Thnx