Skip to content

getGameBadgeLevel

getGameBadgeLevel(series, foil): number

Returns the logged-in user’s trading-card badge level for a series. Needs init(). The regular badge has a maximum level of 5 and the foil badge a maximum of 1 (from the SDK header). The header does not say which value means “no badge”, so the value is passed through unverified.

number

the card series number.

boolean

true for the foil badge, false for the regular badge.

number

the badge level as the SDK reports it.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.