whoward69
DLL Minion
Two minor (and non-essential) tweaks
Code:
function ResetCsFriendships(iPlayer)
[COLOR="Red"] -- Only need to reset for major civs
if (iPlayer < GameDefines.MAX_MAJOR_CIVS) then[/COLOR]
[COLOR="Magenta"] -- No need to check the Barbarians, so -2[/COLOR]
for iCs = GameDefines.MAX_MAJOR_CIVS, [COLOR="magenta"]GameDefines.MAX_CIV_PLAYERS-2[/COLOR], 1 do
local pCs = Players[iCs]
if (pCs:IsEverAlive()) then
pCs:ChangeMinorCivFriendshipWithMajor(iPlayer, -1 * pCs:GetMinorCivFriendshipWithMajor(iPlayer))
end
end
[COLOR="red"] end[/COLOR]
end