mwg API
    Preparing search index...

    Interface RosterEntry<T>

    A weighted regular-roster entry, optionally swappable into a named alternative variant. mwg names none of T - a monster kind, an item id, anything a game's own roster holds.

    interface RosterEntry<T> {
        alternative?: { chance: number; value: T };
        value: T;
    }

    Type Parameters

    • T
    Index
    alternative?: { chance: number; value: T }

    an alternative this entry may swap into once placed in the roster

    value: T