#  -*- coding: utf-8 -*-
import json,sys
sys.path.append("..")
import wikia,tools
from shared import settings

attribute_list = wikia.attribute_list()
attribute_map  = wikia.attribute_map()
resource_map   = wikia.resource_map_promote()
time_list      = wikia.up_time_list()
version        = settings.version()
json_path      = settings.json_unit()
maxrank        = settings.max_rank()
data           = json.load(file(json_path))
comma          = tools.intWithCommas

def get_data(name):
	for att in attribute_list:
		for rank in xrange(0,maxrank):
			if att not in data[name]['stats'][rank].keys():
				continue
			if att == 'levelUpCost':
				get_lv_up_cost(name,rank)
			else:
				print_data(name,att,rank,data[name]['stats'][rank][att])

def print_data(name,att,rank,value):
	statistics_template = wikia.statistics_general()
	offset = 1 if att != 'levelCutoff' else 2
	current_unit_state = data[name]['stats'][rank]
	num_data = current_unit_state[att]
def statistics_end():
    return '|notes = \n}}\n<!--Values up-to-date as of ' + settings.version(
    ) + '.-->\n' + clear()
Beispiel #3
0
def statistics_end():
	return '|notes = \n}}\n<!--Values up-to-date as of '+ settings.version()+'.-->\n'+clear()