Module:Sandbox/LVL: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 516: Line 516:
     ----------------------------------------------------------------------
     ----------------------------------------------------------------------
     if not cooldown_found_in_sections and item.AbilityCooldown then
     if not cooldown_found_in_sections and item.AbilityCooldown then
        local cd = format_stat(item_name, "AbilityCooldown", true, debug)
    local cd = format_stat(item_name, "AbilityCooldown", true, debug)
        if cd then
    if cd then
            table.insert(lines, "| item_stat_cooldown = " .. cd)
        local has_active = false
        end
        for _, section in ipairs(item.TooltipSections or {}) do
    end
            if section.Type == "EArea_Active" then has_active = true; break end
        end
        if has_active then
            table.insert(lines, "| active1_cooldown = " .. cd)
        else
            table.insert(lines, "| item_stat_cooldown = " .. cd)
        end
    end
end


     if not chargeup_found_in_sections and item.AbilityChargeUpTime then
     if not chargeup_found_in_sections and item.AbilityChargeUpTime then