Code: Select all
init python:
#sets up max config for displayables
maxnumx = 7
maxnumy = 5
#creates class AbilityCode to store data
class AbilityCode:
def __init__(self, name, icon, mindamage, maxdamage, element, elementicon, target, range, equipped):
self.name = name
self.icon = icon
self.mindamage = mindamage
self.maxdamage = maxdamage
self.element = element
self.elementicon = elementicon
self.target = target
self.range = range
self.equipped = equipped
self.refresh_equipped()
self.equip()
def refresh_equipped(self):
notequipped = False
if not self.equipped:
notequipped = True
self.is_notequipped = notequipped
def equip(self):
if self.equipped:
self.equipped = False
else:
self.equipped = True
ability_codes = []
#prepopulates the list with default ability codes at start of Chapter 2 Day 7
# Name, Min Damage, Max Damage, Elemental, Target, All or Single , Active
ability_codes.append(AbilityCode("Code: Fire", "code/code-fire.png", 15, 50, "Fire", "code/element-fire.png" "Enemy", "Single", True))
ability_codes.append(AbilityCode("Code: Water", "code/code-water.png", 15, 50, "Water", "code/element-water.png" "Enemy", "Single", True))
ability_codes.append(AbilityCode("Code: Wind", "code/code-wind.png", 15, 50, "Wind", "code/element-wind.png" "Enemy", "Single", True))
ability_codes.append(AbilityCode("Code: Earth", "code/code-earth.png", 15, 50, "Earth", "code/element-earth.png" "Enemy", "Single", True))
ability_codes.append(AbilityCode("Code: Heart", "code/code-heart.png", -200, -400, "None", "code/element-none.png" "Party", "Single", True))
I am aware there is nine given from the ability_codes.append portion, assuming self is automatically given by python. but I am at my wits end trying to debug this.
help