Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MasterSignatureMods

Generator for all mods that can appear on items sold by Master vendors

Remember that items sold from the vendor have a fixed item level and might not be able to hold mods for higher item levels

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

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

Static buildMods

  • Parameters

    Returns Mod[]

Static isMasterSignature

  • isMasterSignature(mod: ModProps): boolean
  • Parameters

    Returns boolean

    true if the mod can only be found on items bought from masters

Static modFilter

  • Parameters

    Returns boolean

Object literals

Static MASTER_ITEMCLASSES

MASTER_ITEMCLASSES: object

mapping from master id to a filter function that returns true if it could've sold the given item

TODO required level? Do master sell the best bases e.g. Hubris Circlets

dex

  • dex(item: Item): boolean
  • Parameters

    Returns boolean

dex_int

  • dex_int(item: Item): boolean
  • Parameters

    Returns boolean

int

  • int(item: Item): boolean
  • Parameters

    Returns boolean

pvp

  • pvp(item: Item): boolean
  • Parameters

    Returns boolean

str

  • str(item: Item): boolean
  • Parameters

    Returns boolean

str_dex

  • str_dex(item: Item): boolean
  • Parameters

    Returns boolean

str_dex_int

  • str_dex_int(item: Item): boolean
  • Parameters

    Returns boolean

str_int

  • str_int(item: Item): boolean
  • Parameters

    Returns boolean

Static MOD_MASTER

MOD_MASTER: object

mapping from mod id to master id

we need to know what master vendor can spawn the mods because the vendor tells us what itemclasses can appear

AllDamageMasterVendorItem

AllDamageMasterVendorItem: string = "pvp"

AlwaysHitsStrDexMasterVendorItem

AlwaysHitsStrDexMasterVendorItem: string = "str_dex"

BleedOnHitGainedDexMasterVendorItemUpdated_

BleedOnHitGainedDexMasterVendorItemUpdated_: string = "dex"

LifeLeechSpeedDexIntMasterVendorItem

LifeLeechSpeedDexIntMasterVendorItem: string = "dex_int"

LocalIncreaseSocketedSupportGemLevelIntMasterVendorItem

LocalIncreaseSocketedSupportGemLevelIntMasterVendorItem: string = "int"

MapQuantityAddedAsRarityVendorItem

MapQuantityAddedAsRarityVendorItem: string = "str_dex_int"

ReduceGlobalFlatManaCostStrIntMasterVendor

ReduceGlobalFlatManaCostStrIntMasterVendor: string = "str_int"

SocketedGemQualityStrMasterVendorItem

SocketedGemQualityStrMasterVendorItem: string = "str"

Generated using TypeDoc