Module:Sandbox/LVL: Difference between revisionsGive feedback
Jump to navigation
Jump to search
No edit summary |
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) | |||
if cd then | |||
local has_active = false | |||
for _, section in ipairs(item.TooltipSections or {}) do | |||
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 | ||