Class: Effect

Effect

An api adapter that provides functions for accessing a particular dogma effect, specified by id via functions in the dogma ESI endpoints.

You should not usually instantiate this directly as its constructor requires an internal api instance.


new Effect(agent, effectId)

Create a new Effect identified as effectId.

Parameters:
Name Type Description
agent ESIAgent

The ESI agent used to make web requests

effectId Number

The effect id used in all requests

Methods


info()

Get information on a dogma effect. This route expires daily at 11:05.

This makes an HTTP GET request to /dogma/effects/{effect_id}/. The route version is v1.

On success, this resolves to information about a dogma effect. An example result is:

{
  "description": "Requires a high power slot.",
  "disallow_auto_repeat": false,
  "discharge_attribute_id": 0,
  "display_name": "High power",
  "duration_attribute_id": 0,
  "effect_category": 0,
  "effect_id": 12,
  "electronic_chance": false,
  "falloff_attribute_id": 0,
  "icon_id": 293,
  "is_assistance": false,
  "is_offensive": false,
  "is_warp_safe": false,
  "modifiers": [
    {
      "domain": "domain string",
      "func": "func string",
      "modified_attribute_id": 0,
      "modifying_attribute_id": 0,
      "operator": 0
    }
  ],
  "name": "hiPower",
  "post_expression": 131,
  "pre_expression": 131,
  "published": true,
  "range_attribute_id": 0,
  "range_chance": false,
  "tracking_speed_attribute_id": 0
}
Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>