Uighur_Caesar
Comandante en Jefe
Here's the Bonyad code I made a long time ago:
I'm gonna try and make the Rev Guard's code too. Idk is the last bit about killing spies is possible, but I'll see if I can figure anything out.
Spoiler :
Code:
local IranID = GameInfoTypes["CIVILIZATION_OW_IRAN"]
local buildingBonyadID = GameInfoTypes["BUILDING_OW_BONYAD"]
local yieldGoldID = GameInfoTypes["YIELD_GOLD"]
local yieldFaithID = GameInfoTypes["YIELD_FAITH"]
local bonyaddummyID = GameInfoTypes["BUILDING_BONYADDUMMY"]
function BonyadFaith(playerID)
local player = Players[playerID];
if (player:IsAlive() and player:GetCivilizationType() == IranID) then
for city in player:Cities() do
if city:IsHasBuilding(buildingBonyadID) then
local faithBoost = math.ceil(city:GetBaseYieldRate(yieldGoldID) * 25/100)
city:SetNumRealBuilding(bonyaddummyID, faithBoost)
end
end
end
end
GameEvents.PlayerDoTurn.Add(BonyadFaith)
I'm gonna try and make the Rev Guard's code too. Idk is the last bit about killing spies is possible, but I'll see if I can figure anything out.