Interface IActionApi<E, CU>
Properties
Readonly
actionStack
Readonly
callingAction
Readonly
executor
executor: E
Readonly
hasSetCanUse
hasSetCanUse: boolean
Optional
Readonly
targetTile
Readonly
type
Methods
addItems
- addItems(...items: (undefined | default)[]): IActionApi<E, CU>
-
Parameters
-
Rest
...items: (undefined | default)[]
addSkillGains
- addSkillGains(...skills: SkillGain[]): IActionApi<E, CU>
-
- addSkillGains(skill: SkillType, multiplier?: number, actionTier?: number, bypass?: true, times?: number): IActionApi<E, CU>
-
Parameters
-
-
Optional
multiplier: number
-
Optional
actionTier: number
-
Optional
bypass: true
-
Optional
times: number
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
isTileBlocked
- isTileBlocked(tile: default, ...blockFlags: BlockFlag[]): 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
-
color: IRGB
-
Optional
count: number
-
Optional
inFront: boolean
- setParticle(color: IRGB, inFront?: boolean): IActionApi<E, CU>
-
Parameters
-
color: IRGB
-
Optional
inFront: boolean
- setParticle(particle: IActionParticle): IActionApi<E, CU>
-
setRuneChance
- setRuneChance(chance: number): IActionApi<E, CU>
-
- setRuneChance(alignment: undefined | ArrayOr<Deity>, chance: number): IActionApi<E, CU>
-
Parameters
-
alignment: undefined | ArrayOr<Deity>
-
chance: number
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.