EffectFactory

new EffectFactory()

Properties:
Name Type Description
effects Map

Methods

add(id, config)

Parameters:
Name Type Description
id string
config EffectConfig

create(id, target, confignullable, statenullable) → {Effect}

Parameters:
Name Type Attributes Description
id string

effect id

target Character
config object <nullable>

Effect.config override

state object <nullable>

Effect.state override

Returns:
Effect

get(id) → {object}

Get a effect definition. Use create if you want an instance of a effect

Parameters:
Name Type Description
id string
Returns:
object