Constructors

  • Parameters

    • voucherType: VoucherType
    • description: string
    • Optional conditionFunc: ((scene, args) => boolean)
        • (scene, args): boolean
        • Parameters

          Returns boolean

    Returns Voucher

Properties

conditionFunc: ((scene, args) => boolean)

Type declaration

    • (scene, args): boolean
    • Parameters

      Returns boolean

description: string
id: string
voucherType: VoucherType

Methods

  • Get the name of the voucher

    Parameters

    • playerGender: PlayerGender

      this is ignored here. It's only there to match the signature of the function in the Achv class

    Returns string

    the name of the voucher