@wise-old-man/utils 2.0.0-beta.8 → 2.0.0-beta.9
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 +4 -3
- package/dist/index.js +84 -88
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1549,13 +1549,14 @@ interface SkillProperties {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
interface BossProperties {
|
|
1551
1551
|
name: string;
|
|
1552
|
-
|
|
1552
|
+
minimumValue: number;
|
|
1553
1553
|
isMembers: boolean;
|
|
1554
1554
|
type: MetricType;
|
|
1555
1555
|
measure: MetricMeasure;
|
|
1556
1556
|
}
|
|
1557
1557
|
interface ActivityProperties {
|
|
1558
1558
|
name: string;
|
|
1559
|
+
minimumValue: number;
|
|
1559
1560
|
type: MetricType;
|
|
1560
1561
|
measure: MetricMeasure;
|
|
1561
1562
|
}
|
|
@@ -1675,7 +1676,7 @@ declare function getMetricRankKey(metric: Metric): string;
|
|
|
1675
1676
|
declare function getMetricValueKey(metric: Metric): string;
|
|
1676
1677
|
declare function getMetricMeasure(metric: Metric): MetricMeasure;
|
|
1677
1678
|
declare function getMetricName(metric: Metric): string;
|
|
1678
|
-
declare function
|
|
1679
|
+
declare function getMinimumValue(metric: Metric): number;
|
|
1679
1680
|
declare function getParentEfficiencyMetric(metric: Metric): "ehp" | "ehb";
|
|
1680
1681
|
declare function parseMetricAbbreviation(abbreviation: string): Metric | null;
|
|
1681
1682
|
|
|
@@ -2128,4 +2129,4 @@ declare class WOMClient {
|
|
|
2128
2129
|
constructor(options?: WOMClientOptions);
|
|
2129
2130
|
}
|
|
2130
2131
|
|
|
2131
|
-
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityValue, AlgorithmCache, AssertPlayerTypeResponse, BOSSES, Bonus, BonusType, Boss, BossDelta, BossMetaConfig, BossValue, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionDetails, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, ComputedMetric, ComputedMetricDelta, ComputedMetricValue, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaLeaderboardEntry, DeltaLeaderboardFilter, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithm, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, EfficiencyMap, ExperienceMap, ExtendedAchievement, F2P_BOSSES, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupDetails, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, KillcountMap, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MapOf, MeasuredDeltaProgress, MemberInput, MembershipWithGroup, MembershipWithPlayer, Metric, MetricMeasure, MetricProps, MetricType, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerResolvable, PlayerType, PlayerTypeProps, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillValue, Snapshot, SnapshotDataSource, SnapshotFragment, Team, TempleGroupData, TimeRangeFilter, Top5ProgressResult, WOMClient, findCountry, findCountryByCode, findCountryByName, findGroupRole, findMetric, findPeriod, findPlayerBuild, findPlayerType, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMetricMeasure, getMetricName, getMetricRankKey, getMetricValueKey,
|
|
2132
|
+
export { ACTIVITIES, Achievement, AchievementDefinition, AchievementProgress, AchievementTemplate, Activity, ActivityDelta, ActivityValue, AlgorithmCache, AssertPlayerTypeResponse, BOSSES, Bonus, BonusType, Boss, BossDelta, BossMetaConfig, BossValue, CAPPED_MAX_TOTAL_XP, CMLGroupData, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, ChangeMemberRolePayload, CompetitionDetails, CompetitionListItem, CompetitionStatus, CompetitionStatusProps, CompetitionType, CompetitionTypeProps, CompetitionWithParticipations, CompetitionsSearchFilter, ComputedMetric, ComputedMetricDelta, ComputedMetricValue, Country, CountryDetails, CountryProps, CreateCompetitionPayload, CreateCompetitionResponse, CreateGroupPayload, CreateGroupResponse, DeltaLeaderboardEntry, DeltaLeaderboardFilter, EditCompetitionPayload, EditGroupPayload, EfficiencyAlgorithm, EfficiencyAlgorithmType, EfficiencyAlgorithmTypeUnion, EfficiencyLeaderboardsFilter, EfficiencyMap, ExperienceMap, ExtendedAchievement, F2P_BOSSES, FormattedSnapshot, GROUP_ROLES, GenericCountMessageResponse, GenericMessageResponse, GetGroupGainsFilter, GetPlayerGainsResponse, GroupDetails, GroupHiscoresActivityItem, GroupHiscoresBossItem, GroupHiscoresComputedMetricItem, GroupHiscoresEntry, GroupHiscoresSkillItem, GroupListItem, GroupMemberFragment, GroupRecordsFilter, GroupRole, GroupRoleProps, GroupStatistics, KillcountMap, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, MapOf, MeasuredDeltaProgress, MemberInput, MembershipWithGroup, MembershipWithPlayer, Metric, MetricMeasure, MetricProps, MetricType, MigrationDataSource, NameChangeDetails, NameChangeStatus, NameChangesSearchFilter, PERIODS, PLAYER_BUILDS, PLAYER_TYPES, PRIVELEGED_GROUP_ROLES, ParticipationWithCompetition, ParticipationWithPlayer, ParticipationWithPlayerAndProgress, Period, PeriodProps, Player, PlayerBuild, PlayerBuildProps, PlayerDeltasArray, PlayerDeltasMap, PlayerDetails, PlayerRecordsFilter, PlayerResolvable, PlayerType, PlayerTypeProps, REAL_SKILLS, Record, RecordLeaderboardEntry, RecordLeaderboardFilter, SKILLS, SKILL_EXP_AT_99, Skill, SkillDelta, SkillMetaConfig, SkillValue, Snapshot, SnapshotDataSource, SnapshotFragment, Team, TempleGroupData, TimeRangeFilter, Top5ProgressResult, WOMClient, findCountry, findCountryByCode, findCountryByName, findGroupRole, findMetric, findPeriod, findPlayerBuild, findPlayerType, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMetricMeasure, getMetricName, getMetricRankKey, getMetricValueKey, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isCompetitionStatus, isCompetitionType, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerType, isSkill, padNumber, parseMetricAbbreviation, parsePeriodExpression, round };
|
package/dist/index.js
CHANGED
|
@@ -1785,87 +1785,83 @@ exports.MetricMeasure = void 0;
|
|
|
1785
1785
|
MetricMeasure["VALUE"] = "value";
|
|
1786
1786
|
})(exports.MetricMeasure || (exports.MetricMeasure = {}));
|
|
1787
1787
|
const SkillProps = lodash.mapValues({
|
|
1788
|
-
[Skill.OVERALL]: { name: 'Overall'
|
|
1789
|
-
[Skill.ATTACK]: { name: 'Attack', isCombat: true
|
|
1790
|
-
[Skill.DEFENCE]: { name: 'Defence', isCombat: true
|
|
1791
|
-
[Skill.STRENGTH]: { name: 'Strength', isCombat: true
|
|
1792
|
-
[Skill.HITPOINTS]: { name: 'Hitpoints', isCombat: true
|
|
1793
|
-
[Skill.RANGED]: { name: 'Ranged', isCombat: true
|
|
1794
|
-
[Skill.PRAYER]: { name: 'Prayer', isCombat: true
|
|
1795
|
-
[Skill.MAGIC]: { name: 'Magic', isCombat: true
|
|
1796
|
-
[Skill.COOKING]: { name: 'Cooking'
|
|
1797
|
-
[Skill.WOODCUTTING]: { name: 'Woodcutting'
|
|
1798
|
-
[Skill.FLETCHING]: { name: 'Fletching',
|
|
1799
|
-
[Skill.FISHING]: { name: 'Fishing'
|
|
1800
|
-
[Skill.FIREMAKING]: { name: 'Firemaking'
|
|
1801
|
-
[Skill.CRAFTING]: { name: 'Crafting'
|
|
1802
|
-
[Skill.SMITHING]: { name: 'Smithing'
|
|
1803
|
-
[Skill.MINING]: { name: 'Mining'
|
|
1804
|
-
[Skill.HERBLORE]: { name: 'Herblore',
|
|
1805
|
-
[Skill.AGILITY]: { name: 'Agility',
|
|
1806
|
-
[Skill.THIEVING]: { name: 'Thieving',
|
|
1807
|
-
[Skill.SLAYER]: { name: 'Slayer',
|
|
1808
|
-
[Skill.FARMING]: { name: 'Farming',
|
|
1809
|
-
[Skill.RUNECRAFTING]: { name: 'Runecrafting'
|
|
1810
|
-
[Skill.HUNTER]: { name: 'Hunter',
|
|
1811
|
-
[Skill.CONSTRUCTION]: { name: 'Construction',
|
|
1812
|
-
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE })));
|
|
1788
|
+
[Skill.OVERALL]: { name: 'Overall' },
|
|
1789
|
+
[Skill.ATTACK]: { name: 'Attack', isCombat: true },
|
|
1790
|
+
[Skill.DEFENCE]: { name: 'Defence', isCombat: true },
|
|
1791
|
+
[Skill.STRENGTH]: { name: 'Strength', isCombat: true },
|
|
1792
|
+
[Skill.HITPOINTS]: { name: 'Hitpoints', isCombat: true },
|
|
1793
|
+
[Skill.RANGED]: { name: 'Ranged', isCombat: true },
|
|
1794
|
+
[Skill.PRAYER]: { name: 'Prayer', isCombat: true },
|
|
1795
|
+
[Skill.MAGIC]: { name: 'Magic', isCombat: true },
|
|
1796
|
+
[Skill.COOKING]: { name: 'Cooking' },
|
|
1797
|
+
[Skill.WOODCUTTING]: { name: 'Woodcutting' },
|
|
1798
|
+
[Skill.FLETCHING]: { name: 'Fletching', isMembers: true },
|
|
1799
|
+
[Skill.FISHING]: { name: 'Fishing' },
|
|
1800
|
+
[Skill.FIREMAKING]: { name: 'Firemaking' },
|
|
1801
|
+
[Skill.CRAFTING]: { name: 'Crafting' },
|
|
1802
|
+
[Skill.SMITHING]: { name: 'Smithing' },
|
|
1803
|
+
[Skill.MINING]: { name: 'Mining' },
|
|
1804
|
+
[Skill.HERBLORE]: { name: 'Herblore', isMembers: true },
|
|
1805
|
+
[Skill.AGILITY]: { name: 'Agility', isMembers: true },
|
|
1806
|
+
[Skill.THIEVING]: { name: 'Thieving', isMembers: true },
|
|
1807
|
+
[Skill.SLAYER]: { name: 'Slayer', isMembers: true },
|
|
1808
|
+
[Skill.FARMING]: { name: 'Farming', isMembers: true },
|
|
1809
|
+
[Skill.RUNECRAFTING]: { name: 'Runecrafting' },
|
|
1810
|
+
[Skill.HUNTER]: { name: 'Hunter', isMembers: true },
|
|
1811
|
+
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
|
|
1812
|
+
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
|
|
1813
1813
|
const BossProps = lodash.mapValues({
|
|
1814
|
-
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire'
|
|
1815
|
-
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra'
|
|
1816
|
-
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests'
|
|
1817
|
-
[Boss.BRYOPHYTA]: { name: 'Bryophyta',
|
|
1818
|
-
[Boss.CALLISTO]: { name: 'Callisto'
|
|
1819
|
-
[Boss.CERBERUS]: { name: 'Cerberus'
|
|
1820
|
-
[Boss.CHAMBERS_OF_XERIC]: { name: 'Chambers Of Xeric'
|
|
1821
|
-
[Boss.CHAMBERS_OF_XERIC_CM]: { name: 'Chambers Of Xeric (CM)',
|
|
1822
|
-
[Boss.CHAOS_ELEMENTAL]: { name: 'Chaos Elemental'
|
|
1823
|
-
[Boss.CHAOS_FANATIC]: { name: 'Chaos Fanatic'
|
|
1824
|
-
[Boss.COMMANDER_ZILYANA]: { name: 'Commander Zilyana'
|
|
1825
|
-
[Boss.CORPOREAL_BEAST]: { name: 'Corporeal Beast'
|
|
1826
|
-
[Boss.CRAZY_ARCHAEOLOGIST]: { name: 'Crazy Archaeologist'
|
|
1827
|
-
[Boss.DAGANNOTH_PRIME]: { name: 'Dagannoth Prime'
|
|
1828
|
-
[Boss.DAGANNOTH_REX]: { name: 'Dagannoth Rex'
|
|
1829
|
-
[Boss.DAGANNOTH_SUPREME]: { name: 'Dagannoth Supreme'
|
|
1830
|
-
[Boss.DERANGED_ARCHAEOLOGIST]: { name: 'Deranged Archaeologist'
|
|
1831
|
-
[Boss.GENERAL_GRAARDOR]: { name: 'General Graardor'
|
|
1832
|
-
[Boss.GIANT_MOLE]: { name: 'Giant Mole'
|
|
1833
|
-
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians'
|
|
1834
|
-
[Boss.HESPORI]: { name: 'Hespori',
|
|
1835
|
-
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen'
|
|
1836
|
-
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon'
|
|
1837
|
-
[Boss.KRAKEN]: { name: 'Kraken'
|
|
1838
|
-
[Boss.KREEARRA]: { name: "Kree'Arra"
|
|
1839
|
-
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth"
|
|
1840
|
-
[Boss.MIMIC]: { name: 'Mimic',
|
|
1841
|
-
[Boss.NEX]: { name: 'Nex'
|
|
1842
|
-
[Boss.NIGHTMARE]: { name: 'Nightmare'
|
|
1843
|
-
[Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare"
|
|
1844
|
-
[Boss.OBOR]: { name: 'Obor',
|
|
1845
|
-
[Boss.SARACHNIS]: { name: 'Sarachnis'
|
|
1846
|
-
[Boss.SKOTIZO]: { name: 'Skotizo',
|
|
1847
|
-
[Boss.SCORPIA]: { name: 'Scorpia'
|
|
1848
|
-
[Boss.TEMPOROSS]: { name: 'Tempoross'
|
|
1849
|
-
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet'
|
|
1850
|
-
[Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet',
|
|
1851
|
-
[Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood'
|
|
1852
|
-
[Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)'
|
|
1853
|
-
[Boss.THERMONUCLEAR_SMOKE_DEVIL]: { name: 'Thermonuclear Smoke Devil'
|
|
1854
|
-
[Boss.TOMBS_OF_AMASCUT]: { name: 'Tombs of Amascut'
|
|
1855
|
-
[Boss.TOMBS_OF_AMASCUT_EXPERT]: {
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
},
|
|
1860
|
-
[Boss.
|
|
1861
|
-
[Boss.
|
|
1862
|
-
[Boss.
|
|
1863
|
-
[Boss.
|
|
1864
|
-
|
|
1865
|
-
[Boss.WINTERTODT]: { name: 'Wintertodt', minimumKc: 50, isMembers: true },
|
|
1866
|
-
[Boss.ZALCANO]: { name: 'Zalcano', minimumKc: 50, isMembers: true },
|
|
1867
|
-
[Boss.ZULRAH]: { name: 'Zulrah', minimumKc: 50, isMembers: true }
|
|
1868
|
-
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS })));
|
|
1814
|
+
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1815
|
+
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1816
|
+
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1817
|
+
[Boss.BRYOPHYTA]: { name: 'Bryophyta', minimumValue: 5, isMembers: false },
|
|
1818
|
+
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
1819
|
+
[Boss.CERBERUS]: { name: 'Cerberus' },
|
|
1820
|
+
[Boss.CHAMBERS_OF_XERIC]: { name: 'Chambers Of Xeric' },
|
|
1821
|
+
[Boss.CHAMBERS_OF_XERIC_CM]: { name: 'Chambers Of Xeric (CM)', minimumValue: 5 },
|
|
1822
|
+
[Boss.CHAOS_ELEMENTAL]: { name: 'Chaos Elemental' },
|
|
1823
|
+
[Boss.CHAOS_FANATIC]: { name: 'Chaos Fanatic' },
|
|
1824
|
+
[Boss.COMMANDER_ZILYANA]: { name: 'Commander Zilyana' },
|
|
1825
|
+
[Boss.CORPOREAL_BEAST]: { name: 'Corporeal Beast' },
|
|
1826
|
+
[Boss.CRAZY_ARCHAEOLOGIST]: { name: 'Crazy Archaeologist' },
|
|
1827
|
+
[Boss.DAGANNOTH_PRIME]: { name: 'Dagannoth Prime' },
|
|
1828
|
+
[Boss.DAGANNOTH_REX]: { name: 'Dagannoth Rex' },
|
|
1829
|
+
[Boss.DAGANNOTH_SUPREME]: { name: 'Dagannoth Supreme' },
|
|
1830
|
+
[Boss.DERANGED_ARCHAEOLOGIST]: { name: 'Deranged Archaeologist' },
|
|
1831
|
+
[Boss.GENERAL_GRAARDOR]: { name: 'General Graardor' },
|
|
1832
|
+
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1833
|
+
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1834
|
+
[Boss.HESPORI]: { name: 'Hespori', minimumValue: 5 },
|
|
1835
|
+
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1836
|
+
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1837
|
+
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1838
|
+
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1839
|
+
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1840
|
+
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1841
|
+
[Boss.NEX]: { name: 'Nex' },
|
|
1842
|
+
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
1843
|
+
[Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare" },
|
|
1844
|
+
[Boss.OBOR]: { name: 'Obor', minimumValue: 5, isMembers: false },
|
|
1845
|
+
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
1846
|
+
[Boss.SKOTIZO]: { name: 'Skotizo', minimumValue: 5 },
|
|
1847
|
+
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1848
|
+
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1849
|
+
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
1850
|
+
[Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet', minimumValue: 5 },
|
|
1851
|
+
[Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
|
|
1852
|
+
[Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
|
|
1853
|
+
[Boss.THERMONUCLEAR_SMOKE_DEVIL]: { name: 'Thermonuclear Smoke Devil' },
|
|
1854
|
+
[Boss.TOMBS_OF_AMASCUT]: { name: 'Tombs of Amascut' },
|
|
1855
|
+
[Boss.TOMBS_OF_AMASCUT_EXPERT]: { name: 'Tombs of Amascut (Expert Mode)' },
|
|
1856
|
+
[Boss.TZKAL_ZUK]: { name: 'TzKal-Zuk', minimumValue: 1 },
|
|
1857
|
+
[Boss.TZTOK_JAD]: { name: 'TzTok-Jad', minimumValue: 5 },
|
|
1858
|
+
[Boss.VENENATIS]: { name: 'Venenatis' },
|
|
1859
|
+
[Boss.VETION]: { name: "Vet'ion" },
|
|
1860
|
+
[Boss.VORKATH]: { name: 'Vorkath' },
|
|
1861
|
+
[Boss.WINTERTODT]: { name: 'Wintertodt' },
|
|
1862
|
+
[Boss.ZALCANO]: { name: 'Zalcano' },
|
|
1863
|
+
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
1864
|
+
}, 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 : 50 })));
|
|
1869
1865
|
const ActivityProps = lodash.mapValues({
|
|
1870
1866
|
[Activity.LEAGUE_POINTS]: { name: 'League Points' },
|
|
1871
1867
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)' },
|
|
@@ -1877,11 +1873,11 @@ const ActivityProps = lodash.mapValues({
|
|
|
1877
1873
|
[Activity.CLUE_SCROLLS_HARD]: { name: 'Clue Scrolls (Hard)' },
|
|
1878
1874
|
[Activity.CLUE_SCROLLS_ELITE]: { name: 'Clue Scrolls (Elite)' },
|
|
1879
1875
|
[Activity.CLUE_SCROLLS_MASTER]: { name: 'Clue Scrolls (Master)' },
|
|
1880
|
-
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing' },
|
|
1881
|
-
[Activity.PVP_ARENA]: { name: 'PvP Arena' },
|
|
1882
|
-
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal' },
|
|
1883
|
-
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift' }
|
|
1884
|
-
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE })));
|
|
1876
|
+
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1877
|
+
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1878
|
+
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1879
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1880
|
+
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1885
1881
|
const ComputedMetricProps = lodash.mapValues({
|
|
1886
1882
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
|
1887
1883
|
[ComputedMetric.EHB]: { name: 'EHB' }
|
|
@@ -1930,8 +1926,8 @@ function getMetricMeasure(metric) {
|
|
|
1930
1926
|
function getMetricName(metric) {
|
|
1931
1927
|
return MetricProps[metric].name;
|
|
1932
1928
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return isBoss(metric) ? MetricProps[metric].
|
|
1929
|
+
function getMinimumValue(metric) {
|
|
1930
|
+
return isBoss(metric) || isActivity(metric) ? MetricProps[metric].minimumValue : 1;
|
|
1935
1931
|
}
|
|
1936
1932
|
function getParentEfficiencyMetric(metric) {
|
|
1937
1933
|
if (isBoss(metric))
|
|
@@ -2561,7 +2557,7 @@ exports.getMetricMeasure = getMetricMeasure;
|
|
|
2561
2557
|
exports.getMetricName = getMetricName;
|
|
2562
2558
|
exports.getMetricRankKey = getMetricRankKey;
|
|
2563
2559
|
exports.getMetricValueKey = getMetricValueKey;
|
|
2564
|
-
exports.
|
|
2560
|
+
exports.getMinimumValue = getMinimumValue;
|
|
2565
2561
|
exports.getParentEfficiencyMetric = getParentEfficiencyMetric;
|
|
2566
2562
|
exports.isActivity = isActivity;
|
|
2567
2563
|
exports.isBoss = isBoss;
|