#!/usr/bin/python2.7
# Setup
class dlist(list):
def __setitem__(self, index, value):
size = len(self)
if index >= size:
self.extend(None for _ in range(size, index + 1))
list.__setitem__(self, index, value)
class Skill:
def __init__(self, ID, NAME, DESC):
self.id=ID
self.name=NAME
self.desc=DESC
def skill_tree(sk1=None, sk2=None, sk3=None, sk4=None, sk5=None):
return [sk1, sk2, sk3, sk4, sk5]
academy={}
# Skill shortcuts
SK_HEAL=Skill("heal", "Healing", "Heals target")
SK_ABHEAL=Skill("abheal", "High Healing", "Supremely heals target")
# Scholarship
academy["scholarship"]=dlist()
academy["scholarship"].append(skill_tree(SK_HEAL, None, SK_ABHEAL, None, None))
# Functions
def headers(classe, val):
return '\n\t\n'
def data(val):
bf='\t\t\t\n' % val
return bf
# Begin
f=open("aurora.tmp", "w")
f.write('\n\n')
for evtc in sorted(events):
f.write(headers("none", evtc))
f.write(data(evtc))
f.write(navigation())
f.write(tail())
f.write('\n')
f.close()