Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Implicits

the implicits of an item

Hierarchy

Implements

Index

Constructors

constructor

Properties

item

item: Item

mods

mods: Mod[]

Methods

addMod

  • addMod(mod: Mod): this
  • adds a new non-existing mod

    Parameters

    Returns this

any

  • any(): boolean
  • checks if this container has any mods

    Returns boolean

asArray

  • asArray(): Mod[]

builder

  • builder(): Builder

getTags

  • getTags(): Tag[]

hasMod

  • hasMod(mod: Mod): boolean
  • Parameters

    Returns boolean

hasModGroup

  • hasModGroup(other: Mod): boolean

hasRoomFor

  • hasRoomFor(mod: Mod): boolean
  • checks if theres more place for a mod with their generationtype

    Parameters

    Returns boolean

inDomainOf

  • inDomainOf(): boolean
  • override

    checks if the domains are equiv

    Returns boolean

indexOfMod

  • indexOfMod(mod: Mod): number

indexOfModWithId

  • indexOfModWithId(id: string): number

level

  • level(): number

maxModsOfType

  • maxModsOfType(mod: Mod): number

numberOfModsOfType

  • numberOfModsOfType(mod_type: number): number

removeAllMods

  • removeAllMods(): this

removeMod

  • removeMod(other: Mod): this
  • removes an existing mod

    Parameters

    Returns this

stats

  • stats(): {}
  • lists all the stats that are offered by its mods

    mods can have multiple stats so we sum their values grouped by stat id

    Returns {}

    • [key: string]: Stat

statsExtended

withMutations

  • withMutations(mutate: (builder: Builder) => Builder): this
  • Parameters

    • mutate: (builder: Builder) => Builder
        • (builder: Builder): Builder
        • Parameters

          • builder: Builder

          Returns Builder

    Returns this

Static withBuilder

  • Parameters

    • builder: Builder

    Returns Implicits

Generated using TypeDoc