def program(): print ("If your damage is in decimal format you have more than the needed damage to complete the next boss.") print (" ") # Your Base Inputs print ("What is your current damage") damage = int(input()) print ("What is your click damage?") damageClick = int(input()) print ("What is your click critical?") damageClickCrit = int(input()) #Idle Calculations damage30 = damage * 30 damage30b = damage30 * 2 crit = 3 energize = 2 #Click Damage #With lucky strikes you have 50% but it seems to crit 1 every 3 so that is how I calculate it. #We also need a ClicksPerSecond to even this out print ("What is your average clicks per second (Without Clickstorm)") clickPerSec = int(input()) print ("What is your average with clickstorm?") clickPerSecCS = int(input()) clickDamagePS = (damageClick + damageClickCrit) * (clickPerSec / crit) clickDamagePSCS = (damageClick + damageClickCrit) * (clickPerSecCS / crit) #This algorithm assumes you have 50% flat crit and are crit striking every other attack #Idle damage needed print ("How much HP does the next boss have (Add 3 zeroes)") bossHP = int(input()) damageIdle = bossHP / damage30 damageIdleB = bossHP / damage30b damageIdleU = round(damageIdle, 1) damageIdleBU = round(damageIdleB, 1) print ("You need " + str(damageIdleU) + "x your current damage to kill the boss idle with no Powersurge.") print (" ") print ("You need " + str(damageIdleBU) + "x your current damage to kill the boss WITH powersurge.") #Click and Idle damage needed damageClick30 = (clickDamagePS * 30) damageClick30CS = (clickDamagePSCS * 30) damageClick30CSSC = (damageClick30CS * 2) #These grab how much click damage you're doing per boss fight (30 seconds) damageClickBoss = bossHP / (damage30 + damageClick30) damageClickBossCD = bossHP / (damage30b + damageClick30CS) damageClickBossCDS = bossHP / (damage30b + damageClick30CSSC) damageClickBossR = round(damageClickBoss, 1) damageClickBossCDR = round(damageClickBossCD, 1) damageClickBossCDRSC = round(damageClickBossCDS, 1) print ("To do the boss while also clicking you will need " + str(damageClickBossR) + "x your current damage.") print (" ") print ("To do the boss while also clicking with cooldowns you will need " + str(damageClickBossCDR) + "x your current damage") print (" ") print ("To do the boss while using Super Clicks you will need " + str(damageClickBossCDRSC) + "x your current damage.") #This formula uses either no cooldowns or cooldowns 1,2,3 and possibly 8. flag = True while flag: program() flag = input('Would you like to run the program again? [Y/N] ') == 'Y' print ("The Program will now terminate")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question