godfist v0.5.0 Godfist.DataDragon

Module to interact with the static data provided by Data Dragon instead of the default one by Riot.

The names provided for champions in this Module are case sensitive because of the way that Data Dragon handles it’s files. For now it’s up to you to get the champion’s names correctly.

Link to this section Summary

Functions

Get an ability from a champion by it’s name

Get a champion loading screen art by it’s name and splash id

Get champion splash arts by name and splash art number

Get the square image of a champion by it’s name and splash id

Get an item by it’s id

Get a mastery by it’s id

Get image of a profile icon by it’s id

Get a rune by it’s id

Get summoner spells

Link to this section Functions

Link to this function ability(name)
ability(String.t) :: String.t

Get an ability from a champion by it’s name.

Refer to passive/1 on how to get spell name.

Example

iex> Godfist.DataDragon.ability("FlashFrost")
Link to this function champ_loading(name, number \\ 0)
champ_loading(String.t, integer) :: String.t

Get a champion loading screen art by it’s name and splash id.

Example

iex> Godfist.DataDragon.champ_loading("LeeSin", 1)
Link to this function champ_splash(name, number)
champ_splash(String.t, integer) :: String.t

Get champion splash arts by name and splash art number.

Example

iex> Godfist.DataDragon.champ_splash("Aatrox", 0)
Link to this function champ_square(name)
champ_square(String.t) :: String.t

Get the square image of a champion by it’s name and splash id.

Example

iex> Godfist.DataDragon.champ_square("Rek Sai")
Link to this function item(id)
item(integer) :: String.t

Get an item by it’s id.

Example

iex> Godfist.DataDragon.item(1001)
Link to this function mastery(id)
mastery(integer) :: String.t

Get a mastery by it’s id.

Example

iex> Godfist.DataDragon.mastery(6111)
Link to this function profile_icon(id)
profile_icon(integer) :: String.t

Get image of a profile icon by it’s id.

Example

iex> Godfist.DataDragon.profile_icon(588)
Link to this function rune(id)
rune(integer) :: String.t

Get a rune by it’s id.

Example

iex> Godfist.DataDragon.rune(8001)
Link to this function summ_spell(name)
summ_spell(String.t) :: String.t

Get summoner spells.

Example

iex> Godfist.DataDragon.summ_spell("Heal")