WowAddons

World of Warcraft Forever API · NumericRuleFormatterShared.md, for your AI

NumericRuleFormatterShared (types and enums)

3 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Tables

Enum.NumericRuleFormatRounding enumeration

Nearest0
Up1
Down2

NumericRuleFormatBreakpoint structure

thresholdnumberMinimum input value that this rule applies to.
stepnumber may be nilIf specified, the input value is rounded to multiples of this step before processing.
roundingNumericRuleFormatRounding default "Nearest"If specified, the rounding mode to apply to the step.
minnumber may be nilIf specified, clamps the input value to this value if lesser after rounding.
maxnumber may be nilIf specified, clamps the input value to this value if greater after rounding.
formatstringThe format string to apply at this threshold. If no components are specified, this can include at-most one numeric format specifier - else, should contain an equal number of format specifiers to elements in the components array.
componentsNumericRuleFormatComponent[] may be nilVector of component descriptions for this rule.

NumericRuleFormatComponent structure

divnumber may be nilIf specified, divide the value by this amount and use the resulting quotient. This is applied before modulo division.
modnumber may be nilIf specified, divide the value by this amount and use the resulting remainder. This is applied after quotient division.
stepnumber may be nilIf specified, round the value to multiples of this step. This is applied after all division.
roundingNumericRuleFormatRounding default "Nearest"If specified, rounding mode to apply to the step.

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows