GetArmorUpgrades

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 21:46, 18 October 2026 by QCherry (talk | contribs) (Document armor catalogs and eight armor-upgrade Lua APIs from upcoming 0.1.9; public release unchanged)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getArmorUpgrades

AVAILABLE FROM UPDATE 0.1.9
Available from 0.1.9 (upcoming; not yet publicly released). Not included in public 0.1.8.

Lists the compatible parts for one exact base armor key.

Syntax

parts = getArmorUpgrades(armorKey)

Parameters

Name Type Required Description
armorKey string yes Exact lowercase base key from getPlayerArmorNames; not a part key or none.

Returns

A 1-based array of {key, slot, tier} tables. slot is top/mid/bottom and tier is integer 1..6. A known base with no pieces returns an empty table. An unknown/wrong-type key returns false.

Examples

local parts = getArmorUpgrades("mercenary")
if parts then
    for _, part in ipairs(parts) do
        outputDebugString(part.key .. " / " .. part.slot .. " / " .. tostring(part.tier))
    end
end

Notes