def __init__(self, owner): self.equipmentIteration = 0 self.owner = owner self.cash = 0 self.inventory = [Item("PineBow", owner), Item("StoneSword", owner)] self.equipped = [ None, None, None, None, None, None, None, None, None, None, None, None ] self.cachedStats = {} self.baseAttack = Abilities.SwordsmanAbil(owner)
def __init__(self, startPos, level): Unit.__init__(self, startPos, level) self.frame = 0 self.team = 1 self.maxHealth = 1 self.health = self.maxHealth self.picture = "MageKnight" self.abilList = [Abilities.SwordsmanAbil() ] #[Abilities.PlayerArcAttackAbility()] self.abilSelected = 1 self.stunResistance = 0.5 self.keyRecorder = KeyRecorder() self.controlled = False self.controller = 0
def __init__(self, startPos, level): EnemyUnit.__init__(self, startPos, level) self.picture = "Civilian" self.abilList = [Abilities.SwordsmanAbil()]