Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Challenge

Hierarchy

Implements

Index

Enumeration members

BenignityRate

BenignityRate:

EternalNight

EternalNight:

HungerRate

HungerRate:

MalignityRate

MalignityRate:

NoHealthRegeneration

NoHealthRegeneration:

NoStaminaRegeneration

NoStaminaRegeneration:

NoStartingItems

NoStartingItems:

PermanentlyBleeding

PermanentlyBleeding:

PermanentlyBurning

PermanentlyBurning:

PermanentlyPoisoned

PermanentlyPoisoned:

StartingMalignity

StartingMalignity:

ThirstRate

ThirstRate:

Constructors

constructor

Properties

Optional description

description: Translation | ((quest: IQuest) => Translation)

Readonly event

event: IEventEmitter<this, IQuestEvents> = new EventEmitter<this, E>(this)

Optional title

title: Translation | ((quest: IQuest) => Translation)

Optional type

type: QuestType

Methods

addChildQuests

  • addChildQuests(...children: QuestType[]): this

addRequirement

create

  • Parameters

    • Default value type: undefined | Challenge = this.type

    Returns IQuest

Protected createRequirement

Protected createRequirements

getChildren

getDescription

getEventBusTriggers

getHostTriggers

  • getHostTriggers(instance: IQuest): Stream<[IQuestRequirement<any[], {}>, IterableIterator<["respawn" | "damage" | "spawn" | "tickStart" | "tickEnd" | "restored" | "updateOption" | "displayMessage" | "interruptResponse" | "getMaxHealth" | "getMaxWeight" | "shouldDie" | "die" | "shouldRespawn" | "inventoryItemAdd" | "inventoryItemRemove" | "inventoryItemUpdate" | "processMovement" | "getMovementIntent" | "noInput" | "walkPathChange" | "moveComplete" | "changeZ" | "getWeightStatus" | "getWeightOrStaminaMovementPenalty" | "restStart" | "restEnd" | "writeNote" | "writtenNote" | "readNote" | "reregister" | "deregister" | "canConsumeItem" | "canDropItem" | "canAttack" | "calculateEquipmentStats" | "isSwimming" | "statusChange" | "created" | "removed" | "preMove" | "postMove" | "statChanged" | "statTimerChanged" | "statTimerWillChange" | "statTimerRemoved" | "statMaxChanged" | "statBonusChanged" | "skillChange", (api: IQuestRequirementApi<O, D>, player: Player, ...args: any[]) => boolean]>]>
  • Parameters

    Returns Stream<[IQuestRequirement<any[], {}>, IterableIterator<["respawn" | "damage" | "spawn" | "tickStart" | "tickEnd" | "restored" | "updateOption" | "displayMessage" | "interruptResponse" | "getMaxHealth" | "getMaxWeight" | "shouldDie" | "die" | "shouldRespawn" | "inventoryItemAdd" | "inventoryItemRemove" | "inventoryItemUpdate" | "processMovement" | "getMovementIntent" | "noInput" | "walkPathChange" | "moveComplete" | "changeZ" | "getWeightStatus" | "getWeightOrStaminaMovementPenalty" | "restStart" | "restEnd" | "writeNote" | "writtenNote" | "readNote" | "reregister" | "deregister" | "canConsumeItem" | "canDropItem" | "canAttack" | "calculateEquipmentStats" | "isSwimming" | "statusChange" | "created" | "removed" | "preMove" | "postMove" | "statChanged" | "statTimerChanged" | "statTimerWillChange" | "statTimerRemoved" | "statMaxChanged" | "statBonusChanged" | "skillChange", (api: IQuestRequirementApi<O, D>, player: Player, ...args: any[]) => boolean]>]>

getRequirement

getRequirements

getTitle

getTriggers

needsManualCompletion

  • needsManualCompletion(): boolean

Protected onRequirementComplete

Protected onUpdate

  • Parameters

    Returns void

setDescription

setNeedsManualCompletion

  • setNeedsManualCompletion(): this

setTitle

Static getCreaturesOfRequirements

  • getCreaturesOfRequirements(): any
  • Returns any

Generated using TypeDoc