IsMinorCiv
From Civilization Modding Wiki
Jump to navigationJump to search
Description
Returns true if this is a city-state.
Example
(from Emigration v.2 mod)
function GetPlayerName(player) if player:IsMinorCiv() then local minorCivType = player:GetMinorCivType(); local minorCivInfo = GameInfo.MinorCivilizations[minorCivType]; return Locale.ConvertTextKey(minorCivInfo.Description); end local iCivType = player:GetCivilizationType(); local civInfo = GameInfo.Civilizations[iCivType]; return Locale.ConvertTextKey(civInfo.Description); end