PlayerAppearance.Legendary.cs

Partial PlayerAppearance helper that maps legendary player catalog IDs to costume idents and flags which players have authored head models. Only returns a costume when the card edition is legendary.

namespace Socer;

public static partial class PlayerAppearance
{
    public const string ZlatanId="PRO-54";
    public const string PirloId="PRO-55";
    public const string MaldiniId="PRO-56";
    public const string BuffonId="PRO-57";

    public static string LegendaryCostume(string catalogId,string edition)=>edition!=CardRatings.Legendary?null:catalogId switch
    {
        MessiId=>"messi_alien",ZlatanId=>"zlatan_regal",PirloId=>"pirlo_waistcoat",
        MaldiniId=>"maldini_security",BuffonId=>"buffon_veteran",_=>null
    };
    public static bool HasAuthoredHead(string catalogId)=>catalogId is ZlatanId or PirloId or MaldiniId or BuffonId;
}