screeps-api
    Preparing search index...

    Interface UserBadge

    Parameters used to render a player's SVG icon / logo / "bust" (as it is referenced in the client)

    interface UserBadge {
        color1: string;
        color2: string;
        color3: string;
        decoration?: string;
        flip: boolean;
        param: number;
        type: number | UserBadgeSvgs;
    }
    Index

    Properties

    color1: string

    Primary badge color (in a web color format)

    color2: string

    Second badge color (in a web color format)

    color3: string

    Tertiary badge color (in a web color format)

    decoration?: string

    Decoration ID of the badge if this is not a standard one

    flip: boolean
    param: number
    type: number | UserBadgeSvgs

    The badge image template.

    If this is a numeric value (0-30), it is the ID number of a standard/free badge. If it is UserBadgeSvgs, it is a premium badge that was obtained via the Decoration system