Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TestOrb

Hierarchy

Index

Constructors

constructor

Properties

mods

mods: Mod[]

Methods

applicableTo

  • applicableTo(container: Item): any
  • Parameters

    Returns any

applyTo

  • Parameters

    Returns Item

chooseMod

  • chooseMod(container: Item): Mod | undefined
  • Parameters

    Returns Mod | undefined

getAvailableMods

  • getAvailableMods(): Mod[]
  • returns a copy of #mods

    we can stick with a shallow copy since Mod are supposed to be immutable

    Returns Mod[]

isApplicableTo

  • isApplicableTo(container: Item, whitelist?: string[]): boolean
  • Parameters

    • container: Item
    • Default value whitelist: string[] = []

    Returns boolean

isModApplicableTo

isModSpawnableOn

modsFor

rollMod

  • adds a mod from chooseMod ignoring if it's applicable

    Parameters

    Returns Item

spawnweightFor

  • spawnweightFor(mod: Mod, container: Item): number | undefined
  • Parameters

    Returns number | undefined

Static buildMods

  • Parameters

    Returns Mod[]

Static modFilter

  • Parameters

    Returns boolean

Generated using TypeDoc