Locutus this editplus isn't free you have to pay a registration fee 
------------------
" mind over body "

------------------
" mind over body "

(Ripping AoE or ToT graphics for use in CtP mods is just as illegal AFAIK, but people don't seem to have a problem with that...)
).
int_f mod_CanCityBuildUnit(city_t theCity, int_t theUnit) {
if (theUnit == UnitDB(UNIT_ARCHER)) {
if (CityHasBuilding(theCity, BuildingDB(IMPROVE_GRANARY))) {
return 1; // can build this
} else {
return 0; // can't build this
}
}
if (theUnit == UnitDB(UNIT_TANK)) {
if (CityHasBuilding(theCity, BuildingDB(IMPROVE_FACTORY))) {
return 1; // can build this
} else {
return 0; // can't build this
}
}
return 1; // can build all other units
}
Comment