Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SkillManager

Hierarchy

  • SkillManager

Index

Constructors

constructor

Methods

all

  • Returns { type: SkillType }[]

gain

  • gain(skill: SkillType, mod?: undefined | number, actionTier?: undefined | number, bypass?: undefined | false | true): void
  • Parameters

    • skill: SkillType
    • Optional mod: undefined | number
    • Optional actionTier: undefined | number
    • Optional bypass: undefined | false | true

    Returns void

get

  • Parameters

    Returns number

    The value of the given skill, the sum of the base value and any bonuses from magical equipment

getBonus

  • Parameters

    Returns number

    the skill bonus applied by magical equipment

getCore

  • Parameters

    Returns number

    the "base value" of the skill (ignoring any bonuses applied by magical equipment)

getSkillAndActionTierValue

  • getSkillAndActionTierValue(skill: SkillType, actionTier?: undefined | number): number
  • Parameters

    • skill: SkillType
    • Optional actionTier: undefined | number

    Returns number

getTotal

  • getTotal(): number
  • Returns number

    The total skill (combination of all other skills). Ignores skill bonuses.

has

  • Parameters

    Returns boolean

isMaxed

  • Parameters

    Returns boolean

    whether the given skill is maxed-out. Ignores bonus.

set

  • set(skill: SkillType, core?: undefined | number, bonus?: undefined | number): this
  • Parameters

    • skill: SkillType
    • Optional core: undefined | number
    • Optional bonus: undefined | number

    Returns this

setAll

  • Parameters

    Returns void

setBonus

  • setBonus(skill: SkillType, bonus: number): this
  • Parameters

    Returns this

setBonuses

  • Parameters

    Returns this

setCore

  • setCore(skill: SkillType, value: number): this
  • Sets the "base value" of the skill (ignoring any bonuses applied by magical equipment)

    Parameters

    • skill: SkillType

      The skill to set the base value of.

    • value: number

      The value (between 0 and 100) to set the skill to.

    Returns this

skillAndActionTierCheck

  • skillAndActionTierCheck(skill: SkillType, check: number, actionTier?: undefined | number): boolean
  • Parameters

    • skill: SkillType
    • check: number
    • Optional actionTier: undefined | number

    Returns boolean

    Whether the skill of this human is more than or equal to a random number between 0 and the value of check.

Generated using TypeDoc