@wise-old-man/utils 2.1.10 → 2.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2130,7 +2130,7 @@ declare class EfficiencyClient extends BaseAPIClient {
|
|
|
2130
2130
|
* Fetches the top EHP (Efficient Hours Played) rates.
|
|
2131
2131
|
* @returns A list of skilling methods and their bonus exp ratios.
|
|
2132
2132
|
*/
|
|
2133
|
-
getEHPRates(algorithmType: EfficiencyAlgorithmTypeUnion): Promise<SkillMetaConfig>;
|
|
2133
|
+
getEHPRates(algorithmType: EfficiencyAlgorithmTypeUnion): Promise<SkillMetaConfig[]>;
|
|
2134
2134
|
/**
|
|
2135
2135
|
* Fetches the top EHB (Efficient Hours Bossed) rates.
|
|
2136
2136
|
* @returns A list of bosses and their respective "per-hour" kill rates.
|
package/dist/index.js
CHANGED
|
@@ -1873,7 +1873,7 @@ const BossProps = lodash.mapValues({
|
|
|
1873
1873
|
[Boss.WINTERTODT]: { name: 'Wintertodt' },
|
|
1874
1874
|
[Boss.ZALCANO]: { name: 'Zalcano' },
|
|
1875
1875
|
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
1876
|
-
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue :
|
|
1876
|
+
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue : 15 })));
|
|
1877
1877
|
const ActivityProps = lodash.mapValues({
|
|
1878
1878
|
[Activity.LEAGUE_POINTS]: { name: 'League Points' },
|
|
1879
1879
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)' },
|
|
@@ -2381,7 +2381,10 @@ class EfficiencyClient extends BaseAPIClient {
|
|
|
2381
2381
|
* @returns A list of skilling methods and their bonus exp ratios.
|
|
2382
2382
|
*/
|
|
2383
2383
|
getEHPRates(algorithmType) {
|
|
2384
|
-
return this.getRequest('/efficiency/rates', {
|
|
2384
|
+
return this.getRequest('/efficiency/rates', {
|
|
2385
|
+
metric: Metric.EHP,
|
|
2386
|
+
type: algorithmType
|
|
2387
|
+
});
|
|
2385
2388
|
}
|
|
2386
2389
|
/**
|
|
2387
2390
|
* Fetches the top EHB (Efficient Hours Bossed) rates.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.12",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|