Mercurial > wow > worldplan
comparison ClassPlanShipments.lua @ 109:caa482329919
POI optimization
author | Nenue |
---|---|
date | Mon, 10 Jul 2017 18:34:11 -0400 |
parents | b2be2de2b133 |
children | e8b6c5433128 |
comparison
equal
deleted
inserted
replaced
108:b67ba1078824 | 109:caa482329919 |
---|---|
105 for i = 1, #looseShipments do | 105 for i = 1, #looseShipments do |
106 local name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString = CG_GetLandingPageShipmentInfoByContainerID(looseShipments[i]); | 106 local name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString = CG_GetLandingPageShipmentInfoByContainerID(looseShipments[i]); |
107 AddShipmentInfo(AK_NOTES, name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString) | 107 AddShipmentInfo(AK_NOTES, name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString) |
108 end | 108 end |
109 | 109 |
110 local talentTrees = CG_GetTalentTrees(garrisonType, select(3, UnitClass("player"))); | 110 |
111 local talentTrees = C_Garrison.GetTalentTreeIDsByClassID(garrisonType, select(3, UnitClass("player"))); | |
111 -- this is a talent that has completed, but has not been seen in the talent UI yet. | 112 -- this is a talent that has completed, but has not been seen in the talent UI yet. |
112 local completeTalentID = CG_GetCompleteTalent(garrisonType); | 113 local completeTalentID = CG_GetCompleteTalent(garrisonType); |
113 --print('Talents:') | 114 print('Talents:') |
114 if (talentTrees) then | 115 if (talentTrees) then |
115 for treeIndex, tree in ipairs(talentTrees) do | 116 for treeIndex, treeID in ipairs(talentTrees) do |
117 local _, _, tree = C_Garrison.GetTalentTreeInfoForID(garrisonType, treeID); | |
116 for talentIndex, talent in ipairs(tree) do | 118 for talentIndex, talent in ipairs(tree) do |
117 local showTalent = false; | 119 local showTalent = false; |
118 if (talent.isBeingResearched) or (talent.id == completeTalentID) then | 120 if (talent.isBeingResearched) or (talent.id == completeTalentID) then |
119 AddShipmentInfo(OH_TALENT, talent.name, talent.icon, 1, (talent.isBeingResearched and 0 or 1), 1, talent.researchStartTime, talent.researchDuration, talent.timeleftString) | 121 AddShipmentInfo(OH_TALENT, talent.name, talent.icon, 1, (talent.isBeingResearched and 0 or 1), 1, talent.researchStartTime, talent.researchDuration, talent.timeleftString) |
120 end | 122 end |