AW Arcaeca
Deus Vult
I'm trying to make a new civ, which for simplicity I'll just say are the Berbers (which is true) and their UA includes only having half the normal resistance turns for capturing a city, but other civs that capture a Berber city deal with twice the regular resistance.
I'm no Lua programmer, but would this code work, based on what I found in lines 704 - 710 of CityView.lua?
This is just guessing here, and assuming pCity represents the population. And how would you make all other civs get double resistance?
I'm no Lua programmer, but would this code work, based on what I found in lines 704 - 710 of CityView.lua?
Spoiler :
Code:
if (activePlayer:civilizationBerber()) then
if (pCity:IsResistance()) then
Controls.ResistanceIcon:SetHide(false);
Controls.ResistanceIcon:LocalizeAndSetToolTip("TXT_KEY_CITY_RESISTANCE", pCity:GetResistanceTurns(pCity/2));
else
Controls.ResistanceIcon:SetHide(true);
end
This is just guessing here, and assuming pCity represents the population. And how would you make all other civs get double resistance?