mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Retail exposes engine constant tables as Constants.<Name>, documented with Type "Constants" and a Values list (MoneyConstantsDocumentation.lua). Game::Lua::RegisterConstants builds Constants[sub] with the same integer entries RegisterIntegerEnum takes, and the documentation recorder has a constants kind next to the enum kind, so the API browser lists the table as constants rather than as an enumeration. Constants.MoneyFormattingConstants.GOLD_REWARD_THRESHOLD_TO_HIDE_COPPER is 10, retail's value. FormattingUtil's GetMoneyString now applies checkGoldThreshold through retail's FormatDisplayCopper: above 10 gold the copper is dropped. Verified in game: the table is present, GetMoneyString(1234567, nil, true) shows gold and silver only, and GetMoneyString(51234, nil, true) keeps its copper.