Constructors

Properties

borrowed: Set<LootTable> = ...

A parent's functions should be available to an Entry table when rolling. For this case, we have to "borrow" the parent table to allow functions/ conditions to be used from there if needed.

This is a set, so we don't end up with the same table in there multiple times.

conditions: Record<string, LootTableConditionSignature> = {}
fn?: null | string | number

Filename that should be used to represent this table when it is saved as JSON. This should include relative path/folder names

functions: Record<string, LootTableFunctionSignature> = {}
id: string | number
name?: string
pools: LootTablePool[] = []

Accessors

  • get filename():
        | undefined
        | null
        | string
        | number
  • The string to be used as a filename for this table.

    Returns
        | undefined
        | null
        | string
        | number

  • set filename(fn): void
  • Parameters

    • fn:
          | undefined
          | null
          | string
          | number

    Returns void

Methods

  • Returns {
        entry: any;
        max: number;
        min: number;
        weight: number;
    }[]