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?: string

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
name?: string
pools?: LootTablePool[] = []

Accessors

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

    Returns string

  • set filename(fn): void
  • Parameters

    • fn: string

    Returns void

Methods

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