Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IncursionTempleMods

Generator for all mods that can be crafted at the Blood Altar with Spirit Beasts

Hierarchy

Index

Constructors

constructor

Properties

mods

mods: Mod[]

Methods

applicableTo

  • applicableTo(item: Item): ApplicableFlags

applyTo

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

  • isModSpawnableOn(mod: Mod, item: Item): SpawnableFlags
  • override

    super call with the addition of item class check mods are assigned to certain itemclasses which is determined in {itemclassModIds()}

    Parameters

    Returns SpawnableFlags

modsFor

rollMod

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

    Parameters

    Returns Item

spawnweightFor

  • spawnweightFor(mod: Mod, item: Item): number | undefined
  • override

    We assume that every mod has the same chance

    Parameters

    Returns number | undefined

Static build

Static buildMods

  • Parameters

    Returns Mod[]

Static isTempleMod

  • Parameters

    Returns boolean

    true if cab only be found in T3 temple chests

Static modFilter

  • Parameters

    Returns boolean

Generated using TypeDoc