Thurler

GST damage and accuracy calculations to validate formulas

Sep 6th, 2023 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. Values calculated based on the JP wiki's formulas (simplified to not account for terrain or penetration weapons):
  2. ACC factor = (ACC / 2) + weapon acc modifier + 150
  3. EVA factor = (EVA / 2) + mobility
  4. ATK factor = (Melee/Ranged + Power) * weapon power
  5. DEF factor = (Defense + Power) * armor-factor
  6.  
  7. Hit rate = ((ACC-factor - EVA-factor) * size-mod) + distance-mod + tile-bonus + danmaku-area + focus-bonus + skills
  8. size-mod is 1 for M, 0.9 for S, 0.8 for SS, 1.1 for L, 1.2 for LL, 1.3 for LLL
  9. distance-mod is 0 for 5 distance, +3 for each tile closer, -3 for each tile further
  10. tile-bonus is the evasion bonus/penalty from the tile terrain on the map
  11. danmaku-area is the stacked danmaku penalty
  12. focus-bonus is 10 if attacker is a focused playable character, 0 otherwise
  13. skills all stack additively at the end
  14.  
  15. Damage = ((ATK-factor - DEF-factor) * size-mod * distance-mod * mult-mods * sum-add-mods / 200) + final-mods
  16. size-mod is the inverse of the accuracy one: 1 for M, 1.1 for S, 1.2 for SS, 0.9 for L, 0.8 for LL, 0.7 for LLL
  17. distance-mod is the same as accuracy one, but it multiplies instead of adding: 1 instead of 0, 1.03 instead of 3, 0.97 instead of -3
  18. mult-mods is the multiplication result of all other modifiers that stack multiplicatively from skills, etc
  19. sum-add-mods is the sum result of all other modifiers that stack additively from skills, etc
  20. final-mods are all modifiers that are applied to the end calculation like barriers, etc
  21.  
  22. Idk why but the game attempts to smooth out the linearity of the armor stat with some hidden formula. JP wiki gives this approximation:
  23. Armor-Factor = (sqrt(armor) + 151) * (sqrt(armor) - 2) / 5
  24. Here's the curve plotted against the linear function: https://files.catbox.moe/h1idei.png
  25.  
  26. All battles assume no crits, terrain is air and no skills unless otherwise specified
  27. Values shown are for Normal / Normal+ / Hard / Lunatic
  28.  
  29. Stats (Reimu) (has grazing):
  30. - Power 100
  31. - Mobility 120
  32. - Armor 800
  33. - Size M
  34. - Terrain A
  35. - Ranged 152
  36. - Defense 86
  37. - Accuracy 190
  38. - Evasion 187
  39. - Weapon 1900 | +10
  40. * ACC factor: 255
  41. * EVA factor: 213.5
  42. * ATK factor: 478800
  43. * DEF factor: 175300
  44.  
  45. Stats (Keine):
  46. - Power 100
  47. - Mobility 70
  48. - Armor 1200
  49. - Size L
  50. - Terrain A
  51. - Melee 146
  52. - Defense 114
  53. - Accuracy 180
  54. - Evasion 128
  55. - Weapon 2100 | +10
  56. * ACC factor: 250
  57. * EVA factor: 134
  58. * ATK factor: 516600
  59. * DEF factor: 259347
  60.  
  61. Stats (Red Fairy):
  62. - Power 95 / 100 / 105 / 110
  63. - Mobility 75 / 85 / 95 / 110
  64. - Armor 680 / 800 / 920 / 1100
  65. - Size S
  66. - Terrain A
  67. - Ranged 138
  68. - Defense 87
  69. - Accuracy 157
  70. - Evasion 146
  71. - Weapon 1550 / 1750 / 1950 / 2250 | +15 / +15 / +15 / +40
  72. * ACC factor: 243.5 / 243.5 / 243.5 / 268.5
  73. * EVA factor: 148 / 158 / 168 / 183
  74. * ATK factor: 361150 / 416500 / 473850 / 558000
  75. * DEF factor: 155189 / 176242 / 197276 / 226147
  76.  
  77. Stats (Blue Fairy):
  78. - Power 95 / 100 / 105 / 110
  79. - Mobility 70 / 80 / 90 / 105
  80. - Armor 670 / 750 / 830 / 950
  81. - Size S
  82. - Terrain A
  83. - Ranged 135
  84. - Defense 87
  85. - Accuracy 152
  86. - Evasion 143
  87. - Weapon 1600 / 1800 / 2000 / 2300 | +15 / +15 / +15 / +40
  88. * ACC factor: 241 / 241 / 241 / 266
  89. * EVA factor: 141.5 / 151.5 / 161.5 / 176.5
  90. * ATK factor: 368000 / 423000 / 480000 / 563500
  91. * DEF factor: 153782 / 169367 / 185113 / 206475
  92.  
  93. Stats (Red Fairy that is close to Keine):
  94. - Power 95 / 100 / 105 / 110
  95. - Mobility 75 / 85 / 100 / 115
  96. - Armor 680 / 800 / 980 / 1160
  97. - Size S
  98. - Terrain A
  99. - Ranged 138
  100. - Defense 87
  101. - Accuracy 157
  102. - Evasion 146
  103. - Weapon 1550 / 1750 / 2050 / 2350 | +15 / +15 / +15 / +45
  104. * ACC factor: 243.5 / 243.5 / 243.5 / 273.5
  105. * EVA factor: 148 / 158 / 173 / 188
  106. * ATK factor: 361150 / 416500 / 498150 / 582800
  107. * DEF factor: 155189 / 176242 / 205150 / 233751
  108.  
  109. > Reimu vs Red Fairy (Distance = 5, Reimu focusing)
  110.  
  111. Expected hit rate for Reimu: 100 / 97 / 88 / 75
  112. Actual hit rate for Reimu: 100 / 98 / 87 / 73
  113.  
  114. Expected hit rate for Fairy: 30 / 30 / 30 / 55
  115. Actual hit rate for Fairy: 7 / 32 / 47 / 87
  116.  
  117. Expected damage for Reimu: 1780 / 1664 / 1548 / 1390
  118. Actual damage for Reimu: 1784 / 1664 / 1545 / 1383
  119.  
  120. Expected damage for Fairy: 836 / 1085 / 1343 / 1722
  121. Actual damage for Fairy: 828 / 1089 / 1356 / 1746
  122.  
  123. > Reimu vs Blue Fairy (Distance = 4, Reimu focusing)
  124.  
  125. Expected hit rate for Reimu: 100 / 100 / 97 / 83
  126. Actual hit rate for Reimu: 100 / 100 / 97 / 81
  127.  
  128. Expected hit rate for Fairy: 30 / 30 / 30 / 55
  129. Actual hit rate for Fairy: 7 / 32 / 47 / 87
  130.  
  131. Expected damage for Reimu: 1841 / 1753 / 1664 / 1543
  132. Actual damage for Reimu: 1846 / 1754 / 1662 / 1538
  133.  
  134. Expected damage for Fairy: 893 / 1148 / 1412 / 1799
  135. Actual damage for Fairy: 885 / 1152 / 1426 / 1826
  136.  
  137. > Keine vs Red Fairy that is close to Keine (Distance = 3, Keine focusing)
  138.  
  139. Expected hit rate for Keine: 100 / 99 / 85 / 71
  140. Actual hit rate for Keine: 100 / 99 / 83 / 69
  141.  
  142. Expected hit rate for Fairy: 100 / 100 / 100 / 100
  143. Actual hit rate for Fairy: 97 / 100 / 100 / 100
  144.  
  145. Expected damage for Keine: 2299 / 2164 / 1981 / 1799
  146. Actual damage for Keine: 2304 / 2164 / 1975 / 1790
  147.  
  148. Expected damage for Fairy: 432 / 666 / 1013 / 1371
  149. Actual damage for Fairy: 426 / 662 / 1018 / 1385
  150.  
  151. Conclusions:
  152. 1 - Damage formula works almost perfectly for all difficulties
  153. 2 - Accuracy formula works sorta well for all difficulties, will be off by 1 or 2
  154. 3 - Difficulties have accuracy bonus/penalties for enemies:
  155. Normal: -25
  156. Normal+: 0
  157. Hard: +15
  158. Lunatic: +30
  159.  
Add Comment
Please, Sign In to add comment