Against article background
Against navbox table background


Against wikitable table background
DmgImpactSmall64.png Impact DmgPunctureSmall64.png Puncture DmgSlashSmall64.png Slash

DmgColdSmall64.png Cold DmgElectricitySmall64.png Electricity DmgHeatSmall64.png Heat DmgToxinSmall64.png Toxin
DmgBlastSmall64.png Blast DmgCorrosiveSmall64.png Corrosive DmgGasSmall64.png Gas DmgMagneticSmall64.png Magnetic DmgRadiationSmall64.png Radiation DmgViralSmall64.png Viral
DmgTauSmall64.png Tau DmgTrueSmall64.png True DmgVoidSmall64.png Void
DmgImpairSmall64.png Impair Knockdown Lifted Ragdoll Stagger

Test DmgImpactSmall64.png Impact DmgPunctureSmall64.png Puncture DmgSlashSmall64.png Slash

DmgColdSmall64.png Cold DmgElectricitySmall64.png Electricity DmgHeatSmall64.png Heat DmgToxinSmall64.png Toxin
DmgBlastSmall64.png Blast DmgCorrosiveSmall64.png Corrosive DmgGasSmall64.png Gas DmgMagneticSmall64.png Magnetic DmgRadiationSmall64.png Radiation DmgViralSmall64.png Viral
DmgTauSmall64.png Tau DmgTrueSmall64.png True DmgVoidSmall64.png Void
DmgImpairSmall64.png Impair Knockdown Lifted Ragdoll Stagger


Against infobox background

Against T:AbilityU10.3 background
Panel.png Panel.png
ENERGY:
N/A
KEY
N/A
Test
DmgImpactSmall64.png Impact DmgPunctureSmall64.png Puncture DmgSlashSmall64.png Slash

DmgColdSmall64.png Cold DmgElectricitySmall64.png Electricity DmgHeatSmall64.png Heat DmgToxinSmall64.png Toxin
DmgBlastSmall64.png Blast DmgCorrosiveSmall64.png Corrosive DmgGasSmall64.png Gas DmgMagneticSmall64.png Magnetic DmgRadiationSmall64.png Radiation DmgViralSmall64.png Viral
DmgTauSmall64.png Tau DmgTrueSmall64.png True DmgVoidSmall64.png Void
DmgImpairSmall64.png Impair Knockdown Lifted Ragdoll Stagger

Strength:N/A
Duration:N/A
Range:N/A
Expand/Collapse


Against emodtable table header background
DmgImpactSmall64.png Impact DmgPunctureSmall64.png Puncture DmgSlashSmall64.png Slash

DmgColdSmall64.png Cold DmgElectricitySmall64.png Electricity DmgHeatSmall64.png Heat DmgToxinSmall64.png Toxin
DmgBlastSmall64.png Blast DmgCorrosiveSmall64.png Corrosive DmgGasSmall64.png Gas DmgMagneticSmall64.png Magnetic DmgRadiationSmall64.png Radiation DmgViralSmall64.png Viral
DmgTauSmall64.png Tau DmgTrueSmall64.png True DmgVoidSmall64.png Void
DmgImpairSmall64.png Impair Knockdown Lifted Ragdoll Stagger

Test


Against T:Codex background

-- TODO: Standardize key name formatting to use TitleCase. This is to be consistent with the 
-- rest of /data subpages on the wiki. Would also reduce confusion on when to use TitleCase
-- or lowercase for keys.
local DamageTypes = 
{
["Types"] = {
    ["Impact"]= {
        icon  = "DmgImpactSmall64.png",
        link  = "Damage/Impact Damage",
        color = "#52797a",
        ColorBorder = "#486061",
        ColorBackground = "#cad8d8",
        Positives = {
            {"Shield", 50},
            {"Machinery", 25},
            {"Proto Shield", 15},
            },
        Negatives = {
            {"Flesh", 25},
            {"Cloned Flesh", 25},
            {"Tenno Shield", 25},
            },
        Status = {"Stagger"},
        StatusNotes = {1, 2},
    },
    ["Puncture"]= {
        icon  = "DmgPunctureSmall64.png",
        link  = "Damage/Puncture Damage",
        color = "#7a6652",
        ColorBorder = "#615448",
        ColorBackground = "#d8d1ca",
        Positives = {
            {"Ferrite Armor", 50},
            {"Infested Sinew", 25},
            {"Robotic", 25},
            {"Alloy Armor", 15},
            },
        Negatives = {
            {"Proto Shield", 50},
            {"Shield", 20},
            {"Tenno Shield", 25},
            },
        Status = {"Weakened"},
    },
    ["Slash"]= {
        icon  = "DmgSlashSmall64.png",
        link  = "Damage/Slash Damage",
        color = "#7a5254",
        ColorBorder = "#614849",
        ColorBackground = "#d8cacb",
        Positives = {
            {"Infested Flesh", 50},
            {"Infested", 25},
            {"Flesh", 25},
            {"Cloned Flesh", 25},
            {"Fossilized", 15},
            },
        Negatives = {
            {"Ferrite Armor", 15},
            {"Robotic", 25},
            {"Alloy Armor", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Bleed"},
    },

    ["Cold"]= {
        icon  = "DmgColdSmall64.png",
        link  = "Damage/Cold Damage",
        color = "#2b9ee2",
        ColorBorder = "#1c638d",
        ColorBackground = "#c3d5df",
        Positives = {
            {"Shield", 50},
            {"Alloy Armor", 25},
            {"Infested Sinew", 25},
            },
        Negatives = {
            {"Fossilized", 25},
            {"Infested Flesh", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Slowdown"},
    },
    ["Electricity"]= {
        icon  = "DmgElectricitySmall64.png",
        link  = "Damage/Electricity Damage",
        color = "#8816f3",
        ColorBorder = "#561c8d",
        ColorBackground = "#d2c3df",
        Positives = {
            {"Machinery", 50},
            {"Robotic", 50},
            },
        Negatives = {
            {"Alloy Armor", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Tesla Chain", "Stun"},
        StatusNotes = {1,2},
    },
    ["Heat"]= {
        icon  = "DmgFireSmall64.png",
        link  = "Damage/Heat Damage",
        color = "#d66400",
        ColorBorder = "#8d501c",
        ColorBackground = "#dfd0c3",
        Positives = {
            {"Infested Flesh", 50},
            {"Cloned Flesh", 25},
            {"Infested", 25},
            },
        Negatives = {
            {"Proto Shield", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Fire DoT", "Panic", "Armor Stripping"},
        StatusNotes = {1,3},
    },
    ["Toxin"]= {
        icon  = "DmgToxinSmall64.png",
        link  = "Damage/Toxin Damage",
        color = "#007d16",
        ColorBorder = "#1c8d30",
        ColorBackground = "#c3dfc8",
        Positives = {
            {"Flesh", 50},
            {"Proto Shield", 25},
            },
        Negatives = {
            {"Machinery", 25},
            {"Robotic", 25},
            {"Fossilized", 50},
            {"Tenno Shield", 25},
            },
        Bypass = {"Shield", "Proto Shield", "Tenno Shield"},
        BypassNotes = {5},
        Status = {"Poison DoT"},
    },

    ["Blast"]= {
        icon  = "DmgBlastSmall64.png",
        link  = "Damage/Blast Damage",
        color = "#b32a00",
        ColorBorder = "#8d361c",
        ColorBackground = "#dfcac3",
        Types = {"Heat","Cold"},
        Positives = {
            {"Machinery", 75},
            {"Fossilized", 50},
            },
        Negatives = {
            {"Ferrite Armor", 25},
            {"Infested Sinew", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Accuracy Reduction"},
        --StatusNotes = {1,2},
    },
    ["Corrosive"]= {
        icon  = "DmgCorrosiveSmall64.png",
        link  = "Damage/Corrosive Damage",
        color = "#86b300",
        ColorBorder = "#708d1c",
        ColorBackground = "#d8dfc3",
        Types = {"Electricity","Toxin"},
        Positives = {
            {"Fossilized", 75},
            {"Ferrite Armor", 75},
            },
        Negatives = {
            {"Proto Shield", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Armor Stripping"},
    },
    ["Gas"]= {
        icon  = "DmgGasSmall64.png",
        link  = "Damage/Gas Damage",
        color = "#00ad5f",
        ColorBorder = "#1c8d5a",
        ColorBackground = "#c3dfd2",
        Types = {"Heat","Toxin"},
        Positives = {
            {"Infested", 75},
            {"Infested Flesh", 50},
            },
        Negatives = {
            {"Cloned Flesh", 50},
            {"Flesh", 25},
            {"Tenno Shield", 25},
            },
        Status = {"Gas Cloud"},
    },
    ["Magnetic"]= {
        icon  = "DmgMagneticSmall64.png",
        link  = "Damage/Magnetic Damage",
        color = "#5752e0",
        ColorBorder = "#201c8d",
        ColorBackground = "#c4c3df",
        Types = {"Cold","Electricity"},
        Positives = {
            {"Shield", 75},
            {"Proto Shield", 75},
            },
        Negatives = {
            {"Alloy Armor", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Additional Shield Damage"},
    },
    ["Radiation"]= {
        icon  = "DmgRadiationSmall64.png",
        link  = "Damage/Radiation Damage",
        color = "#b88a00",
        ColorBorder = "#8d701c",
        ColorBackground = "#dfd8c3",
        Types = {"Heat","Electricity"},
        Positives = {
            {"Alloy Armor", 75},
            {"Infested Sinew", 50},
            {"Robotic", 25},
            },
        Negatives = {
            {"Shield", 25},
            {"Fossilized", 75},
            {"Infested", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Friendly Fire"},
        StatusNotes = {1},
    },
    ["Viral"]= {
        icon  = "DmgViralSmall64.png",
        link  = "Damage/Viral Damage",
        color = "#b71658",
        ColorBorder = "#8d1c4b",
        ColorBackground = "#dfc3cf",
        Types = {"Cold","Toxin"},
        Positives = {
            {"Cloned Flesh", 75},
            {"Flesh", 50},
            },
        Negatives = {
            {"Machinery", 25},
            {"Infested", 50},
            {"Tenno Shield", 25},
            },
        Status = {"Increased Health Damage"},
    },

    ["True"] = {
        icon = "DmgTrueSmall64.png",
        link = "Damage/True Damage",
        color = "#d8a12b",
        ColorBorder = "#d8a12b",
        ColorBackground = "#ddd6c7",
        Bypass = {"Ferrite Armor","Alloy Armor","Tenno Armor","Infested Sinew"},
        BypassNotes = {5},
    },
    ["Void"]= {
        icon  = "DmgVoidSmall64.png",
        link  = "Damage/Void Damage",
        color = "#088a70",
        ColorBorder = "#1c8d76",
        ColorBackground = "#c3dfd9",
        Negatives = {
            {"Tenno Shield", 25},
            },
        Status = {"Bullet Attract"},
    },
    ["Tau"]= {
        icon  = "DmgTauSmall64.png",
        link  = "Damage/Tau Damage",
        color = "#d6050a",
        ColorBorder = "#8d1c1f",
        ColorBackground = "#dfc3c4",
        Negatives = {
            {"Tenno Shield", 25},
            },
        Status = {"N/A"},
    },

    ["Impair"]= {
        icon  = "DmgImpairSmall64.png",
        link  = "Impair",
        color = "#949494",
    },
},
["Notes"] = {
    --notes for status and bypass
    [1] = "Does not affect Bosses.",
    [2] = "Does not affect Rollers, Regulators, Latchers or Ospreys.",
    [3] = "Does not affect Rollers, Regulators, Latchers, Ospreys or MOAs.",
    [4] = "This Status Effect bypasses Shield protections as it consists of Toxin damage.",
    [5] = "The damage associated bypasses these secondary protections.",
},
["Health"] = {
--[==[creation script:
for k,v in pairs(p.Health) do print([=[
    ["]=]..k..[=["] = {
        Positives = {},]=]..(v.Bypass and '\n        Bypass = {},\n' or '\n')..[=[
        Negatives = {},
        Nickname = "",
        Faction = {""},
        Type = "",
        Color = "",
    },]=]) end
--health type patch creation:
        if not DamageTypes["Health"][v[1]] then
            error(v[1])
            DamageTypes["Health"][v[1]] = {
                Positives = {},
                Bypass = {},
                Negatives = {},
                Nickname = "Error",
                Faction = {"Grineer", "Corpus", "Infested"},
                Type = "Health",
                Color = "0, 100%",
            }
        end
]==]
    ["Alloy Armor"] = {
        link = 'Damage/Alloy Armor',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Alloy",
        Faction = {"Grineer"},
        Type = "Armor",
        Color = "90, 5%",
    },
    ["Infested Sinew"] = {
        link = 'Damage/Infested Sinew',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Sinew",
        Faction = {"Infested"},
        Type = "Armor",
        Color = "310, 14%",
    },
    ["Tenno Shield"] = {
        link = 'Damage/Tenno Shield',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Faction = {"Tenno"},
        Type = "Shield",
        Color = "228, 51%",
    },
    ["Tenno Armor"] = {
        link = 'Damage/Tenno Armor',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Faction = {"Tenno"},
        Type = "Armor",
        Color = "60, 90%",
    },
    ["Tenno Flesh"] = {
        link = 'Damage/Tenno Flesh',
        Positives = {},
        --Bypass = {},
        Negatives = {},
        Faction = {"Tenno"},
        Type = "Health",
        Color = "0, 85%",
    },
    ["Shield"] = {
        link = 'Damage/Shield',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Faction = {"Corpus"},
        Type = "Shield",
        Color = "228, 51%",
    },
    ["Machinery"] = {
        link = 'Damage/Machinery',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Machine",
        Faction = {"Grineer"},
        Type = "Health",
        Color = "250, 10%",
    },
    ["Ferrite Armor"] = {
        link = 'Damage/Ferrite Armor',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Ferrite",
        Faction = {"Grineer"},
        Type = "Armor",
        Color = "30, 5%",
    },
    ["Robotic"] = {
        link = 'Damage/Robotic',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Faction = {"Corpus"},
        Type = "Health",
        Color = "220, 25%",
    },
    ["Infested"] = {
        link = 'Damage/Infested',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Faction = {"Infested"},
        Type = "Health",
        Color = "180, 18%",
    },
    ["Cloned Flesh"] = {
        link = 'Damage/Cloned Flesh',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Cloned",
        Faction = {"Grineer"},
        Type = "Health",
        Color = "26, 31%",
    },
    ["Flesh"] = {
        link = 'Damage/Flesh',
        Positives = {},
        Negatives = {},
        Faction = {"Corpus"},
        Type = "Health",
        Color = "13, 31%",
    },
    ["Fossilized"] = {
        link = 'Damage/Fossilized',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Fossil",
        Faction = {"Infested"},
        Type = "Health",
        Color = "140, 12%",
    },
    ["Proto Shield"] = {
        link = 'Damage/Proto Shield',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "Proto",
        Faction = {"Corpus"},
        Type = "Shield",
        Color = "238, 41%",
    },
    ["Infested Flesh"] = {
        link = 'Damage/Infested Flesh',
        Positives = {},
        Bypass = {},
        Negatives = {},
        Nickname = "I. Flesh",
        Faction = {"Infested"},
        Type = "Health",
        Color = "70, 12%",
    },
},
["total"] = {["Tenno Flesh"]={}},
["dictionary"] = {
    ["Health"] = {
        {'Impact', 73},
        {'Puncture', 73},
        {'Slash', 73},
        
        {'Cold', 78},
        {'Electricity', 78},
        {'Heat', 78},
        {'Toxin', 78},
        
        {'Blast', 83},
        {'Corrosive', 83},
        {'Gas', 83},
        {'Magnetic', 83},
        {'Radiation', 83},
        {'Viral', 83},
        
        {'True', 88},
        {'Void', 88},
        {'Tau', 88},
    },
    ["Types"] = {
        {"Cloned Flesh", "Grineer"},
        {"Flesh", "Corpus"},
        {"Infested", "Infested"},
        
        {"Ferrite Armor", "Grineer"},
        {"Shield", "Corpus"},
        {"Infested Flesh", "Infested"},
        
        {"Alloy Armor", "Grineer"},
        {"Proto Shield", "Corpus"},
        {"Fossilized", "Infested"},
        
        {"Machinery", "Grineer"},
        {"Robotic", "Corpus"},
        {"Infested Sinew", "Infested"},
    },
    ["Factions"] = {
        Grineer     = {
            {"Cloned Flesh","Ferrite Armor","Alloy Armor","Machinery"}, 
            {"#FFC8C8","#FFE8E8"},
        },
        Corpus      = {
            {"Flesh","Shield","Proto Shield","Robotic"}, 
            {"#C8C8FF","#E8E8FF"},
        },
        Infested    = {
            {"Infested","Infested Flesh","Fossilized","Infested Sinew"}, 
            {"#C8FFC8","#E8FFE8"},
        },
    },
    ["FactionOrder"]={'Grineer','Corpus','Infested'},
},
}
--[= =[
for k, t in pairs(DamageTypes["Types"]) do--type name, type
    for _,n in ipairs{'Negatives','Bypass','Positives'} do--positive and negative
        for __,v in ipairs(t[n] or {}) do--each attribute {'health type',#percent}
            if type(v)~='table' then v={v,0} end--bypass
            --put patch script here
            table.insert(DamageTypes["Health"][v[1]][n], {k,v[2]})--add attribute {type name, #percent}
            for ___,doh in ipairs{{k,v[1]},{v[1],k}} do--loop between damage and health names
                if not DamageTypes["total"][doh[1]] then DamageTypes["total"][doh[1]]={} end--init
                DamageTypes["total"][doh[1]][doh[2]] = (_-2)*v[2]
                --      total      [valname][other one]   +-val
            end
        end
    end
end
local function hslrgb(H,S,L)
    --HSL to RGB converter
    --method from https://www.rapidtables.com/convert/color/hsl-to-rgb.html
    --adapted by u:gigamicro
    H,S,L = H%360, S/100, L/100 -- input correction

    --witchcraft
    local C = (1-math.abs((2*L)-1))*S
    local X = C*(1-math.abs(((H/60)%2)-1))
    local m = L-(C/2)

    --matrix
    local R,G,B = ({
        [0]=function(C,X) return C,X,0 end,
        [1]=function(C,X) return X,C,0 end,
        [2]=function(C,X) return 0,C,X end,
        [3]=function(C,X) return 0,X,C end,
        [4]=function(C,X) return X,0,C end,
        [5]=function(C,X) return C,0,X end,
    })[math.floor(H/60)](C,X)
    --output correction (also witchcraft)
    R,G,B = math.floor((R+m)*255),math.floor((G+m)*255),math.floor((B+m)*255)
    --convert to six digit hex (%.2X = 2-digit hex value with uppercase letters)
    return ('#%.2X%.2X%.2X'):format(R,G,B)
end
for k, t in pairs(DamageTypes["Health"]) do
    --t.Positives, t.Negatives, t.Bypass = t.Positives[1] and t.Positives, t.Negatives[1] and t.Negatives, t.Bypass[1] and t.Bypass -- empty lists -> nil

    local H,S = t.Color:match '^(.+), (.+)%%$' -- grabs numbers from 'num, num%'
    t.color = hslrgb(H,S,40) -- text
    t.ColorBorder = hslrgb(H,S,50) -- tt border
    t.ColorBackground = hslrgb(H,S,73) -- tt bg (translucent)
end
--]==]
return DamageTypes
Community content is available under CC-BY-SA unless otherwise noted.