User:Ritsu/test2: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
71.92% to raw defense:
Max HP = FLOOR((340 + 60 * L) * (9.994 + 0.006 * H²) * L * F)
{{#invoke:Test|main
*'''FLOOR''' = This function rounds the input number down to the closest integer.
|to_raw_def
*'''L''' = The enemy's level. Enemies from [[Elrianode]] onwards have level 99, and 100 from [[Plegas's Gaze]] onwards.
|defense=71.92
*'''H''' = A hidden HP base depending on the enemy
|level=99
*'''F''' = {{tt|Game mode multiplier|A function that takes two parameters: the stat and the game mode.<br/>0 - Normal, 1 - Henir, 2 - Secret Dungeon, 3 - Secret Dungeon (Luto Mode)<hr/>Uses the following:<br/>
}}
*If Secret Dungeon: 0.9 * (1.8 * ((H - 70) / 36)^(2.5) + 0.7)<br/>
 
*If Luto: 0.9 * (1 * ((H - 70) / 36)^(3.5) + 1.5)<br/>
10641 to defense percentage:
*Otherwise equals to 1.}}
{{#invoke:Test|main
|to_percent_def
|defense=10641
|level=99
}}
 
raw defense of the multiplier 3:
{{#invoke:Test|main
|get_def
|defense=3
|level=99
|to_percent=true
}}
 
percentage defense of the multiplier 3:
{{#invoke:Test|main
|get_def
|defense=3
|level=99
}}

Revision as of 18:13, 25 September 2022

Max HP = FLOOR((340 + 60 * L) * (9.994 + 0.006 * H²) * L * F)
  • FLOOR = This function rounds the input number down to the closest integer.
  • L = The enemy's level. Enemies from Elrianode onwards have level 99, and 100 from Plegas's Gaze onwards.
  • H = A hidden HP base depending on the enemy
  • F =
    A function that takes two parameters: the stat and the game mode.
    0 - Normal, 1 - Henir, 2 - Secret Dungeon, 3 - Secret Dungeon (Luto Mode)
    Uses the following:
  • If Secret Dungeon: 0.9 * (1.8 * ((H - 70) / 36)^(2.5) + 0.7)
  • If Luto: 0.9 * (1 * ((H - 70) / 36)^(3.5) + 1.5)
  • Otherwise equals to 1.
    Game mode multiplier