ESO Lua File v100015

ingame/campaign/campaignbrowserdialogs_shared.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    local endCampaignNowCost = 0
    local endCampaignAfterEndCost = 0
    if(GetNumFreeAnytimeCampaignReassigns() == 0) then
        endCampaignNowCost = GetCampaignReassignCost(CAMPAIGN_REASSIGN_TYPE_IMMEDIATE)
    end
    if(GetNumFreeEndCampaignReassigns() == 0) then
        endCampaignAfterEndCost = GetCampaignReassignCost(CAMPAIGN_REASSIGN_TYPE_ON_END)
    end
    return endCampaignNowCost, endCampaignAfterEndCost
end
    local alliancePointCost = 0
    local goldCost = 0
    if(GetNumFreeAnytimeCampaignUnassigns() == 0) then
        alliancePointCost = GetCampaignUnassignCost(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_ALLIANCE_POINTS)
        goldCost = GetCampaignUnassignCost(CAMPAIGN_UNASSIGN_TYPE_HOME_USE_GOLD)
    end
    return alliancePointCost, goldCost
end