Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WarbandsMods

Generator for all mods that can appear on items dropped by Warbands

Each Faction of Warbands can drop a magic item that has a single Warbands mod. The itemclass of that item depends on the faction

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

  • Parameters

    Returns WarbandsMods

Static buildMods

  • Parameters

    Returns Mod[]

Static isWarbands

  • Parameters

    Returns boolean

    true if the mod can spawn on Warbands drops

Static modFilter

  • Parameters

    Returns boolean

Object literals

Static FACTION_ITEM_CLASSES

FACTION_ITEM_CLASSES: object

mapping from Warband factions to the item classes they can drop

brinerot

  • brinerot(item: Item): boolean
  • Parameters

    Returns boolean

mutewind

  • mutewind(item: Item): boolean
  • Parameters

    Returns boolean

redblade

  • redblade(item: Item): boolean
  • Parameters

    Returns boolean

renegade

  • renegade(item: Item): boolean
  • Parameters

    Returns boolean

Static FACTION_MODS

FACTION_MODS: object

mapping from Warband factions to their mods

brinerot

brinerot: Set<string> = new Set(['DamageDuringFlaskEffectWarbands'])

mutewind

mutewind: Set<string> = new Set(['CannotBeFrozenWarbands'])

redblade

redblade: Set<string> = new Set(['PhysicalDamageTakenAsFirePercentWarbands'])

renegade

renegade: Set<string> = new Set(['FireResistancePenetrationWarbands','LightningPenetrationWarbands','ColdResistancePenetrationWarbands',])

Generated using TypeDoc