In [1]:
from pprint import pprint
from atod import Hero, Heroes
In [2]:
am = Hero(1)
# You can use attributes to get some hero properties which depends on lvl, examples:
print('Anti-Mage stats on lvl {}'.format(am.lvl))
print('\tstrength = {}'.format(am.str))
print('\tagility = {}'.format(am.agi))
print('\tintellect = {}'.format(am.int))
print('\t...')
In [3]:
sf = Hero.from_name('Shadow Fiend')
sf.in_game_name
Out[3]:
Also you can get all the specs. This is the dictionary with a lot of parameters.
In [4]:
pprint(am.specs)
The way to get info about certain side of the hero. List of all 'categories':
functions look like hero.get_category(), where category is one of the above words.
In [5]:
am.get_role()
Out[5]:
If you want to combine few descriptions -- Hero.get_description() is the way to go.
Note that laning, roles and hero type are read from the game files and sometimes can be strange.
In [6]:
print(am.get_description(include=['laning', 'role', 'name']))