跟随版本 0.8.19
This commit is contained in:
@@ -3593,6 +3593,15 @@ function CP:BuildPetPage()
|
||||
sY = sY - 14
|
||||
end
|
||||
|
||||
page.petAtkSpeedLabel = MakeFS(child, 9, "LEFT", T.labelText)
|
||||
page.petAtkSpeedLabel:SetPoint("TOPLEFT", child, "TOPLEFT", 160, sY)
|
||||
page.petAtkSpeedLabel:SetText("攻速:")
|
||||
page.petAtkSpeedValue = MakeFS(child, 9, "RIGHT", T.valueText)
|
||||
page.petAtkSpeedValue:SetPoint("TOPRIGHT", child, "TOPRIGHT", -14, sY)
|
||||
page.petAtkSpeedValue:SetWidth(80)
|
||||
page.petAtkSpeedValue:SetJustifyH("RIGHT")
|
||||
sY = sY - 14
|
||||
|
||||
-- Resistances
|
||||
sY = sY - 4
|
||||
sY = self:CreateStatSection(child, "抗性", sY)
|
||||
@@ -3800,6 +3809,13 @@ function CP:UpdatePet()
|
||||
r.value:SetText(combatVals[i] or "0")
|
||||
end
|
||||
|
||||
local petAtkSpeed = 2.0
|
||||
if UnitAttackSpeed then
|
||||
local ok, ms = pcall(UnitAttackSpeed, "pet")
|
||||
if ok and ms then petAtkSpeed = ms end
|
||||
end
|
||||
page.petAtkSpeedValue:SetText(string.format("%.1f", petAtkSpeed))
|
||||
|
||||
for _, r in ipairs(page.resStats) do
|
||||
local base, bonus = 0, 0
|
||||
if UnitResistance then
|
||||
|
||||
Reference in New Issue
Block a user