Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- REM Sezen kat calc for figuring out Icy's double sorc build
- REM Very out of date!!! Don't use this with the intent of doing anything with it!!
- TITLE Katarina Calc
- COLOR 0A
- REM let's create our required method of integer>float conversion
- if exist vbs.bat goto n
- echo @echo off>vbs.bat
- echo ^>"%%temp%%\VBS.vbs" echo Set fso = CreateObject("Scripting.FileSystemObject") : Wscript.echo(%%^*)>>vbs.bat
- echo for /f "delims=" %%%%a in ('cscript /nologo "%%temp%%\VBS.vbs"') do set "val=%%%%a">>vbs.bat
- echo set val^=^%%^val^:^,^=^.^%% >> vbs.bat
- :n
- echo kat calc
- set /p mr=Target's starting MR?:
- set passive14=214
- set passive16=248
- set passive18=287
- set qbase=195
- set ebase=90
- set rbase=50
- set rbase2=38
- set gunblade=80
- set void=80
- set haunt=25
- set rabs=120
- set zhon=70
- set gbad=40
- set gbd=250
- echo ===================================
- echo PEN MR CALCS LEVEL 18 W/ 6 ITEMS
- echo ===================================
- echo %mr%
- REM MR calculation for flatpen build, includes mpen from passive
- REM Uses one void, one haunting guise, three sorcs and 6 from masteries!
- call vbs %mr%*0.35
- set mr2=%val%
- echo %mr2% pen lost from percent pen!
- call vbs %mr%-%mr2%
- set mr2=%val%
- echo %mr2% total pen after percent pen!
- set /a mr2=mr2-66
- echo %mr2% total MR after flatpen.
- REM if MR is less than 0, then does a weird calc method
- if %mr2% leq 0 goto lesscalc
- echo We have more than 0 MR!
- call vbs (%mr2%/(%mr2%+100))
- set mrp=%val%
- goto cont
- :lesscalc
- echo We have less than 0 MR!
- call vbs %mr2%*-1
- set mr3=%val%
- echo %mr3%
- call vbs %mr3%/(%mr3%+100)
- set tem=%val%
- call vbs %tem%*-1
- set mrp=%val%
- REM 2-(mr3/(mr3+100)) does the same thing but this is logical incrementation
- REM thus easier for me to keep track in my head
- :cont
- echo %mrp% important number for calcs :)
- call vbs %mrp%*100
- set mrz=%val%
- echo %mrz% percent resistance with pen build!
- REM Last number in that is the damage reduction!
- REM Mr calculation for regular build
- REM Uses one void, one haunting guise and 6 mpen from masteries!
- echo ===================================
- echo NORMAL MR CALCS LEVEL 18 W/ 6 ITEMS
- echo ===================================
- echo we have %mr% MR
- call vbs %mr%*0.35
- set mr2=%val%
- echo %mr2% lost MR from percent pen.
- call vbs %mr%-%mr2%
- set mr2=%val%
- set /a mr2=mr2-36
- set mr2n=%mr2%
- echo %mr2% total MR after flatpen.
- if %mr2% leq 0 goto lesscalc
- echo We have more than 0 MR!
- call vbs (%mr2%/(%mr2%+100))
- set mrn=%val%
- goto cont
- :lesscalc
- echo We have less than 0 MR!
- call vbs %mr2%*-1
- set mr3=%val%
- echo %mr3%
- call vbs %mr3%/(%mr3%+100)
- set tem=%val%
- call vbs %tem%*-1
- set mrn=%val%
- :cont
- echo %mrn% important number for calcs :)
- call vbs %mrn%*100
- set mrz=%val%
- echo %mrz% percent resistance with normal build!
- echo ===================================
- echo AP CALCS FOR NORMAL BUILD
- ECHO ===================================
- REM includes AP passive and runes!
- set /a apn=%gunblade%+%void%+%haunt%+%rabs%+%zhon%+30
- echo %apn% AP before rabs for the normal build.
- call vbs %apn%*1.35
- set apn=%val%
- echo %apn% AP after rabs.
- echo ===================================
- echo AP CALCS FOR PEN BUILD
- echo ===================================
- set /a app=%gunblade%+%void%+%haunt%
- echo %app% AP with the pen build.
- REM the meat and potatoes.
- REM teamfight = passive once, ult 1/2, gunblade once
- echo ===================================
- ECHO DAMAGE CALCS FOR NORMAL BUILD
- echo ===================================
- call vbs %passive18%+%apn%+%gbad%+22
- set pd=%val%
- echo %pd% raw passive dmg with normal build!
- call vbs %gbd%+(%apn%*0.30)
- set gbb=%val%
- echo %gbb% raw gunblade damage with normal build!
- call vbs 7*(%rbase%)+7*(0.22*(%gbad%+22))+7*(0.19*%apn%)
- REM 22 = ad from gb + icys ad reds
- set rud=%val%
- echo %rud% raw ult dmg with normal build! assumes half the ult channeled!
- call vbs %rud%+%gbb%+%pd%
- set tdn=%val%
- echo %tdn% total dmg before mitigation with normal build!
- if %mr2n% leq 0 goto calc1
- echo Target has more than 0 effective MR!
- call vbs %mrp%*%tdn%
- set pmdn=%var%
- goto fin
- :calc1
- echo Target has less than 0 effective MR!
- echo %mrn%
- call vbs 1+(%mrn%*-1)
- set dmn=%val%
- echo %dmn%
- call vbs %tdn%*%dmn%
- set pmdn=%val%
- :fin
- echo %pmdn% total dmg post mitigation with normal build.
- REM pen dmg calc
- echo ===================================
- echo DAMAGE CALCS FOR PEN BUILD
- echo ===================================
- call vbs %passive18%+%app%+%gbad%+22
- set pd=%val%
- echo %pd% raw passive dmg with normal build!
- call vbs %gbd%+(%app%*0.30)
- set gbb=%val%
- echo %gbb% raw gunblade damage with normal build!
- call vbs (7*(%rbase%))+(7*(0.22*(%gbad%+22)))+(7*(0.19*%app%))
- REM 22 = ad from gb + icys ad reds
- set rud=%val%
- echo %rud% raw ult dmg with normal build! assumes half the ult channeled!
- call vbs %rud%+%gbb%+%pd%
- set tdp=%val%
- echo %tdp% total dmg before mitigation with pen build!
- echo %mrp%
- call vbs 1+(%mrp%*-1)
- set dmp=%val%
- echo %dmp%
- call vbs %tdp%*%dmp%
- set pmdp=%val%
- :next
- echo %pmdp% total post mitigation dmg with penetration build!
- set /a pmdn=pmdn+0
- set /a pmdp=pmdp+0
- echo.
- ECHO.
- ECHO.
- ECHO.
- echo | set /p=[
- echo | set /p=FINAL RESULTS
- echo | set /p=]
- echo.
- echo | set /p=[
- echo | set /p=%mr% MR
- echo | set /p=]
- echo.
- echo | set /p=[
- echo | set /p=Normal dmg: %pmdn%
- echo | set /p=]
- echo.
- echo | set /p=[
- echo | set /p=Flat Pen dmg: %pmdp%
- echo | set /p=]
- echo.
- echo.
- echo.
- echo.
- echo.
- REM normal build varables
- REM mrn (dmg mitigation), apn (ap normal), tdn (total damage normal)
- REM pen build variables
- REM mrp (dmg mitigation), app (ap pen), tdp (total dmg pen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement