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 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)
- 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)
- magicalBumbasSpear = Item("Bumba's Spear",105,0,0.1,0,0,0,0.1,0,0,0,2100)
- 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)
- archmagesGem = Item("Archmage's Gem",120,0,0,0,0,0,0,200,0,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,rangdas,empty]
- mageStarters = [magicalBumbasSpear,pendulum,gemOfFocus,alternateTimeline,archmagesGem,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,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
- health = 2000
- mana = 1000
- manaFromItems = 0
- cdr = 0
- lifesteal = 0
- flatPen = 0
- percentPen = 0
- totalGold = 0
- bookOfThothBool = False
- warlocksBool = False
- voidStonePen = 1
- soulGemBool = False
- magusMultiplier = 1
- obbyPen = 0
- estaffBool = False
- reaverBool = False
- typhonBool = False
- tahutiMulti = 1
- sacShroudMulti = 1
- gemOfFocusMulti = 1
- rangdasMulti = 0
- archmageBool = False
- polyBool = False
- kukuPassiveBool = False
- calamitousTahutiBool = False
- tahutis = 0
- for i in build:
- power = power + i.power
- 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
- totalGold = totalGold + i.gold
- if i.name == "Book Of Thoth":
- bookOfThothBool = True
- elif i.name == "Warlock's Staff":
- warlocksBool = True
- elif i.name == "Void Stone":
- voidStonePen = 0.9
- elif i.name == "Soul Gem" and soulGemPassiveVariable.get():
- soulGemBool = True
- elif i.name == "Spear Of The Magus" and magusPassiveVariable.get():
- magusMultiplier = 1.075
- elif i.name == "Obsidian Shard" and obbyPassiveVariable.get():
- obbyPen = 0.1
- elif i.name == "Ethereal Staff" and estaffPassiveVariable.get():
- estaffBool = True
- elif i.name == "Soul Reaver":
- reaverBool = True
- 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 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
- elif i.name == "Rangda's Mask" and rangdasPassiveVariable.get():
- rangdasMulti = 0.15
- elif i.name == "Sacrificial Shroud":
- sacShroudMulti = 1.15
- elif i.name == "Gem Of Focus":
- gemOfFocusMulti = 1.09
- elif i.name == "Archmage's Gem":
- archmageBool = True
- elif i.name == "Polynomicon" and polyPassiveVariable.get():
- polyBool = True
- elif i.name == "Calamitous Rod Of Tahuti" and calamitousPassiveVariable.get():
- calamitousTahutiBool = 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 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
- #kukuPassiveBool = True
- if kukuPassiveBool:
- power = power + (mana * 0.04)
- if warlocksBool and warlocksEnabledVariable.get() == False:
- power = 1
- if typhonBool:
- power = power + (lifesteal * 200)
- target1Damage = (float(baseAbilityDamageEntry.get()) + ((power * tahutiMulti) * (float(powerScalingEntry.get())))) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen+obbyPen)))-flatPen)), 1)
- target2Damage = (float(baseAbilityDamageEntry.get()) + ((power * tahutiMulti) * (float(powerScalingEntry.get())))) * min((100/(100+(((float(target2ProtsEntry.get())*voidStonePen))*(1-(percentPen+obbyPen)))-flatPen)), 1)
- target1Damage = target1Damage * sacShroudMulti
- target2Damage = target2Damage * sacShroudMulti
- if soulGemBool:
- target1Damage = target1Damage + ((power) * (0.25)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- target2Damage = target2Damage + ((power) * (0.25)) * min((100/(100+(((float(target2ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- if archmageBool:
- target1Damage = target1Damage + ((power) * (0.2)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- target2Damage = target2Damage + ((power) * (0.2)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- if polyBool:
- target1Damage = target1Damage + ((power) * (0.75)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- target2Damage = target2Damage + ((power) * (0.75)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- if calamitousTahutiBool:
- target1Damage = target1Damage + (100+((power) * (0.35))) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- target2Damage = target2Damage + (100+((power) * (0.35))) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-(percentPen)))-flatPen)), 1)
- if reaverBool:
- reaverPercent1 = ((7/750)*(float(target1HealthEntry.get())))-(50/3)
- reaverPercent2 = ((7/750)*(float(target2HealthEntry.get())))-(50/3)
- if reaverPercent1 < 2:
- reaverPercent1 = 2
- elif reaverPercent1 > 9:
- reaverPercent1 = 9
- if reaverPercent2 < 2:
- reaverPercent2 = 2
- elif reaverPercent2 > 9:
- reaverPercent2 = 9
- target1Damage = target1Damage + (float(target1HealthEntry.get())*(reaverPercent1/100)) * min((100/(100+(((float(target1ProtsEntry.get())*voidStonePen))*(1-percentPen)-flatPen))), 1)
- target2Damage = target2Damage + (float(target2HealthEntry.get())*(reaverPercent2/100)) * min((100/(100+(((float(target2ProtsEntry.get())*voidStonePen))*(1-percentPen)-flatPen))), 1)
- target1Damage = target1Damage * (gemOfFocusMulti + rangdasMulti)
- target2Damage = target2Damage * (gemOfFocusMulti + rangdasMulti)
- if estaffBool:
- target1Damage = target1Damage + (float(target1HealthEntry.get())*0.06)
- target2Damage = target2Damage + (float(target2HealthEntry.get())*0.06)
- target1Damage = target1Damage * magusMultiplier
- target2Damage = target2Damage * magusMultiplier
- 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 Damage: " + str(round(target1Damage,2)) + " Target 2 Damage: " + 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 Damage: " + str(round(target1Damage,2)) + " Target 2 Damage: " + 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 Damage:" , round(target1Damage,2) , " Target 2 Damage:" , 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("Generic Ability Damage")
- button = Button(root, text="Run Program", padx=25, command = CalculateDamage)
- button.grid(row = 0, column = 0)
- baseAbilityDamageLabel = Label(root,text="Base Ability Damage:")
- baseAbilityDamageLabel.grid(row = 1, column = 0)
- baseAbilityDamageEntry = Entry(root, width=5)
- baseAbilityDamageEntry.grid(row = 1, column = 1)
- baseAbilityDamageEntry.insert(0,"0")
- emptyLabel1 = Label(root,text=" ")
- emptyLabel1.grid(row = 1, column = 2)
- powerScalingLabel = Label(root,text="Power Scaling:")
- powerScalingLabel.grid(row = 1, column = 3)
- powerScalingEntry = Entry(root, width=5)
- powerScalingEntry.grid(row = 1, column = 4)
- powerScalingEntry.insert(0,"0")
- 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 Damage:")
- 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 Damage:")
- 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)
- estaffPassiveVariable = BooleanVar()
- estaffPassiveVariable.set(False)
- estaffPassiveCheckBox = Checkbutton(root, text="Ethereal Staff", variable = estaffPassiveVariable)
- estaffPassiveCheckBox.grid(row = 8, column = 1)
- magusPassiveVariable = BooleanVar()
- magusPassiveVariable.set(False)
- magusPassiveCheckBox = Checkbutton(root, text="Spear Of The Magus", variable = magusPassiveVariable)
- magusPassiveCheckBox.grid(row = 8, column = 2)
- tahutiPassiveVariable = BooleanVar()
- tahutiPassiveVariable.set(False)
- tahutiPassiveCheckBox = Checkbutton(root, text="Rod Of Tahuti", variable = tahutiPassiveVariable)
- tahutiPassiveCheckBox.grid(row = 8, column = 3)
- doomPassiveVariable = BooleanVar()
- doomPassiveVariable.set(False)
- doomPassiveCheckBox = Checkbutton(root, text="Doom Orb", variable = doomPassiveVariable)
- doomPassiveCheckBox.grid(row = 8, column = 4)
- soulGemPassiveVariable = BooleanVar()
- soulGemPassiveVariable.set(False)
- soulGemPassiveCheckBox = Checkbutton(root, text="Soul Gem", variable = soulGemPassiveVariable)
- soulGemPassiveCheckBox.grid(row = 8, column = 5)
- obbyPassiveVariable = BooleanVar()
- obbyPassiveVariable.set(False)
- obbyPassiveCheckBox = Checkbutton(root, text="Obsidian Shard", variable = obbyPassiveVariable)
- obbyPassiveCheckBox.grid(row = 8, column = 6)
- polyPassiveVariable = BooleanVar()
- polyPassiveVariable.set(False)
- polyPassiveCheckBox = Checkbutton(root, text="Polynomicon", variable = polyPassiveVariable)
- polyPassiveCheckBox.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 )
- rangdasPassiveVariable = BooleanVar()
- rangdasPassiveVariable.set(False)
- rangdasPassiveCheckBox = Checkbutton(root, text="Rangda's Mask", variable = rangdasPassiveVariable)
- rangdasPassiveCheckBox.grid(row = 9, column = 3)
- calamitousPassiveVariable = BooleanVar()
- calamitousPassiveVariable.set(False)
- calamitousPassiveCheckBox = Checkbutton(root, text="Calamitous Tahuti", variable = calamitousPassiveVariable)
- calamitousPassiveCheckBox.grid(row = 9, column = 4)
- disableItemsLabel = Label(root,text="Enable/Disable Items:")
- disableItemsLabel.grid(row = 10, column = 0)
- bookOfThothEnabledVariable = BooleanVar()
- bookOfThothEnabledVariable.set(False)
- bookOfThothEnabledCheckBox = Checkbutton(root, text="Book Of Thoth", variable = bookOfThothEnabledVariable)
- bookOfThothEnabledCheckBox.grid(row = 10, column = 1)
- warlocksEnabledVariable = BooleanVar()
- warlocksEnabledVariable.set(False)
- warlocksEnabledCheckBox = Checkbutton(root, text="Warlock's Staff", variable = warlocksEnabledVariable)
- warlocksEnabledCheckBox.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()
Add Comment
Please, Sign In to add comment