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
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")
Get a champion loading screen art by it’s name and splash id.
Example
iex> Godfist.DataDragon.champ_loading("LeeSin", 1)
Get champion splash arts by name and splash art number.
Example
iex> Godfist.DataDragon.champ_splash("Aatrox", 0)
Get the square image of a champion by it’s name and splash id.
Example
iex> Godfist.DataDragon.champ_square("Rek Sai")