Quantcast
Channel: Civilization Fanatics' Forums
Viewing all articles
Browse latest Browse all 12856

[GEM 1.14/CivUP 2.6 BETA] - Barbarian Horsemen

$
0
0
I know there was talk of changing the chariot archers re: camps. (The quote from the wikia page is: "Camps are defended by Chariot units less often"). This is fine, good even, but we can't have horseman showing up from the get-go. I have a couple bearing down on my capital around turn 45. (Encountered my first horseman in the first camp at about turn 30 and he whacked my poor Warrior).

I'm all for a good baa-baa fight, but not horseman at the very beginning of the Ancient Era! :eek:

I assume this is the change (ll. 70-87 in GEM>Barbarians>GEB_Events):

Code:

function ReplaceChariots()
        local campID        = GameInfo.Improvements.IMPROVEMENT_BARBARIAN_CAMP.ID
        local chariotID = GameInfo.Units.UNIT_BARBARIAN_CHARIOT_ARCHER.ID
        for playerID, player in pairs(Players) do
                if player and player:IsBarbarian() then
                        for unit in player:Units() do
                                if unit:GetUnitType() == chariotID then
                                        local plot = unit:GetPlot()
                                        if plot:GetImprovementType() == campID and not plot:IsVisibleToWatchingHuman() then
                                                log:Info("Replace barb chariot")
                                                Unit_Replace(unit, "UNITCLASS_HORSEMAN")
                                        end
                                end
                        end
                        break
                end
        end
end

Need to make them come later at least.

Viewing all articles
Browse latest Browse all 12856

Trending Articles