Pauan

Monster Hunter 4 Ultimate Damage Calculator

Jun 17th, 2016
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. redSharpness    = 0.50
  2. orangeSharpness = 0.75
  3. yellowSharpness = 1.00
  4. greenSharpness  = 1.05
  5. blueSharpness   = 1.20
  6. whiteSharpness  = 1.32
  7. purpleSharpness = 1.44
  8.  
  9. redElementSharpness    = 0.25
  10. orangeElementSharpness = 0.50
  11. yellowElementSharpness = 0.75
  12. greenElementSharpness  = 1.00
  13. blueElementSharpness   = 1.06
  14. whiteElementSharpness  = 1.12
  15. purpleElementSharpness = 1.20
  16.  
  17. greatSwordFactor     = 4.8
  18. longSwordFactor      = 3.3
  19. swordAndShieldFactor = 1.4
  20. dualBladesFactor     = 1.4
  21. hammerFactor         = 5.2
  22. huntingHornFactor    = 5.2
  23. lanceFactor          = 2.3
  24. gunlanceFactor       = 2.3
  25. switchAxeFactor      = 5.4
  26. chargeBladeFactor    = 3.6
  27. insectGlaiveFactor   = 3.1
  28. lightBowgunFactor    = 1.3
  29. heavyBowgunFactor    = 1.5
  30. bowFactor            = 1.2
  31.  
  32. bowCharge1 = 0.4
  33. bowCharge2 = 1.0
  34. bowCharge3 = 1.5
  35. bowCharge4 = 1.7
  36.  
  37. closeDistance    = 1.0
  38. criticalDistance = 1.5
  39. farDistance      = 0.8
  40. veryFarDistance  = 0.5
  41.  
  42. powerCoating = 1.5
  43.  
  44. bowRapid1 = [ 0.12 ]
  45. bowRapid2 = [ 0.12, 0.04 ]
  46. bowRapid3 = [ 0.12, 0.04, 0.03 ]
  47. bowRapid4 = [ 0.12, 0.04, 0.03, 0.02 ]
  48. bowRapid5 = [ 0.12, 0.04, 0.03, 0.03 ]
  49.  
  50. gunRapidNormal2 = [ 0.12 * 0.80, 0.12 * 0.80, 0.12 * 0.80 ]
  51.  
  52. powerCharm = 6
  53. megaDemondrug = 7
  54. powerTalon = 9
  55. mightSeed = 10
  56. attackUpXL = 25
  57.  
  58.  
  59. affinity a b =
  60.   a * (1 + 0.25 * (b / 100))
  61.  
  62. cap a b c =
  63.   max a (min b c)
  64.  
  65. weapon factor raw aff buff motion =
  66.   let trueRaw  = (raw / factor) + buff
  67.       expected = affinity trueRaw $ cap (-100) aff 100
  68.   in
  69.     truncate (expected * motion)
  70.  
  71. melee factor raw sharpness aff buff motion =
  72.   weapon factor raw aff buff (sharpness * motion)
  73.  
  74. greatSword raw sharpness aff crit =
  75.   melee greatSwordFactor raw sharpness (if crit then aff + 100 else aff)
  76.  
  77. huntingHorn =
  78.   melee huntingHornFactor
  79.  
  80. switchAxe =
  81.   melee switchAxeFactor
  82.  
  83. bow raw aff buff coating charge a distance =
  84.   sum $ map (\x -> weapon bowFactor raw aff buff (x * coating * charge * distance)) a
  85.  
  86. lightBowgun raw aff buff shot distance =
  87.   sum $ map (\x -> weapon lightBowgunFactor raw aff buff (x * distance)) shot
  88.  
  89. heavyBowgun raw aff buff shot distance =
  90.   weapon heavyBowgunFactor raw aff buff (shot * distance)
  91.  
  92. calculate a =
  93.   print $ sum a
  94.  
  95.  
  96. calculateGreatSword sword buff =
  97.   do let unsheathe    = sword True buff 0.48
  98.      let charge3      = sword True buff (1.1 * 1.3)
  99.      let sideSlash    = sword False buff 0.36
  100.      let superCharge3 = sword False buff (1.15 * 1.3)
  101.      let finisher2    = sword False buff (0.66 * 1.2)
  102.      let finisher3    = sword False buff (1.1 * 1.3)
  103.  
  104.      calculate
  105.        [ unsheathe ]
  106.  
  107.      calculate
  108.        [ unsheathe, sideSlash ]
  109.  
  110.      calculate
  111.        [ unsheathe, finisher2 ]
  112.  
  113.      calculate
  114.        [ charge3 ]
  115.  
  116.      calculate
  117.        [ charge3, sideSlash ]
  118.  
  119.      calculate
  120.        [ charge3, sideSlash, superCharge3 ]
  121.  
  122.      calculate
  123.        [ charge3, sideSlash, superCharge3, finisher3 ]
  124.  
  125.  
  126. calculateHuntingHorn horn buff multiplier =
  127.   do calculate
  128.        [ horn buff (0.45 * multiplier) ]
  129.  
  130.      calculate
  131.        [ horn buff (0.15 * multiplier)
  132.        , horn buff (0.45 * multiplier) ]
  133.  
  134.  
  135. chedaPlus          = greatSword 960 whiteSharpness 10
  136. rogueSedition      = greatSword (1392 + 96) purpleSharpness 20
  137. greatSwordMaxRelic = greatSword 1728 purpleSharpness (-10)
  138.  
  139. shalyaPlus   = bow 300 20
  140. kamaSedition = bow 384 30
  141.  
  142. vayuSedition = lightBowgun (390 * 1.1) 20
  143.  
  144. furiaSedition = heavyBowgun (450 * 1.15 * 1.1) 10
  145.  
  146. baraqSedition = switchAxe 1566 purpleSharpness 10
  147.  
  148. vadyaMusePlus = huntingHorn 988 whiteSharpness 10
  149. maqamSedition = huntingHorn 1456 purpleSharpness 20
  150.  
  151.  
  152. buffs = powerCharm + powerTalon + megaDemondrug + mightSeed + attackUpXL
  153.  
  154. main =
  155.   do print "Cheda Blade+"
  156.      calculateGreatSword chedaPlus buffs
  157.  
  158.      print "Rogue Sedition"
  159.      calculateGreatSword rogueSedition buffs
  160.  
  161.      print "Max GS Relic"
  162.      calculateGreatSword greatSwordMaxRelic buffs
  163.  
  164.      print "Baraq Sedition"
  165.      calculate
  166.        [ baraqSedition buffs 0.30
  167.        , baraqSedition buffs 0.30 ]
  168.  
  169.      print "Shalya Bow+"
  170.      calculate
  171.        [ shalyaPlus buffs powerCoating bowCharge3 bowRapid4 criticalDistance ]
  172.  
  173.      print "Kama Sedition"
  174.      calculate
  175.        [ kamaSedition buffs powerCoating bowCharge3 bowRapid5 criticalDistance ]
  176.  
  177.      print "Vayu Sedition"
  178.      calculate
  179.        [ vayuSedition buffs gunRapidNormal2 criticalDistance
  180.        , vayuSedition buffs gunRapidNormal2 criticalDistance ]
  181.  
  182.      print "Furia Sedition"
  183.      calculate
  184.        [ furiaSedition buffs 0.12 criticalDistance
  185.        , furiaSedition buffs 0.12 criticalDistance
  186.        , furiaSedition buffs 0.12 criticalDistance
  187.        , furiaSedition buffs 0.12 criticalDistance ]
  188.  
  189.      print "Vadya Muse+"
  190.      calculateHuntingHorn vadyaMusePlus buffs 1.15
  191.  
  192.      print "Maqam Sedition"
  193.      calculateHuntingHorn maqamSedition buffs 1.15
Advertisement
Add Comment
Please, Sign In to add comment