Difference between revisions of "Module:Enchantment/data/doc"
Jump to navigation
Jump to search
(Added cats) |
m |
||
Line 1: | Line 1: | ||
<includeonly>[[Category:Module]][[Category:Data Module]]</includeonly> | <includeonly>[[Category:Module]][[Category:Data Module]]</includeonly> | ||
+ | JS code to copy into browser console to get JSON. | ||
+ | <syntaxhighlight lang="js"> | ||
+ | var enchants = Idlescape.data.enchantments | ||
+ | for (var id in enchants) { | ||
+ | enchants[id].desc = enchants[id].getTooltip(1, enchants[id].strengthPerLevel) | ||
+ | } | ||
+ | JSON.stringify(enchants) | ||
+ | </syntaxhighlight> |
Latest revision as of 05:37, 14 March 2025
JS code to copy into browser console to get JSON.
var enchants = Idlescape.data.enchantments
for (var id in enchants) {
enchants[id].desc = enchants[id].getTooltip(1, enchants[id].strengthPerLevel)
}
JSON.stringify(enchants)