Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BestiaryAspectMods

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

Hierarchy

Index

Constructors

constructor

Properties

mods

mods: Mod[]

Static ASPECT_MODS

ASPECT_MODS: Set<Mod["props"]["id"]> = new Set(['GrantsCatAspectCrafted','GrantsBirdAspectCrafted','GrantsSpiderAspectCrafted','GrantsCrabAspectCrafted',])

list of mod ids that can be crafted with Spirit Beasts

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

modsFor

  • Parameters

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

    Returns Array<GeneratorDetails<Mod>>

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 build

  • Parameters

    Returns BestiaryAspectMods

Static buildMods

  • Parameters

    Returns Mod[]

Static isBestiaryAspect

  • isBestiaryAspect(mod: ModProps): boolean
  • Parameters

    Returns boolean

    true if the mod can only crafted with the Blood Altar from a Spirit Beast

Static modFilter

  • Parameters

    Returns boolean

Generated using TypeDoc