+ # a/b/c/d/e/f sucks. Put stats in a more readable format.
+ # Also, color-code them by good-osity.
+ colored_stats = []
+ stat_total = 0
+ for pokemon_stat in obj.stats:
+ base_stat = pokemon_stat.base_stat
+ stat_total += base_stat
+ color = get_stat_color(base_stat)
+
+ colored_stats.append(
+ "\x03{0:02d}{1}\x0f".format(color, base_stat)
+ )
+
+ colored_stat_total = "\x03{0:02d}{1}\x0f".format(
+ get_stat_color(stat_total / 6),
+ stat_total,
+ )
+ stats = """{0} HP, {1}/{2} phys, {3}/{4} spec, {5} speed, {total} total""" \
+ .format(*colored_stats, total=colored_stat_total)