Widget:PNCStats: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m Possible temporary workaround |
||
| Line 24: | Line 24: | ||
var processedLvl = Math.floor(currentLvl/10)+1; | var processedLvl = Math.floor(currentLvl/10)+1; | ||
//Level is in a new dozen, but breakthrough is not requested, so use values for previous level | //Level is in a new dozen, but breakthrough is not requested, so use values for previous level | ||
if(currentLvl%10 == 0 | if (currentLvl % 10 == 0) if ($("#break > input").is(":checked") == false) { | ||
processedLvl -= 1; | processedLvl -= 1; | ||
} | } | ||
| Line 48: | Line 48: | ||
//Show the Breakthrough checkbox only at levels when breakthrough can be done | //Show the Breakthrough checkbox only at levels when breakthrough can be done | ||
if (currentLvl%10 == 0 | var breakDisplay = "none"; | ||
if (currentLvl%10 == 0) if (currentLvl < 70) { breakDisplay = ""; } | |||
$("#break").css('display', breakDisplay); | |||
} | } | ||
Latest revision as of 01:14, 29 July 2025
Did you remember to purge page cache before testing?
This widget fetches raw data from Module:Hero_star and Module:Hero_potential and handles stats calculation and table display.
Test case for Persicaria (index 1001):
| How to use | ||||||||
|---|---|---|---|---|---|---|---|---|
| Max HP | Crit Rate | |||||||
| Attack | Crit Damage | |||||||
| Hashrate | Physical Penetration | |||||||
| Physical Defense | Operand Penetration | |||||||
| Operand Defense | Dodge Rate | |||||||
| Attack Speed | Post-battle HP Regen | |||||||
