Save(pPlayer, "Decisions_OttomanDevshirme", true) InitUnitFromCity(pCity, GameInfoTypes.UNIT_OTTOMAN_JANISSARY, 1) PPlayer:ChangeNumResourceTotal(iMagistrate, -2) Local iCost = math.ceil(pPlayer:GetNumCities() * iMod * 100) If (pPlayer:GetNumResourceAvailable(iMagistrate, false) < 2) then return true, false end If (Teams:IsHasTech(GameInfoTypes.TECH_RIFLING)) then return true, false end If not(Teams:IsHasTech(GameInfoTypes.TECH_GUNPOWDER)) then return true, false end If (pPlayer:GetCapitalCity() = nil) then return true, false end If (pPlayer:GetGold() < iCost) then return true, false end Local iCost = math.ceil(pPlayer:GetNumCities() * iMod * 150)ĭecisions_OttomanDevshirme.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_OTTOMANDEVSHIRME_DESC", iCost) If load(pPlayer, "Decisions_OttomanDevshirme") = true thenĭecisions_OttomanDevshirme.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_OTTOMANDEVSHIRME_ENACTED_DESC") If pPlayer:GetCivilizationType() ~= GameInfoTypes.CIVILIZATION_OTTOMAN then return false, false end HookDecisionCivilizationIcon(Decisions_OttomanDevshirme, "CIVILIZATION_OTTOMAN") Decisions_OttomanDevshirme.Name = "TXT_KEY_DECISIONS_OTTOMANDEVSHIRME"ĭecisions_OttomanDevshirme.Desc = "TXT_KEY_DECISIONS_OTTOMANDEVSHIRME_DESC"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |