Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- Created on Tue Jul 9 14:29:17 2019
- @author: danihadi
- ERZE STAT CALCULATOR
- Remember that you need 3 lines of crit, so you only have 13 option lines available to spread over atk, cdmg and pen.
- """
- #variables to edit
- atk_lines = 3
- atk_ench = 2 * 11
- cdmg_lines = 6
- cdmg_ench = 2 * 22
- pen_lines = 4
- pen_ench = 0
- #variables self attack
- UW_atk = 119892
- earring_atk = 23702
- base_atk = 21992
- #variables self %attack
- utatk = 0
- gear_atk = 12 * atk_lines + atk_ench #option lines first, total attack from enchants after
- opt_atk = utatk + gear_atk
- rune_atk = 60
- #variables buff %attack
- UW_buff = 0.5 * 200 #depends on UW stacks
- T1_atk = 30
- T2_tw = 20
- crown = 63
- award = 8
- medi_t5d = 40 #40
- medi_s1l = 10 #10
- lavril_t5d = 60 #60
- lavril_s2d = 20
- juno_s1l = 15
- patk_buff = UW_buff + T1_atk + T2_tw + crown + award + medi_t5d + medi_s1l + lavril_t5d + lavril_s2d + juno_s1l
- #variables flat attack
- S4_atk = 4212 * (1 + 200/100) * 32 #last number depends on amount of S4 stacks, need to test next GC
- medi_s3 = 0.2 * 30000 + 37932
- lavril_s4 = 27775
- flat_atk = S4_atk + medi_s3 + lavril_s4
- #variables crit damage
- utcdmg = 0
- gear_cdmg = 24 * cdmg_lines + cdmg_ench #option lines first, total cdmg from enchants after
- rune_cdmg = 40 + 22
- cdmg = 30 + utcdmg + gear_cdmg + rune_cdmg
- T2_os = 30
- medi_ut1 = 20 #20
- lavril_s2 = 50 + 0.15 * 500
- cdmg_tot = cdmg + T2_os + medi_ut1 + lavril_s2
- #variables penetration
- utpen = 0
- gear_pen = 120 * pen_lines + pen_ench
- rune_pen = 110
- pen = utpen + gear_pen + rune_pen
- T2_tw = 200
- lavril_s4l = 300
- pen_tot = pen + T2_tw + lavril_s4l
- #variables skills
- x = 30 #S1D stacks
- skill_mult = (1630/1000) * (1000+100*x+500)/1000
- skill_const = (326 + 326 * 26221 /1000 * 8000/1000) * (1000+100*x+500)/1000
- #calculations attack and cdmg
- atk_self = UW_atk + earring_atk + base_atk
- patk_self = opt_atk + rune_atk
- atk_scrn = atk_self * (1 + patk_self/100)
- atk_tot = ((atk_self * (1 + patk_self/100)) * (1 + patk_buff/100)) + flat_atk
- #calculations penetration
- if (pen_tot <= 450):
- pen_p = pen_tot
- elif (pen_tot >= 450 and pen_tot <= 1000):
- pen_p = ((pen_tot*409)/1000)+266
- else:
- pen_p = 900-(900*1000000)/(2*pen_tot*pen_tot+1000*pen_tot+1000000)
- #final calculations
- pillardef = 50000
- def_net = pillardef * ((1000 - pen_p)/1000)
- dmg_red = 0.9817 * def_net / (19360.3675 + def_net)
- damage = (((skill_mult * atk_tot) + skill_const) * (1 + cdmg_tot/100)) * (1-dmg_red)
- print("Erze attack stat on screen:", atk_scrn)
- print("Erze cdmg stat on screen:", cdmg, "%")
- print("Erze pen stat:", pen_p/10, "%")
- print("Erze S1 damage (without manti/MH):", damage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement