Editing Module:UnitData

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 96: Line 96:
 
result = result .. frame:expandTemplate(unit.getAbilityInfoboxTemplate("transport", args))
 
result = result .. frame:expandTemplate(unit.getAbilityInfoboxTemplate("transport", args))
 
end
 
end
if ud.canCloak or ud.idleCloak then
+
if ud.cloakCost or ud.idleCloak then
 
local args = {}
 
local args = {}
 
if (ud.cloakCost or 0) > 0 then
 
if (ud.cloakCost or 0) > 0 then
 
args.upkeepidle = ud.cloakCost
 
args.upkeepidle = ud.cloakCost
args.upkeepmobile = (ud.cloakCostMoving ~= ud.cloakCost) and ud.cloakCostMoving or nil
+
args.upkeepmobile = ud.cloakCostMoving
 
elseif ud.idleCloak then
 
elseif ud.idleCloak then
 
args.customdata1 = "Only when idle"
 
args.customdata1 = "Only when idle"
Line 169: Line 169:
 
if ud.armorDamageReduction then
 
if ud.armorDamageReduction then
 
local args = {reduction = ud.armorDamageReduction .. '%'}
 
local args = {reduction = ud.armorDamageReduction .. '%'}
 +
abilities = abilities .. "\n\t" .. writeHeaderLine("Infobox zkability armored")
 
if ud.armorForceClose then
 
if ud.armorForceClose then
 
args.special1 = "Forced for " .. ud.armorForceClose .. "s on damage"
 
args.special1 = "Forced for " .. ud.armorForceClose .. "s on damage"

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page: