OK, got the file without any problem.
Got some questions regarding the following lines within the SLIC code...
=================================================
int_f GetCityLimit(int_t testCiv)
{
int_t CityLimit;
player[0] = testCiv;
if(player[0].govttype == GovernmentDB(GOVERNMENT_ANARCHY)){
CityLimit = 1000;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_TYRANNY)){
CityLimit = 10;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_THEOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_MONARCHY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_REPUBLIC)) {
CityLimit = 20;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_COMMUNISM)
|| player[0].govttype == GovernmentDB(GOVERNMENT_DEMOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_FASCISM)) {
CityLimit = 35;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_TECHNOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_CORPORATE_REPUBLIC)) {
CityLimit = 45;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_VIRTUAL_DEMOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_ECOTOPIA)) {
CityLimit = 60;
}
return CityLimit;
}
// return what generation (age) of governemts is currently available for 'thePlayer'
// this is a stand-in until the player's government can be found somehow.
// Based on part of Wouter's MM2 Partisan code.
int_f GetAge(int_t thePlayer) {
int_t tmpPlayer;
tmpPlayer = thePlayer;
if (HasAdvance(tmpPlayer, ID_ADVANCE_VIRTUAL_DEMOCRACY) && HasAdvance(tmpPlayer, ID_ADVANCE_ECOTOPIA)) { // if player has both diamond govs possible,
CityLimit = 60; // they will be using one of them
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_TECHNOCRACY) && HasAdvance(tmpPlayer, ID_ADVANCE_CORPORATE_REPUBLIC)) { // etc.
CityLimit = 45;
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_DEMOCRACY)){
if(HasAdvance(tmpPlayer, ID_ADVANCE_COMMUNISM) || HasAdvance(tmpPlayer, ID_ADVANCE_FASCISM)) {
CityLimit = 35;
}
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_MONARCHY)){
if(HasAdvance(tmpPlayer, ID_ADVANCE_THEOCRACY) || HasAdvance(tmpPlayer, ID_ADVANCE_BUREAUCRACY)) {
CityLimit = 20;
}
} else {
CityLimit = 10;
}
return CityLimit;
}
=================================================
Since Cradle has a bunch of new governments, what do I need to do with the above code to accurately reflect Cradle's government - especially if there are a lot of max. city variance within the governments that belong to the same age?
And the following question about the code posted below...
=================================================
int_f IsDecentAdvance(int_t AdvanceID)
{
if(AdvanceID == AdvanceDB(ADVANCE_GUNPOWDER)
|| AdvanceID == AdvanceDB(ADVANCE_INDUSTRIALIZATION)
|| AdvanceID == AdvanceDB(ADVANCE_TANK_WARFARE)
|| AdvanceID == AdvanceDB(ADVANCE_ADVANCED_INFANTRY_TACTICS)
|| AdvanceID == AdvanceDB(ADVANCE_FLIGHT)){
return 1;
}
else {
return 0;
}
}
=================================================
Are these the advances that can potentially enable the code to kick in?
Got some questions regarding the following lines within the SLIC code...
=================================================
int_f GetCityLimit(int_t testCiv)
{
int_t CityLimit;
player[0] = testCiv;
if(player[0].govttype == GovernmentDB(GOVERNMENT_ANARCHY)){
CityLimit = 1000;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_TYRANNY)){
CityLimit = 10;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_THEOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_MONARCHY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_REPUBLIC)) {
CityLimit = 20;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_COMMUNISM)
|| player[0].govttype == GovernmentDB(GOVERNMENT_DEMOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_FASCISM)) {
CityLimit = 35;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_TECHNOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_CORPORATE_REPUBLIC)) {
CityLimit = 45;
} elseif(player[0].govttype == GovernmentDB(GOVERNMENT_VIRTUAL_DEMOCRACY)
|| player[0].govttype == GovernmentDB(GOVERNMENT_ECOTOPIA)) {
CityLimit = 60;
}
return CityLimit;
}
// return what generation (age) of governemts is currently available for 'thePlayer'
// this is a stand-in until the player's government can be found somehow.
// Based on part of Wouter's MM2 Partisan code.
int_f GetAge(int_t thePlayer) {
int_t tmpPlayer;
tmpPlayer = thePlayer;
if (HasAdvance(tmpPlayer, ID_ADVANCE_VIRTUAL_DEMOCRACY) && HasAdvance(tmpPlayer, ID_ADVANCE_ECOTOPIA)) { // if player has both diamond govs possible,
CityLimit = 60; // they will be using one of them
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_TECHNOCRACY) && HasAdvance(tmpPlayer, ID_ADVANCE_CORPORATE_REPUBLIC)) { // etc.
CityLimit = 45;
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_DEMOCRACY)){
if(HasAdvance(tmpPlayer, ID_ADVANCE_COMMUNISM) || HasAdvance(tmpPlayer, ID_ADVANCE_FASCISM)) {
CityLimit = 35;
}
} elseif (HasAdvance(tmpPlayer, ID_ADVANCE_MONARCHY)){
if(HasAdvance(tmpPlayer, ID_ADVANCE_THEOCRACY) || HasAdvance(tmpPlayer, ID_ADVANCE_BUREAUCRACY)) {
CityLimit = 20;
}
} else {
CityLimit = 10;
}
return CityLimit;
}
=================================================
Since Cradle has a bunch of new governments, what do I need to do with the above code to accurately reflect Cradle's government - especially if there are a lot of max. city variance within the governments that belong to the same age?
And the following question about the code posted below...
=================================================
int_f IsDecentAdvance(int_t AdvanceID)
{
if(AdvanceID == AdvanceDB(ADVANCE_GUNPOWDER)
|| AdvanceID == AdvanceDB(ADVANCE_INDUSTRIALIZATION)
|| AdvanceID == AdvanceDB(ADVANCE_TANK_WARFARE)
|| AdvanceID == AdvanceDB(ADVANCE_ADVANCED_INFANTRY_TACTICS)
|| AdvanceID == AdvanceDB(ADVANCE_FLIGHT)){
return 1;
}
else {
return 0;
}
}
=================================================
Are these the advances that can potentially enable the code to kick in?
Comment