Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- from tkinter import *
- from itertools import combinations
- from itertools import chain
- class God():
- def __init__(self,name,baseAS,levelASBonus,health,mana,attackDamage,powerToAttackDamageMulti):
- self.name = name
- self.baseAS = baseAS
- self.levelASBonus = levelASBonus
- self.health = health
- self.mana = mana
- self.attackDamage = attackDamage
- self.powerToAttackDamageMulti = powerToAttackDamageMulti
- sol = God("Sol", 1, 0.36, 1900, 1440, 63, 0.2)
- olorun = God("Olorun", 1.05, 0.3, 1950, 1400, 87.6, 0.3)
- chronos = God("Chronos", 1, 0.3, 1900, 1080, 70, 0.2)
- zeus = God("Zeus", 0.95, 0.198, 1800, 1125, 65, 0.2)
- class Item():
- def __init__ (self,name,power,flatPen,percentPen,attackSpeed,critChance,lifesteal,cdr,mana,health,basicAttackDamage,gold):
- self.name = name
- self.power = power
- self.flatPen = flatPen
- self.percentPen = percentPen
- self.attackSpeed = attackSpeed
- self.critChance = critChance
- self.lifesteal = lifesteal
- self.cdr = cdr
- self.mana = mana
- self.health = health
- self.basicAttackDamage = basicAttackDamage
- self.gold = gold
- bookofthoth = Item("Book Of Thoth",80,0,0,0,0,0,0,1000,0,0,2500)
- poly = Item("Polynomicon",95,0,0,0,0,0.12,0,300,0,0,2300)
- soulreaver = Item("Soul Reaver",95,0,0,0,0,0,0,300,0,0,2650)
- bookofthedead = Item("Book Of the Dead",120,0,0,0,0,0,0,200,0,0,2600)
- myrddin = Item("Staff Of Myrddin",105,0,0.1,0,0,0,0.1,0,0,0,2800)
- warlocks = Item("Warlock's Staff",155,0,0.1,0,0,0,0,200,225,0,2500)
- asclepius = Item("Rod Of Asclepius",90,0,0,0,0,0,0,0,200,0,2600)
- estaff = Item("Ethereal Staff",90,0,0,0,0,0,0,0,200,0,2600)
- gemOfIsolation = Item("Gem Of Isoloation",90,0,0,0,0,0,0,0,200,0,2700)
- divine = Item("Divine Ruin",100,12,0,0,0,0,0,0,0,0,2300)
- magus = Item("Spear Of The Magus",110,12,0,0,0,0.12,0,0,0,0,2550)
- deso = Item("Spear Of Desolation",110,12,0,0,0,0,0.1,0,0,0,2600)
- obby = Item("Obsidian Shard",100,0,0.2,0,0,0,0,0,0,0,2450)
- celestial = Item("Celestial Legion Helm",70,0,0,0,0,0,0,0,0,0,2150)
- lotus = Item("Lotus Crown",30,0,0,0,0,0,0,0,0,0,2050)
- jadeEmps = Item("Jade Emperor's Crown",40,0,0,0,0,0,0,0,300,0,2600)
- tyrannical = Item("Tyrannical Plate Helm",85,0,0,0,0,0,0,0,0,0,2400)
- voidStone = Item("Void Stone",40,0,0,0,0,0,0,0,150,0,2250)
- fal = Item("Stone Of Fal",20,0,0,0,0,0,0,0,200,0,2350)
- binding = Item("Stone Of Binding",30,0,0,0,0,0,0,0,0,0,1700)
- pythags = Item("Pythagorem's Piece",70,0,0.1,0,0,0.24,0,0,200,0,2300)
- soulgem = Item("Soul Gem",80,0,0,0,0,0.12,0.1,0,150,0,2300)
- bancroft = Item("Bancroft's Talon",100,0,0,0,0,0.15,0,150,0,0,2500)
- typhons = Item("Typhon's Fang",70,0,0.1,0,0,0.15,0,200,0,0,2800)
- tahuti = Item("Rod Of Tahuti",120,0,0.1,0,0,0,0,0,0,0,3000)
- chronos = Item("Chronos' Pendant",90,0,0,0,0,0,0.2,0,0,0,2700)
- coin = Item("Charon's Coin",80,0,0.2,0,0,0,0,0,0,0,2400)
- doomOrb = Item("Doom Orb",145,0,0,0,0,0,0,200,0,0,2850)
- rangdas = Item("Rangda's Mask",120,0,0,0,0,0,0,0,0,0,2500)
- demonicgrip = Item("Demonic Grip",75,0,0,0.3,0,0,0,0,0,0,2300)
- telkhines = Item("Telkhines Ring",90,0,0,0.2,0,0,0,0,0,0,2700)
- hecate = Item("Ring Of Hecate",80,0,0,0.2,0,0.15,0,0,0,0,2500)
- hastenedring = Item("Hastened Ring",70,0,0,0.25,0,0,0,0,0,0,2700)
- toxicBlade = Item("Toxic Blade",0,15,0,0.3,0,0,0,0,0,0,2200)
- calamitousTahuti = Item("Calamitous Rod Of Tahuti",120,0,0.1,0,0,0,0,0,0,0,3600)
- nimbleTahuti = Item("Nimble Rod Of Tahuti",120,0,0.1,0,0,0,0,0,0,0,3600)
- deathsEmbrace = Item("Death's Embrace",110,0,0,0,0,0,0,0,200,0,2150)
- deathsTemper = Item("Death's Temper",75,0,0,0.3,0,0,0,0,100,0,2150)
- ornateArrow = Item("Ornate Arrow",0,0,0,0.35,0.25,0,0,0,150,60,2150)
- diamondArrow = Item("Diamond Arrow",0,0,0,0,0,0,0,0,100,80,2150)
- pendulum = Item("Pendulum Of Ages",190,0,0,0,0,0,0.2,0,0,0,2100)
- alternateTimeline = Item("Alternate Timeline",70,0,0,0,0,0,0.1,0,0,0,2100)
- gemOfFocus = Item("Gem Of Focus",100,0,0,0,0,0,0,0,150,0,2100)
- sacShroud = Item("Sacrificial Shroud",115,0,0,0,0,0.15,0,0,100,0,2100)
- empty = Item("Empty",0,0,0,0,0,0,0,0,0,0,0)
- mageItems = [bookofthoth,bookofthedead,poly,soulreaver,myrddin,warlocks,asclepius,estaff,gemOfIsolation,divine,magus,deso,obby,celestial,lotus,jadeEmps,tyrannical,voidStone,fal,binding,pythags,soulgem,bancroft,typhons,tahuti,calamitousTahuti,nimbleTahuti,chronos,coin,doomOrb,demonicgrip,telkhines,hastenedring,hecate,toxicBlade,rangdas,empty]
- mageStarters = [deathsEmbrace,deathsTemper,ornateArrow,diamondArrow,pendulum,alternateTimeline,gemOfFocus,sacShroud,empty]
- mageItemsNames = []
- for i in mageItems:
- mageItemsNames.append(i.name)
- mageItemsNames.append(" ")
- mageStarterNames = []
- for i in mageStarters:
- mageStarterNames.append(i.name)
- mageStarterNames.append(" ")
- def CalculateDamage():
- mageItems = [bookofthoth,bookofthedead,poly,soulreaver,myrddin,warlocks,asclepius,estaff,gemOfIsolation,divine,magus,deso,obby,celestial,lotus,jadeEmps,tyrannical,voidStone,fal,binding,pythags,soulgem,bancroft,typhons,tahuti,calamitousTahuti,nimbleTahuti,chronos,coin,doomOrb,demonicgrip,telkhines,hastenedring,hecate,toxicBlade,rangdas,empty]
- requiredItems = []
- if(starterVariable.get()!=" "):
- for i in mageStarters:
- if i.name == starterVariable.get():
- requiredItems.append(i)
- if(requiredItems1Variable.get()!=" "):
- for i in mageItems:
- if i.name == requiredItems1Variable.get():
- requiredItems.append(i)
- if i.name != "Empty":
- mageItems.remove(i)
- if(requiredItems2Variable.get()!=" "):
- for i in mageItems:
- if i.name == requiredItems2Variable.get():
- requiredItems.append(i)
- if i.name != "Empty":
- mageItems.remove(i)
- if(requiredItems3Variable.get()!=" "):
- for i in mageItems:
- if i.name == requiredItems3Variable.get():
- requiredItems.append(i)
- if i.name != "Empty":
- mageItems.remove(i)
- if(requiredItems4Variable.get()!=" "):
- for i in mageItems:
- if i.name == requiredItems4Variable.get():
- requiredItems.append(i)
- if i.name != "Empty":
- mageItems.remove(i)
- if(requiredItems5Variable.get()!=" "):
- for i in mageItems:
- if i.name == requiredItems5Variable.get():
- requiredItems.append(i)
- if i.name != "Empty":
- mageItems.remove(i)
- allbuilds =combinations(mageItems, 6 - len(requiredItems))
- buildSorterBuilds = ["blank","blank"]
- buildSorterDamage = [0,9999999999]
- for k in allbuilds:
- build = requiredItems + list(k)
- power = 0
- AS = sol.baseAS + (sol.baseAS * sol.levelASBonus)
- health = sol.health
- mana = sol.mana
- manaFromItems = 0
- cdr = 0
- lifesteal = 0
- flatPen = 0
- percentPen = 0
- totalGold = 0
- critChance = 0
- basicAttackDamage = 0
- globalMulti = 1
- abilityGlobalMulti = 0 #added to normal global multi to calculate freya damage
- temperMulti = 1
- tahutis = 0
- hecateBool = False
- hecateStacks = 0
- target1Prots = float(target1ProtsEntry.get())
- target2Prots = float(target2ProtsEntry.get())
- demonicBool = False
- demonicStacks = 0
- telkBool = False
- voidStonePen = 1
- tahutiMulti = 1
- nimbleBool = False
- typhonBool = False
- bookOfThothBool = False
- for i in build:
- AS = AS + (sol.baseAS * i.attackSpeed)
- power = power + i.power
- critChance = critChance + i.critChance
- health = health + i.health
- mana = mana + i.mana
- manaFromItems = manaFromItems + i.mana
- cdr = cdr + i.cdr
- lifesteal = lifesteal + i.lifesteal
- flatPen = flatPen + i.flatPen
- percentPen = percentPen + i.percentPen
- basicAttackDamage = basicAttackDamage + i.basicAttackDamage
- totalGold = totalGold + i.gold
- if i.name == "Book Of Thoth":
- bookOfThothBool = True
- elif i.name == "Warlock's Staff" and warlocksEnabledVariable.get() == False:
- power = 1
- elif i.name == "Rangda's Mask" and rangdasPassiveVariable.get():
- globalMulti += 0.15
- elif i.name == "Ring Of Hecate":
- hecateBool = True
- elif i.name == "Demonic Grip":
- demonicBool = True
- elif i.name == "Death's Temper":
- temperMulti = 1.35
- elif i.name == "Diamond Arrow" and diamondArrowPassiveVariable.get():
- AS = AS + (sol.baseAS * 0.6)
- elif i.name == "Telkhines Ring":
- telkBool = True
- elif i.name == "Void Stone":
- voidStonePen = 0.9
- elif i.name == "Spear Of The Magus" and magusPassiveVariable.get():
- globalMulti += 0.075
- elif i.name == "Typhon's Fang":
- typhonBool = True
- elif i.name == "Bancroft's Talon" and bancroftPassiveVariable.get():
- power = power + 100
- lifesteal = lifesteal + 0.2
- elif i.name == "Doom Orb" and doomPassiveVariable.get():
- power = power + 20
- elif i.name == "Gem Of Focus":
- globalMulti += 0.09
- elif tahutiPassiveVariable.get():
- if i.name == "Rod Of Tahuti" or i.name == "Calamitous Rod Of Tahuti" or i.name == "Nimble Rod Of Tahuti":
- tahutiMulti = 1.25
- if i.name == "Nimble Rod Of Tahuti":
- nimbleBool = True
- if i.name == "Rod Of Tahuti" or i.name == "Calamitous Rod Of Tahuti" or i.name == "Nimble Rod Of Tahuti":
- tahutis = tahutis + 1;
- if i.name == "Sacrificial Shroud":
- abilityGlobalMulti += 0.15
- if percentPen > 0.4:
- percentPen = 0.4
- if flatPen > 50:
- flatPen = 50
- if cdr > 0.4:
- cdr = 0.4
- if lifesteal > 0.65:
- lifesteal = 0.65
- if lifesteal >= float(minimumLifeStealEntry.get()) and cdr >=float(minimumCDREntry.get()) and tahutis <= 1:
- if bookOfThothBool:
- if bookOfThothEnabledVariable.get():
- power = power + (manaFromItems * 0.1)
- else:
- power = 1
- if typhonBool:
- power = power + (lifesteal * 200)
- if nimbleBool:
- if power > 800:
- AS = AS + (sol.baseAS * 0.4)
- else:
- AS = AS + (sol.baseAS * ((power/40) * 0.02))
- if solPassiveVariable.get():
- power *= 1.25
- AS += (sol.baseAS * 0.3)
- globalMulti += 0.15
- timeToBeSpentAttacking = float(timeSpentAttackingEntry.get())
- timeSpentAttacking = 0
- target1Damage = 0
- target2Damage = 0
- while timeSpentAttacking < timeToBeSpentAttacking:
- if AS <= 2.5:
- timeSpentAttacking = timeSpentAttacking + (1/AS)
- else:
- timeSpentAttacking = timeSpentAttacking + (1/2.5)
- target1Damage = target1Damage + (((temperMulti)*(sol.attackDamage + basicAttackDamage + (tahutiMulti * power * sol.powerToAttackDamageMulti))) * min((100/(100 + (((target1Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*globalMulti)
- target2Damage = target2Damage + (((temperMulti)*(sol.attackDamage + basicAttackDamage + (tahutiMulti * power * sol.powerToAttackDamageMulti))) * min((100/(100 + (((target2Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*globalMulti)
- if telkBool:
- target1Damage = target1Damage + (((10 + (power * 0.1))) * min((100/(100 + (((target1Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*globalMulti)
- target2Damage = target2Damage + (((10 + (power * 0.1))) * min((100/(100 + (((target2Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*globalMulti)
- if freyaAbilitiesVariable.get():
- target1Damage = target1Damage + (((160 + (tahutiMulti * power * 0.4))) * min((100/(100 + (((target1Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*(globalMulti + abilityGlobalMulti))
- target2Damage = target2Damage + (((160 + (tahutiMulti * power * 0.4))) * min((100/(100 + (((target2Prots * voidStonePen) * (1-(percentPen))) - flatPen))),1)*(globalMulti + abilityGlobalMulti))
- if (hecateBool == True and hecateStacks == 0):
- hecatePowerBonus = power * 0.05
- power += hecatePowerBonus
- hecateStacks = hecateStacks + 1
- elif (hecateBool == True and hecateStacks < 3):
- power += hecatePowerBonus
- hecateStacks = hecateStacks + 1
- if demonicBool == True and demonicStacks == 0:
- demonicProtShred1 = target1Prots * 0.1
- demonicProtShred2 = target2Prots * 0.1
- target1Prots = target1Prots - demonicProtShred1
- target2Prots = target2Prots - demonicProtShred2
- demonicStacks = demonicStacks + 1
- elif demonicBool == True and demonicStacks != 3:
- target1Prots = target1Prots - demonicProtShred1
- target2Prots = target2Prots - demonicProtShred2
- demonicStacks = demonicStacks + 1
- target1Damage = target1Damage / timeSpentAttacking
- target2Damage = target2Damage / timeSpentAttacking
- if target1Damage >= float(minimumTarget1DamageEntry.get()) and target2Damage >= float(minimumTarget2DamageEntry.get()):
- if target1SortVariable.get():
- string = ""
- for i in build:
- string = string + i.name + ", "
- string = string + "\nTarget 1 DPS: " + str(round(target1Damage,2)) + " Target 2 DPS: " + str(round(target2Damage,2))+"\n"
- if len(buildSorterBuilds) == 2:
- buildSorterBuilds.insert(1,string)
- buildSorterDamage.insert(1,target1Damage)
- else:
- i = round(len(buildSorterBuilds)/2) - 1
- loop = True
- while(loop):
- if(target1Damage < buildSorterDamage[i-1]):
- i -= 1
- elif(target1Damage > buildSorterDamage[i]):
- i += 1
- else:
- loop = False
- buildSorterBuilds.insert(i,string)
- buildSorterDamage.insert(i,target1Damage)
- if len(buildSorterBuilds) > float(buildLimitForSorterEntry.get()) + 2:
- del buildSorterBuilds[1]
- del buildSorterDamage[1]
- elif target2SortVariable.get():
- string = ""
- for i in build:
- string = string + i.name + ", "
- string = string + "\nTarget 1 DPS: " + str(round(target1Damage,2)) + " Target 2 DPS: " + str(round(target2Damage,2))+"\n"
- if len(buildSorterBuilds) == 2:
- buildSorterBuilds.insert(1,string)
- buildSorterDamage.insert(1,target2Damage)
- else:
- i = round(len(buildSorterBuilds)/2) - 1
- loop = True
- while(loop):
- if(target2Damage < buildSorterDamage[i-1]):
- i -= 1
- elif(target2Damage > buildSorterDamage[i]):
- i += 1
- else:
- loop = False
- buildSorterBuilds.insert(i,string)
- buildSorterDamage.insert(i,target2Damage)
- if len(buildSorterBuilds) > float(buildLimitForSorterEntry.get()) + 2:
- del buildSorterBuilds[1]
- del buildSorterDamage[1]
- else:
- for i in build:
- print(i.name, end = ", ")
- print("\nTarget 1 DPS:" , round(target1Damage,2) , " Target 2 DPS:" , round(target2Damage,2),"\n")
- if target1SortVariable.get() or target2SortVariable.get():
- del buildSorterBuilds[0]
- del buildSorterBuilds[-1]
- for i in buildSorterBuilds:
- print(i)
- print("-------------------------------------------------------")
- def min(x, y):
- if x<y:
- return x
- return y
- ############################################################################################
- root = Tk()
- root.title("Auto Attack Damage")
- button = Button(root, text="Run Program", padx=25, command = CalculateDamage)
- button.grid(row = 0, column = 0)
- timeSpentAttackingLabel = Label(root,text="Time Spent Attacking:")
- timeSpentAttackingLabel.grid(row = 1, column = 0)
- timeSpentAttackingEntry = Entry(root, width=5)
- timeSpentAttackingEntry.grid(row = 1, column = 1)
- timeSpentAttackingEntry.insert(0,"5")
- itemsLabel = Label(root,text="Required Items:")
- itemsLabel.grid(row = 2, column = 0)
- requiredItems1Variable = StringVar()
- requiredItems1Variable.set(" ")
- requiredItems1 = OptionMenu(root, requiredItems1Variable, *mageItemsNames)
- requiredItems1.grid(row=2, column=1)
- requiredItems2Variable = StringVar()
- requiredItems2Variable.set(" ")
- requiredItems2 = OptionMenu(root, requiredItems2Variable, *mageItemsNames)
- requiredItems2.grid(row=2, column=2)
- requiredItems3Variable = StringVar()
- requiredItems3Variable.set(" ")
- requiredItems3 = OptionMenu(root, requiredItems3Variable, *mageItemsNames)
- requiredItems3.grid(row=2, column=3)
- requiredItems4Variable = StringVar()
- requiredItems4Variable.set(" ")
- requiredItems4 = OptionMenu(root, requiredItems4Variable, *mageItemsNames)
- requiredItems4.grid(row=2, column=4)
- requiredItems5Variable = StringVar()
- requiredItems5Variable.set(" ")
- requiredItems5 = OptionMenu(root, requiredItems5Variable, *mageItemsNames)
- requiredItems5.grid(row=2, column=5)
- starterLabel = Label(root,text="Starter Item:")
- starterLabel.grid(row = 3, column = 0)
- starterVariable = StringVar()
- starterVariable.set(" ")
- starter = OptionMenu(root, starterVariable, *mageStarterNames)
- starter.grid(row=3, column=1)
- target1ProtsLabel = Label(root,text="Target 1 Protections:")
- target1ProtsLabel.grid(row = 4, column = 0)
- target1ProtsEntry = Entry(root, width=5)
- target1ProtsEntry.grid(row = 4, column = 1)
- target1ProtsEntry.insert(0,"60")
- emptyLabel2 = Label(root,text=" ")
- emptyLabel2.grid(row = 4, column = 2)
- target1HealthLabel = Label(root,text="Target 1 Health:")
- target1HealthLabel.grid(row = 4, column = 3)
- target1HealthEntry = Entry(root, width=5)
- target1HealthEntry.grid(row = 4, column = 4)
- target1HealthEntry.insert(0,"2000")
- target2ProtsLabel = Label(root,text="Target 2 Protections:")
- target2ProtsLabel.grid(row = 5, column = 0)
- target2ProtsEntry = Entry(root, width=5)
- target2ProtsEntry.grid(row = 5, column = 1)
- target2ProtsEntry.insert(0,"200")
- emptyLabel3 = Label(root,text=" ")
- emptyLabel3.grid(row = 5, column = 2)
- target2HealthLabel = Label(root,text="Target 2 Health:")
- target2HealthLabel.grid(row = 5, column = 3)
- target2HealthEntry = Entry(root, width=5)
- target2HealthEntry.grid(row = 5, column = 4)
- target2HealthEntry.insert(0,"3000")
- minimumTarget1DamageLabel = Label(root,text="Minimum Target 1 DPS:")
- minimumTarget1DamageLabel.grid(row = 6, column = 0)
- minimumTarget1DamageEntry = Entry(root, width=5)
- minimumTarget1DamageEntry.grid(row = 6, column = 1)
- minimumTarget1DamageEntry.insert(0,"0")
- emptyLabel4 = Label(root,text=" ")
- emptyLabel4.grid(row = 6, column = 2)
- minimumTarget2DamageLabel = Label(root,text="Minimum Target 2 DPS:")
- minimumTarget2DamageLabel.grid(row = 6, column = 3)
- minimumTarget2DamageEntry = Entry(root, width=5)
- minimumTarget2DamageEntry.grid(row = 6, column = 4)
- minimumTarget2DamageEntry.insert(0,"0")
- minimumCDRLabel = Label(root,text="Minimum Cooldown Reduction:")
- minimumCDRLabel.grid(row = 7, column = 0)
- minimumCDREntry = Entry(root, width=5)
- minimumCDREntry.grid(row = 7, column = 1)
- minimumCDREntry.insert(0,"0")
- emptyLabel5 = Label(root,text=" ")
- emptyLabel5.grid(row = 7, column = 2)
- minimumLifeStealLabel = Label(root,text="Minimum Lifesteal:")
- minimumLifeStealLabel.grid(row = 7, column = 3)
- minimumLifeStealEntry = Entry(root, width=5)
- minimumLifeStealEntry.grid(row = 7, column = 4)
- minimumLifeStealEntry.insert(0,"0")
- disablePassivesLabel = Label(root,text="Enable/Disable Item Passives:")
- disablePassivesLabel.grid(row = 8, column = 0)
- rangdasPassiveVariable = BooleanVar()
- rangdasPassiveVariable.set(False)
- rangdasPassiveCheckBox = Checkbutton(root, text="Rangda's Mask", variable = rangdasPassiveVariable)
- rangdasPassiveCheckBox.grid(row = 8, column = 1)
- bookOfThothEnabledVariable = BooleanVar()
- bookOfThothEnabledVariable.set(False)
- bookOfThothEnabledCheckBox = Checkbutton(root, text="Book Of Thoth", variable = bookOfThothEnabledVariable)
- bookOfThothEnabledCheckBox.grid(row = 8, column = 2)
- warlocksEnabledVariable = BooleanVar()
- warlocksEnabledVariable.set(False)
- warlocksEnabledCheckBox = Checkbutton(root, text="Warlock's Staff", variable = warlocksEnabledVariable)
- warlocksEnabledCheckBox.grid(row = 8, column = 3)
- magusPassiveVariable = BooleanVar()
- magusPassiveVariable.set(False)
- magusPassiveCheckBox = Checkbutton(root, text="Spear Of The Magus", variable = magusPassiveVariable)
- magusPassiveCheckBox.grid(row = 8, column = 4)
- tahutiPassiveVariable = BooleanVar()
- tahutiPassiveVariable.set(False)
- tahutiPassiveCheckBox = Checkbutton(root, text="Rod Of Tahuti", variable = tahutiPassiveVariable)
- tahutiPassiveCheckBox.grid(row = 8, column = 5)
- doomPassiveVariable = BooleanVar()
- doomPassiveVariable.set(False)
- doomPassiveCheckBox = Checkbutton(root, text="Doom Orb", variable = doomPassiveVariable)
- doomPassiveCheckBox.grid(row = 9, column = 1)
- bancroftPassiveVariable = BooleanVar()
- bancroftPassiveVariable.set(False)
- bancroftPassiveCheckBox = Checkbutton(root, text="Bancroft's Talon", variable = bancroftPassiveVariable)
- bancroftPassiveCheckBox.grid(row = 9, column = 2)
- diamondArrowPassiveVariable = BooleanVar()
- diamondArrowPassiveVariable.set(False)
- diamondArrowPassiveCheckBox = Checkbutton(root, text="Diamond Arrow", variable = diamondArrowPassiveVariable)
- diamondArrowPassiveCheckBox.grid(row = 9, column = 2)
- disableCharacterAbilitiesLabel = Label(root,text="Enable/Disable Character Abilities:")
- disableCharacterAbilitiesLabel.grid(row = 10, column = 0)
- solPassiveVariable = BooleanVar()
- solPassiveVariable.set(False)
- solPassiveCheckBox = Checkbutton(root, text="Sol Passive", variable = solPassiveVariable)
- solPassiveCheckBox.grid(row = 10, column = 1)
- freyaAbilitiesVariable = BooleanVar()
- freyaAbilitiesVariable.set(False)
- freyaAbilitiesCheckBox = Checkbutton(root, text="Freya 1 + 2", variable = freyaAbilitiesVariable)
- freyaAbilitiesCheckBox.grid(row = 10, column = 2)
- target1SortVariable = BooleanVar()
- target1SortVariable.set(False)
- target1SortCheckBox = Checkbutton(root, text="Sort Builds By Damage to Target 1", variable = target1SortVariable)
- target1SortCheckBox.grid(row = 11, column = 1)
- target2SortVariable = BooleanVar()
- target2SortVariable.set(False)
- target2SortCheckBox = Checkbutton(root, text="Sort Builds By Damage to Target 2", variable = target2SortVariable)
- target2SortCheckBox.grid(row = 11, column = 3)
- buildLimitForSorterLabel = Label(root,text="Number of Builds Displayed When Sorting:")
- buildLimitForSorterLabel.grid(row = 12, column = 0)
- buildLimitForSorterEntry = Entry(root, width=5)
- buildLimitForSorterEntry.grid(row = 12, column = 1)
- buildLimitForSorterEntry.insert(0,"20")
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment