Hierarchy

  • default

Implements

Constructors

Accessors

Methods

Constructors

  • Parameters

    • host: IStatHost
    • type: Stat

      The Stat this factory is building

    • value: number = 0

      The starting value of this stat. Defaults to 0

    Returns default

Accessors

  • get stat(): Stat
  • Returns Stat

  • get value(): number
  • Returns number

Methods

  • Sets the "bonus" for the stat. This changes the value that will be returned.

    Parameters

    • bonus: number

    Returns default

  • Sets the max value this stat can be

    Parameters

    • max: number
    • Optional canExceed: true

    Returns default

  • Parameters

    • value: number

    Returns default

Generated using TypeDoc