poe-mod-descriptions
v1.4.5
Published
This module provides descriptions for mods
Downloads
23
Readme
poe-mod-descriptions
This module provides descriptions for mods
Usage
import * as poe from 'poe-mod-descriptions';
var mods = [mod1, mod2, mod3];
poe.getDescriptions(mods);
Returns an object containing the text string of the stats and a boolean indicating whether it is a master craft. Pass a falsy value as a stat's value to get back a value range (min-max) for a stat's description.
Requirements
The data must be of this structure
"mod" : {
...
...
...
"stats": [
"stat1": {
"id": ...
"value": ...
"valueMin": ...
"valueMax": ...
"key": ...
...
},
"stat2": {
...
}
]
}