mwg API
    Preparing search index...

    Type Alias MwlExpression

    MwlExpression:
        | { kind: "number"; value: number }
        | { kind: "variable"; name: string }
        | {
            kind: "binary";
            left: MwlExpression;
            op: "+" | "-" | "*" | "/" | "^";
            right: MwlExpression;
        }

    Small, game-neutral numeric expressions used by MWL effects.

    MWG only evaluates arithmetic. A game supplies the variables, so names such as level or missing_hp_fraction remain game vocabulary rather than MWG rules.