@wise-old-man/utils 2.0.0-beta.8 → 2.0.1
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 +6 -4
- package/dist/index.js +88 -90
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -646,6 +646,7 @@ declare const PlayerType: {
|
|
|
646
646
|
readonly IRONMAN: "ironman";
|
|
647
647
|
readonly HARDCORE: "hardcore";
|
|
648
648
|
readonly ULTIMATE: "ultimate";
|
|
649
|
+
readonly FRESH_START: "fresh_start";
|
|
649
650
|
};
|
|
650
651
|
declare type PlayerType = typeof PlayerType[keyof typeof PlayerType];
|
|
651
652
|
declare const PlayerBuild: {
|
|
@@ -1549,13 +1550,14 @@ interface SkillProperties {
|
|
|
1549
1550
|
}
|
|
1550
1551
|
interface BossProperties {
|
|
1551
1552
|
name: string;
|
|
1552
|
-
|
|
1553
|
+
minimumValue: number;
|
|
1553
1554
|
isMembers: boolean;
|
|
1554
1555
|
type: MetricType;
|
|
1555
1556
|
measure: MetricMeasure;
|
|
1556
1557
|
}
|
|
1557
1558
|
interface ActivityProperties {
|
|
1558
1559
|
name: string;
|
|
1560
|
+
minimumValue: number;
|
|
1559
1561
|
type: MetricType;
|
|
1560
1562
|
measure: MetricMeasure;
|
|
1561
1563
|
}
|
|
@@ -1675,7 +1677,7 @@ declare function getMetricRankKey(metric: Metric): string;
|
|
|
1675
1677
|
declare function getMetricValueKey(metric: Metric): string;
|
|
1676
1678
|
declare function getMetricMeasure(metric: Metric): MetricMeasure;
|
|
1677
1679
|
declare function getMetricName(metric: Metric): string;
|
|
1678
|
-
declare function
|
|
1680
|
+
declare function getMinimumValue(metric: Metric): number;
|
|
1679
1681
|
declare function getParentEfficiencyMetric(metric: Metric): "ehp" | "ehb";
|
|
1680
1682
|
declare function parseMetricAbbreviation(abbreviation: string): Metric | null;
|
|
1681
1683
|
|
|
@@ -1698,7 +1700,7 @@ declare const PlayerTypeProps: MapOf<PlayerType, {
|
|
|
1698
1700
|
declare const PlayerBuildProps: MapOf<PlayerBuild, {
|
|
1699
1701
|
name: string;
|
|
1700
1702
|
}>;
|
|
1701
|
-
declare const PLAYER_TYPES: ("unknown" | "regular" | "ironman" | "hardcore" | "ultimate")[];
|
|
1703
|
+
declare const PLAYER_TYPES: ("unknown" | "regular" | "ironman" | "hardcore" | "ultimate" | "fresh_start")[];
|
|
1702
1704
|
declare const PLAYER_BUILDS: ("main" | "f2p" | "lvl3" | "zerker" | "def1" | "hp10")[];
|
|
1703
1705
|
declare function isPlayerType(typeString: string): typeString is PlayerType;
|
|
1704
1706
|
declare function isPlayerBuild(buildString: string): buildString is PlayerBuild;
|
|
@@ -2128,4 +2130,4 @@ declare class WOMClient {
|
|
|
2128
2130
|
constructor(options?: WOMClientOptions);
|
|
2129
2131
|
}
|
|
2130
2132
|
|
|
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,
|
|
2133
|
+
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
|
@@ -586,7 +586,8 @@ const PlayerType = {
|
|
|
586
586
|
REGULAR: 'regular',
|
|
587
587
|
IRONMAN: 'ironman',
|
|
588
588
|
HARDCORE: 'hardcore',
|
|
589
|
-
ULTIMATE: 'ultimate'
|
|
589
|
+
ULTIMATE: 'ultimate',
|
|
590
|
+
FRESH_START: 'fresh_start'
|
|
590
591
|
};
|
|
591
592
|
const PlayerBuild = {
|
|
592
593
|
MAIN: 'main',
|
|
@@ -1785,87 +1786,83 @@ exports.MetricMeasure = void 0;
|
|
|
1785
1786
|
MetricMeasure["VALUE"] = "value";
|
|
1786
1787
|
})(exports.MetricMeasure || (exports.MetricMeasure = {}));
|
|
1787
1788
|
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 })));
|
|
1789
|
+
[Skill.OVERALL]: { name: 'Overall' },
|
|
1790
|
+
[Skill.ATTACK]: { name: 'Attack', isCombat: true },
|
|
1791
|
+
[Skill.DEFENCE]: { name: 'Defence', isCombat: true },
|
|
1792
|
+
[Skill.STRENGTH]: { name: 'Strength', isCombat: true },
|
|
1793
|
+
[Skill.HITPOINTS]: { name: 'Hitpoints', isCombat: true },
|
|
1794
|
+
[Skill.RANGED]: { name: 'Ranged', isCombat: true },
|
|
1795
|
+
[Skill.PRAYER]: { name: 'Prayer', isCombat: true },
|
|
1796
|
+
[Skill.MAGIC]: { name: 'Magic', isCombat: true },
|
|
1797
|
+
[Skill.COOKING]: { name: 'Cooking' },
|
|
1798
|
+
[Skill.WOODCUTTING]: { name: 'Woodcutting' },
|
|
1799
|
+
[Skill.FLETCHING]: { name: 'Fletching', isMembers: true },
|
|
1800
|
+
[Skill.FISHING]: { name: 'Fishing' },
|
|
1801
|
+
[Skill.FIREMAKING]: { name: 'Firemaking' },
|
|
1802
|
+
[Skill.CRAFTING]: { name: 'Crafting' },
|
|
1803
|
+
[Skill.SMITHING]: { name: 'Smithing' },
|
|
1804
|
+
[Skill.MINING]: { name: 'Mining' },
|
|
1805
|
+
[Skill.HERBLORE]: { name: 'Herblore', isMembers: true },
|
|
1806
|
+
[Skill.AGILITY]: { name: 'Agility', isMembers: true },
|
|
1807
|
+
[Skill.THIEVING]: { name: 'Thieving', isMembers: true },
|
|
1808
|
+
[Skill.SLAYER]: { name: 'Slayer', isMembers: true },
|
|
1809
|
+
[Skill.FARMING]: { name: 'Farming', isMembers: true },
|
|
1810
|
+
[Skill.RUNECRAFTING]: { name: 'Runecrafting' },
|
|
1811
|
+
[Skill.HUNTER]: { name: 'Hunter', isMembers: true },
|
|
1812
|
+
[Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
|
|
1813
|
+
}, 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
1814
|
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 })));
|
|
1815
|
+
[Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
|
|
1816
|
+
[Boss.ALCHEMICAL_HYDRA]: { name: 'Alchemical Hydra' },
|
|
1817
|
+
[Boss.BARROWS_CHESTS]: { name: 'Barrows Chests' },
|
|
1818
|
+
[Boss.BRYOPHYTA]: { name: 'Bryophyta', minimumValue: 5, isMembers: false },
|
|
1819
|
+
[Boss.CALLISTO]: { name: 'Callisto' },
|
|
1820
|
+
[Boss.CERBERUS]: { name: 'Cerberus' },
|
|
1821
|
+
[Boss.CHAMBERS_OF_XERIC]: { name: 'Chambers Of Xeric' },
|
|
1822
|
+
[Boss.CHAMBERS_OF_XERIC_CM]: { name: 'Chambers Of Xeric (CM)', minimumValue: 5 },
|
|
1823
|
+
[Boss.CHAOS_ELEMENTAL]: { name: 'Chaos Elemental' },
|
|
1824
|
+
[Boss.CHAOS_FANATIC]: { name: 'Chaos Fanatic' },
|
|
1825
|
+
[Boss.COMMANDER_ZILYANA]: { name: 'Commander Zilyana' },
|
|
1826
|
+
[Boss.CORPOREAL_BEAST]: { name: 'Corporeal Beast' },
|
|
1827
|
+
[Boss.CRAZY_ARCHAEOLOGIST]: { name: 'Crazy Archaeologist' },
|
|
1828
|
+
[Boss.DAGANNOTH_PRIME]: { name: 'Dagannoth Prime' },
|
|
1829
|
+
[Boss.DAGANNOTH_REX]: { name: 'Dagannoth Rex' },
|
|
1830
|
+
[Boss.DAGANNOTH_SUPREME]: { name: 'Dagannoth Supreme' },
|
|
1831
|
+
[Boss.DERANGED_ARCHAEOLOGIST]: { name: 'Deranged Archaeologist' },
|
|
1832
|
+
[Boss.GENERAL_GRAARDOR]: { name: 'General Graardor' },
|
|
1833
|
+
[Boss.GIANT_MOLE]: { name: 'Giant Mole' },
|
|
1834
|
+
[Boss.GROTESQUE_GUARDIANS]: { name: 'Grotesque Guardians' },
|
|
1835
|
+
[Boss.HESPORI]: { name: 'Hespori', minimumValue: 5 },
|
|
1836
|
+
[Boss.KALPHITE_QUEEN]: { name: 'Kalphite Queen' },
|
|
1837
|
+
[Boss.KING_BLACK_DRAGON]: { name: 'King Black Dragon' },
|
|
1838
|
+
[Boss.KRAKEN]: { name: 'Kraken' },
|
|
1839
|
+
[Boss.KREEARRA]: { name: "Kree'Arra" },
|
|
1840
|
+
[Boss.KRIL_TSUTSAROTH]: { name: "K'ril Tsutsaroth" },
|
|
1841
|
+
[Boss.MIMIC]: { name: 'Mimic', minimumValue: 1 },
|
|
1842
|
+
[Boss.NEX]: { name: 'Nex' },
|
|
1843
|
+
[Boss.NIGHTMARE]: { name: 'Nightmare' },
|
|
1844
|
+
[Boss.PHOSANIS_NIGHTMARE]: { name: "Phosani's Nightmare" },
|
|
1845
|
+
[Boss.OBOR]: { name: 'Obor', minimumValue: 5, isMembers: false },
|
|
1846
|
+
[Boss.SARACHNIS]: { name: 'Sarachnis' },
|
|
1847
|
+
[Boss.SKOTIZO]: { name: 'Skotizo', minimumValue: 5 },
|
|
1848
|
+
[Boss.SCORPIA]: { name: 'Scorpia' },
|
|
1849
|
+
[Boss.TEMPOROSS]: { name: 'Tempoross' },
|
|
1850
|
+
[Boss.THE_GAUNTLET]: { name: 'The Gauntlet' },
|
|
1851
|
+
[Boss.THE_CORRUPTED_GAUNTLET]: { name: 'The Corrupted Gauntlet', minimumValue: 5 },
|
|
1852
|
+
[Boss.THEATRE_OF_BLOOD]: { name: 'Theatre Of Blood' },
|
|
1853
|
+
[Boss.THEATRE_OF_BLOOD_HARD_MODE]: { name: 'Theatre Of Blood (HM)' },
|
|
1854
|
+
[Boss.THERMONUCLEAR_SMOKE_DEVIL]: { name: 'Thermonuclear Smoke Devil' },
|
|
1855
|
+
[Boss.TOMBS_OF_AMASCUT]: { name: 'Tombs of Amascut' },
|
|
1856
|
+
[Boss.TOMBS_OF_AMASCUT_EXPERT]: { name: 'Tombs of Amascut (Expert Mode)' },
|
|
1857
|
+
[Boss.TZKAL_ZUK]: { name: 'TzKal-Zuk', minimumValue: 1 },
|
|
1858
|
+
[Boss.TZTOK_JAD]: { name: 'TzTok-Jad', minimumValue: 5 },
|
|
1859
|
+
[Boss.VENENATIS]: { name: 'Venenatis' },
|
|
1860
|
+
[Boss.VETION]: { name: "Vet'ion" },
|
|
1861
|
+
[Boss.VORKATH]: { name: 'Vorkath' },
|
|
1862
|
+
[Boss.WINTERTODT]: { name: 'Wintertodt' },
|
|
1863
|
+
[Boss.ZALCANO]: { name: 'Zalcano' },
|
|
1864
|
+
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
1865
|
+
}, 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
1866
|
const ActivityProps = lodash.mapValues({
|
|
1870
1867
|
[Activity.LEAGUE_POINTS]: { name: 'League Points' },
|
|
1871
1868
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)' },
|
|
@@ -1877,11 +1874,11 @@ const ActivityProps = lodash.mapValues({
|
|
|
1877
1874
|
[Activity.CLUE_SCROLLS_HARD]: { name: 'Clue Scrolls (Hard)' },
|
|
1878
1875
|
[Activity.CLUE_SCROLLS_ELITE]: { name: 'Clue Scrolls (Elite)' },
|
|
1879
1876
|
[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 })));
|
|
1877
|
+
[Activity.LAST_MAN_STANDING]: { name: 'Last Man Standing', minimumValue: 500 },
|
|
1878
|
+
[Activity.PVP_ARENA]: { name: 'PvP Arena', minimumValue: 2525 },
|
|
1879
|
+
[Activity.SOUL_WARS_ZEAL]: { name: 'Soul Wars Zeal', minimumValue: 200 },
|
|
1880
|
+
[Activity.GUARDIANS_OF_THE_RIFT]: { name: 'Guardians of the Rift', minimumValue: 2 }
|
|
1881
|
+
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.ACTIVITY, measure: exports.MetricMeasure.SCORE, minimumValue: 'minimumValue' in props ? props.minimumValue : 1 })));
|
|
1885
1882
|
const ComputedMetricProps = lodash.mapValues({
|
|
1886
1883
|
[ComputedMetric.EHP]: { name: 'EHP' },
|
|
1887
1884
|
[ComputedMetric.EHB]: { name: 'EHB' }
|
|
@@ -1930,8 +1927,8 @@ function getMetricMeasure(metric) {
|
|
|
1930
1927
|
function getMetricName(metric) {
|
|
1931
1928
|
return MetricProps[metric].name;
|
|
1932
1929
|
}
|
|
1933
|
-
function
|
|
1934
|
-
return isBoss(metric) ? MetricProps[metric].
|
|
1930
|
+
function getMinimumValue(metric) {
|
|
1931
|
+
return isBoss(metric) || isActivity(metric) ? MetricProps[metric].minimumValue : 1;
|
|
1935
1932
|
}
|
|
1936
1933
|
function getParentEfficiencyMetric(metric) {
|
|
1937
1934
|
if (isBoss(metric))
|
|
@@ -2236,7 +2233,8 @@ const PlayerTypeProps = {
|
|
|
2236
2233
|
[PlayerType.REGULAR]: { name: 'Regular' },
|
|
2237
2234
|
[PlayerType.IRONMAN]: { name: 'Ironman' },
|
|
2238
2235
|
[PlayerType.HARDCORE]: { name: 'Hardcore' },
|
|
2239
|
-
[PlayerType.ULTIMATE]: { name: 'Ultimate' }
|
|
2236
|
+
[PlayerType.ULTIMATE]: { name: 'Ultimate' },
|
|
2237
|
+
[PlayerType.FRESH_START]: { name: 'Fresh Start' }
|
|
2240
2238
|
};
|
|
2241
2239
|
const PlayerBuildProps = {
|
|
2242
2240
|
[PlayerBuild.MAIN]: { name: 'Main' },
|
|
@@ -2561,7 +2559,7 @@ exports.getMetricMeasure = getMetricMeasure;
|
|
|
2561
2559
|
exports.getMetricName = getMetricName;
|
|
2562
2560
|
exports.getMetricRankKey = getMetricRankKey;
|
|
2563
2561
|
exports.getMetricValueKey = getMetricValueKey;
|
|
2564
|
-
exports.
|
|
2562
|
+
exports.getMinimumValue = getMinimumValue;
|
|
2565
2563
|
exports.getParentEfficiencyMetric = getParentEfficiencyMetric;
|
|
2566
2564
|
exports.isActivity = isActivity;
|
|
2567
2565
|
exports.isBoss = isBoss;
|