Skin Affinity Info
Based on game build 722832 | Last updated: 2026-04-21
Overview
skin_affinity_info.lua defines a global table containing all character skin affinity mappings. Each character name serves as a key, with its value being an array of skin prefab strings that belong to that character's affinity group. This file is autogenerated by export_accountitems.lua and is used by systems that need to resolve which skins are associated with which characters for affinity bonuses, inventory filtering, or UI display purposes.
Usage example
local SkinAffinityInfo = require "skin_affinity_info"
-- Access all skins for a specific character
local wilson_skins = SkinAffinityInfo.wilson
print(#wilson_skins) -- Number of Wilson skins
print(wilson_skins[1]) -- First skin prefab name
-- Check if a specific skin belongs to a character
local is_wilson_skin = false
for _, skin in ipairs(wilson_skins) do
if skin == "body_wilson_formal" then
is_wilson_skin = true
break
end
end
-- Iterate through all characters
for character, skins in pairs(SkinAffinityInfo) do
print(character, #skins)
end
Dependencies & tags
External dependencies: None identified
Components used: None identified
Tags: None identified
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
SkinAffinityInfo | table | — | Top-level table containing all character skin affinity mappings; keys are character names. |
[character] | table | — | Array-indexed sub-table for each character containing their skin prefab strings. |
[character][index] | string | — | Individual skin prefab identifier string (e.g., "body_wilson_formal"). |
Main functions
None identified — this file contains only static data with no factory functions or methods.
Events & listeners
None.