Interface IActionApi<E, CU>
Properties
Readonly
actionStack
Readonly
executor
executor: E
Readonly
hasSetCanUse
hasSetCanUse: boolean
Readonly
lastAction
Readonly
type
Methods
addItems
- addItems(...items: (undefined | default)[]): IActionApi<E, CU>
-
Parameters
-
Rest
...items: (undefined | default)[]
addSkillGains
- addSkillGains(...skills: [skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true][]): IActionApi<E, CU>
-
Parameters
-
Rest
...skills: [skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true][]
- addSkillGains(skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true): IActionApi<E, CU>
-
Parameters
-
-
Optional
multiplier: number
-
Optional
actionTier: number
-
Optional
bypass: true
canUse
- canUse(): CU | IActionNotUsable
-
getItems
- getItems(): readonly default[]
-
Returns readonly default[]
isArgumentType
- isArgumentType<A>(argument: any, index: number, argumentType: A): argument is IActionArgumentTypeMap[A]
-
Parameters
-
argument: any
-
index: number
-
argumentType: A
isCreatureBlocking
- isCreatureBlocking(tile: default): boolean
-
Returns boolean
removeItems
- removeItems(): IActionApi<E, CU>
-
- removeItems(...items: (undefined | default)[]): IActionApi<E, CU>
-
Parameters
-
Rest
...items: (undefined | default)[]
setDelay
- setDelay(delay: number, replace?: boolean): IActionApi<E, CU>
-
Parameters
-
delay: number
-
Optional
replace: boolean
setMilestone
- setMilestone(milestone: Milestone, data?: number): IActionApi<E, CU>
-
setParticle
- setParticle(color: IRGB, count?: number, inFront?: boolean): IActionApi<E, CU>
-
Parameters
-
-
Optional
count: number
-
Optional
inFront: boolean
- setParticle(color: IRGB, inFront?: boolean): IActionApi<E, CU>
-
Parameters
-
-
Optional
inFront: boolean
- setParticle(particle: IActionParticle): IActionApi<E, CU>
-
setReputationChange
- setReputationChange(amount: number): IActionApi<E, CU>
-
setSoundEffect
- setSoundEffect(soundEffect: IActionSoundEffect): IActionApi<E, CU>
-
- setSoundEffect(type: SfxType, inFront?: boolean): IActionApi<E, CU>
-
Parameters
-
-
Optional
inFront: boolean
setStaminaReduction
- setStaminaReduction(skill?: SkillType, actionTier?: number): IActionApi<E, CU>
-
Parameters
-
-
Optional
actionTier: number
setUpdateRender
- setUpdateRender(): IActionApi<E, CU>
-
setUpdateTablesAndWeight
- setUpdateTablesAndWeight(): IActionApi<E, CU>
-
setUpdateView
- setUpdateView(updateFov?: boolean): IActionApi<E, CU>
-
Parameters
-
Optional
updateFov: boolean
setUpdateWeight
- setUpdateWeight(): IActionApi<E, CU>
-
The items passed to this method will be registered as items potentially to be damaged when the action completes.