farming-weight 0.2.12 → 0.3.0

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.
Files changed (89) hide show
  1. package/dist/classes/farmingaccessory.d.ts +15 -0
  2. package/dist/classes/farmingaccessory.js +42 -0
  3. package/dist/classes/farmingaccessory.js.map +1 -0
  4. package/dist/classes/farmingarmor.d.ts +6 -5
  5. package/dist/classes/farmingarmor.js +38 -36
  6. package/dist/classes/farmingarmor.js.map +1 -1
  7. package/dist/classes/farmingpet.d.ts +18 -3
  8. package/dist/classes/farmingpet.js +75 -9
  9. package/dist/classes/farmingpet.js.map +1 -1
  10. package/dist/classes/farmingtool.d.ts +13 -9
  11. package/dist/classes/farmingtool.js +51 -35
  12. package/dist/classes/farmingtool.js.map +1 -1
  13. package/dist/classes/item.d.ts +1 -1
  14. package/dist/classes/item.js +1 -2
  15. package/dist/classes/lotusgear.d.ts +5 -5
  16. package/dist/classes/lotusgear.js +19 -21
  17. package/dist/classes/lotusgear.js.map +1 -1
  18. package/dist/classes/player.d.ts +33 -9
  19. package/dist/classes/player.js +140 -28
  20. package/dist/classes/player.js.map +1 -1
  21. package/dist/classes/weightcalc.d.ts +1 -1
  22. package/dist/classes/weightcalc.js +27 -31
  23. package/dist/classes/weightcalc.js.map +1 -1
  24. package/dist/constants/accessories.d.ts +14 -0
  25. package/dist/constants/accessories.js +36 -0
  26. package/dist/constants/accessories.js.map +1 -0
  27. package/dist/constants/armor.js +125 -128
  28. package/dist/constants/armor.js.map +1 -1
  29. package/dist/constants/crops.d.ts +2 -0
  30. package/dist/constants/crops.js +31 -18
  31. package/dist/constants/crops.js.map +1 -1
  32. package/dist/constants/enchants.js +67 -70
  33. package/dist/constants/enchants.js.map +1 -1
  34. package/dist/constants/lotus.js +26 -29
  35. package/dist/constants/lotus.js.map +1 -1
  36. package/dist/constants/personalbests.d.ts +1 -1
  37. package/dist/constants/personalbests.js +17 -21
  38. package/dist/constants/personalbests.js.map +1 -1
  39. package/dist/constants/pests.d.ts +2 -2
  40. package/dist/constants/pests.js +10 -15
  41. package/dist/constants/pests.js.map +1 -1
  42. package/dist/constants/pets.d.ts +21 -3
  43. package/dist/constants/pets.js +37 -23
  44. package/dist/constants/pets.js.map +1 -1
  45. package/dist/constants/reforges.js +8 -11
  46. package/dist/constants/reforges.js.map +1 -1
  47. package/dist/constants/skills.js +2 -5
  48. package/dist/constants/skills.js.map +1 -1
  49. package/dist/constants/specialcrops.js +16 -19
  50. package/dist/constants/specialcrops.js.map +1 -1
  51. package/dist/constants/specific.d.ts +3 -0
  52. package/dist/constants/specific.js +5 -5
  53. package/dist/constants/specific.js.map +1 -1
  54. package/dist/constants/tools.d.ts +1 -0
  55. package/dist/constants/tools.js +122 -113
  56. package/dist/constants/tools.js.map +1 -1
  57. package/dist/constants/weight.js +15 -18
  58. package/dist/constants/weight.js.map +1 -1
  59. package/dist/crops/melon.d.ts +1 -1
  60. package/dist/crops/melon.js +3 -7
  61. package/dist/crops/melon.js.map +1 -1
  62. package/dist/crops/pumpkin.d.ts +1 -1
  63. package/dist/crops/pumpkin.js +3 -7
  64. package/dist/crops/pumpkin.js.map +1 -1
  65. package/dist/crops/special.d.ts +1 -1
  66. package/dist/crops/special.js +6 -10
  67. package/dist/crops/special.js.map +1 -1
  68. package/dist/index.d.ts +3 -0
  69. package/dist/index.js +25 -38
  70. package/dist/index.js.map +1 -1
  71. package/dist/util/itemstats.d.ts +3 -3
  72. package/dist/util/itemstats.js +48 -53
  73. package/dist/util/itemstats.js.map +1 -1
  74. package/dist/util/jacob.d.ts +2 -2
  75. package/dist/util/jacob.js +3 -8
  76. package/dist/util/jacob.js.map +1 -1
  77. package/dist/util/lore.d.ts +1 -1
  78. package/dist/util/lore.js +1 -5
  79. package/dist/util/lore.js.map +1 -1
  80. package/dist/util/names.d.ts +5 -4
  81. package/dist/util/names.js +102 -78
  82. package/dist/util/names.js.map +1 -1
  83. package/dist/util/ratecalc.d.ts +7 -7
  84. package/dist/util/ratecalc.js +87 -75
  85. package/dist/util/ratecalc.js.map +1 -1
  86. package/dist/util/skyblocktime.d.ts +1 -0
  87. package/dist/util/skyblocktime.js +8 -5
  88. package/dist/util/skyblocktime.js.map +1 -1
  89. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,39 +1,26 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./classes/farmingarmor.js"), exports);
18
- __exportStar(require("./classes/farmingtool.js"), exports);
19
- __exportStar(require("./classes/item.js"), exports);
20
- __exportStar(require("./classes/player.js"), exports);
21
- __exportStar(require("./classes/weightcalc.js"), exports);
22
- __exportStar(require("./constants/armor.js"), exports);
23
- __exportStar(require("./constants/crops.js"), exports);
24
- __exportStar(require("./constants/reforges.js"), exports);
25
- __exportStar(require("./constants/skills.js"), exports);
26
- __exportStar(require("./constants/specialcrops.js"), exports);
27
- __exportStar(require("./constants/tools.js"), exports);
28
- __exportStar(require("./constants/weight.js"), exports);
29
- __exportStar(require("./constants/pests.js"), exports);
30
- __exportStar(require("./constants/personalbests.js"), exports);
31
- __exportStar(require("./util/itemstats.js"), exports);
32
- __exportStar(require("./util/jacob.js"), exports);
33
- __exportStar(require("./util/names.js"), exports);
34
- __exportStar(require("./util/skyblocktime.js"), exports);
35
- __exportStar(require("./util/ratecalc.js"), exports);
36
- __exportStar(require("./crops/special.js"), exports);
37
- __exportStar(require("./crops/pumpkin.js"), exports);
38
- __exportStar(require("./crops/melon.js"), exports);
1
+ export * from './classes/farmingarmor.js';
2
+ export * from './classes/farmingtool.js';
3
+ export * from './classes/farmingpet.js';
4
+ export * from './classes/farmingaccessory.js';
5
+ export * from './classes/item.js';
6
+ export * from './classes/player.js';
7
+ export * from './classes/weightcalc.js';
8
+ export * from './classes/lotusgear.js';
9
+ export * from './constants/armor.js';
10
+ export * from './constants/crops.js';
11
+ export * from './constants/reforges.js';
12
+ export * from './constants/skills.js';
13
+ export * from './constants/specialcrops.js';
14
+ export * from './constants/tools.js';
15
+ export * from './constants/weight.js';
16
+ export * from './constants/pests.js';
17
+ export * from './constants/personalbests.js';
18
+ export * from './util/itemstats.js';
19
+ export * from './util/jacob.js';
20
+ export * from './util/names.js';
21
+ export * from './util/skyblocktime.js';
22
+ export * from './util/ratecalc.js';
23
+ export * from './crops/special.js';
24
+ export * from './crops/pumpkin.js';
25
+ export * from './crops/melon.js';
39
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,oDAAkC;AAClC,sDAAoC;AACpC,0DAAwC;AAExC,uDAAqC;AACrC,uDAAqC;AACrC,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,+DAA6C;AAE7C,sDAAoC;AACpC,kDAAgC;AAChC,kDAAgC;AAChC,yDAAuC;AACvC,qDAAmC;AAEnC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAE7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { Rarity } from '../constants/reforges';
2
- export declare function GetRarityFromLore(lore: string[]): Rarity;
3
- export declare function NextRarity(rarity: Rarity): Rarity;
4
- export declare function PreviousRarity(rarity: Rarity): Rarity;
2
+ export declare function getRarityFromLore(lore: string[]): Rarity;
3
+ export declare function nextRarity(rarity: Rarity): Rarity;
4
+ export declare function previousRarity(rarity: Rarity): Rarity;
@@ -1,73 +1,68 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreviousRarity = exports.NextRarity = exports.GetRarityFromLore = void 0;
4
- const reforges_1 = require("../constants/reforges");
5
- function GetRarityFromLore(lore) {
1
+ import { Rarity } from '../constants/reforges';
2
+ export function getRarityFromLore(lore) {
6
3
  const line = lore.at(-1);
7
- if (!line)
8
- return reforges_1.Rarity.Common;
4
+ return getRarity(line ?? '');
5
+ }
6
+ function getRarity(line) {
9
7
  switch (true) {
10
8
  case line.includes('COMMON'):
11
- return reforges_1.Rarity.Common;
9
+ return Rarity.Common;
12
10
  case line.includes('UNCOMMON'):
13
- return reforges_1.Rarity.Uncommon;
11
+ return Rarity.Uncommon;
14
12
  case line.includes('RARE'):
15
- return reforges_1.Rarity.Rare;
13
+ return Rarity.Rare;
16
14
  case line.includes('EPIC'):
17
- return reforges_1.Rarity.Epic;
15
+ return Rarity.Epic;
18
16
  case line.includes('LEGENDARY'):
19
- return reforges_1.Rarity.Legendary;
17
+ return Rarity.Legendary;
20
18
  case line.includes('MYTHIC'):
21
- return reforges_1.Rarity.Mythic;
19
+ return Rarity.Mythic;
22
20
  case line.includes('SPECIAL'):
23
- return reforges_1.Rarity.Special;
21
+ return Rarity.Special;
24
22
  case line.includes('DIVINE'):
25
- return reforges_1.Rarity.Divine;
23
+ return Rarity.Divine;
26
24
  default:
27
- return reforges_1.Rarity.Common;
25
+ return Rarity.Common;
28
26
  }
29
27
  }
30
- exports.GetRarityFromLore = GetRarityFromLore;
31
- function NextRarity(rarity) {
28
+ export function nextRarity(rarity) {
32
29
  switch (rarity) {
33
- case reforges_1.Rarity.Common:
34
- return reforges_1.Rarity.Uncommon;
35
- case reforges_1.Rarity.Uncommon:
36
- return reforges_1.Rarity.Rare;
37
- case reforges_1.Rarity.Rare:
38
- return reforges_1.Rarity.Epic;
39
- case reforges_1.Rarity.Epic:
40
- return reforges_1.Rarity.Legendary;
41
- case reforges_1.Rarity.Legendary:
42
- return reforges_1.Rarity.Mythic;
43
- case reforges_1.Rarity.Mythic:
44
- return reforges_1.Rarity.Special;
45
- case reforges_1.Rarity.Special:
46
- return reforges_1.Rarity.Divine;
47
- case reforges_1.Rarity.Divine:
48
- return reforges_1.Rarity.Divine;
30
+ case Rarity.Common:
31
+ return Rarity.Uncommon;
32
+ case Rarity.Uncommon:
33
+ return Rarity.Rare;
34
+ case Rarity.Rare:
35
+ return Rarity.Epic;
36
+ case Rarity.Epic:
37
+ return Rarity.Legendary;
38
+ case Rarity.Legendary:
39
+ return Rarity.Mythic;
40
+ case Rarity.Mythic:
41
+ return Rarity.Special;
42
+ case Rarity.Special:
43
+ return Rarity.Divine;
44
+ case Rarity.Divine:
45
+ return Rarity.Divine;
49
46
  }
50
47
  }
51
- exports.NextRarity = NextRarity;
52
- function PreviousRarity(rarity) {
48
+ export function previousRarity(rarity) {
53
49
  switch (rarity) {
54
- case reforges_1.Rarity.Common:
55
- return reforges_1.Rarity.Common;
56
- case reforges_1.Rarity.Uncommon:
57
- return reforges_1.Rarity.Common;
58
- case reforges_1.Rarity.Rare:
59
- return reforges_1.Rarity.Uncommon;
60
- case reforges_1.Rarity.Epic:
61
- return reforges_1.Rarity.Rare;
62
- case reforges_1.Rarity.Legendary:
63
- return reforges_1.Rarity.Epic;
64
- case reforges_1.Rarity.Mythic:
65
- return reforges_1.Rarity.Legendary;
66
- case reforges_1.Rarity.Special:
67
- return reforges_1.Rarity.Mythic;
68
- case reforges_1.Rarity.Divine:
69
- return reforges_1.Rarity.Special;
50
+ case Rarity.Common:
51
+ return Rarity.Common;
52
+ case Rarity.Uncommon:
53
+ return Rarity.Common;
54
+ case Rarity.Rare:
55
+ return Rarity.Uncommon;
56
+ case Rarity.Epic:
57
+ return Rarity.Rare;
58
+ case Rarity.Legendary:
59
+ return Rarity.Epic;
60
+ case Rarity.Mythic:
61
+ return Rarity.Legendary;
62
+ case Rarity.Special:
63
+ return Rarity.Mythic;
64
+ case Rarity.Divine:
65
+ return Rarity.Special;
70
66
  }
71
67
  }
72
- exports.PreviousRarity = PreviousRarity;
73
68
  //# sourceMappingURL=itemstats.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"itemstats.js","sourceRoot":"","sources":["../../src/util/itemstats.ts"],"names":[],"mappings":";;;AAAA,oDAA+C;AAE/C,SAAgB,iBAAiB,CAAC,IAAc;IAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACzB,IAAI,CAAC,IAAI;QAAE,OAAO,iBAAM,CAAC,MAAM,CAAC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AAC,MAAM,CAAC;QACtB,KAAK,MAAM,CAAC,MAAM;YACjB,OAAO,MAAM,CAAC,MAAM,CAAC;KACtB;AACF,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAc;IAC5C,QAAQ,MAAM,EAAE;QACf,KAAK,MAAM,CAAC,MAAM;YACjB,OAAO,MAAM,CAAC,MAAM,CAAC;QACtB,KAAK,MAAM,CAAC,QAAQ;YACnB,OAAO,MAAM,CAAC,MAAM,CAAC;QACtB,KAAK,MAAM,CAAC,IAAI;YACf,OAAO,MAAM,CAAC,QAAQ,CAAC;QACxB,KAAK,MAAM,CAAC,IAAI;YACf,OAAO,MAAM,CAAC,IAAI,CAAC;QACpB,KAAK,MAAM,CAAC,SAAS;YACpB,OAAO,MAAM,CAAC,IAAI,CAAC;QACpB,KAAK,MAAM,CAAC,MAAM;YACjB,OAAO,MAAM,CAAC,SAAS,CAAC;QACzB,KAAK,MAAM,CAAC,OAAO;YAClB,OAAO,MAAM,CAAC,MAAM,CAAC;QACtB,KAAK,MAAM,CAAC,MAAM;YACjB,OAAO,MAAM,CAAC,OAAO,CAAC;KACvB;AACF,CAAC"}
@@ -12,5 +12,5 @@ export interface JacobContest {
12
12
  participants?: number;
13
13
  medal?: JacobContestMedal;
14
14
  }
15
- export declare function FormatJacobContests(contests: RawJacobContest[]): JacobContest[];
16
- export declare function CalculateJacobContestMedal(contest: RawJacobContest): JacobContestMedal | undefined;
15
+ export declare function formatJacobContests(contests: RawJacobContest[]): JacobContest[];
16
+ export declare function calculateJacobContestMedal(contest: RawJacobContest): JacobContestMedal | undefined;
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalculateJacobContestMedal = exports.FormatJacobContests = void 0;
4
- function FormatJacobContests(contests) {
1
+ export function formatJacobContests(contests) {
5
2
  return contests.map((contest) => {
6
3
  return {
7
4
  collected: contest.collected,
8
5
  position: contest.claimed_position,
9
6
  participants: contest.claimed_participants,
10
- medal: CalculateJacobContestMedal(contest),
7
+ medal: calculateJacobContestMedal(contest),
11
8
  };
12
9
  });
13
10
  }
14
- exports.FormatJacobContests = FormatJacobContests;
15
- function CalculateJacobContestMedal(contest) {
11
+ export function calculateJacobContestMedal(contest) {
16
12
  if (contest.claimed_medal) {
17
13
  return contest.claimed_medal;
18
14
  }
@@ -28,5 +24,4 @@ function CalculateJacobContestMedal(contest) {
28
24
  return 'bronze';
29
25
  return undefined;
30
26
  }
31
- exports.CalculateJacobContestMedal = CalculateJacobContestMedal;
32
27
  //# sourceMappingURL=jacob.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jacob.js","sourceRoot":"","sources":["../../src/util/jacob.ts"],"names":[],"mappings":";;;AAiBA,SAAgB,mBAAmB,CAAC,QAA2B;IAC9D,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC/B,OAAO;YACN,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,QAAQ,EAAE,OAAO,CAAC,gBAAgB;YAClC,YAAY,EAAE,OAAO,CAAC,oBAAoB;YAC1C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;SAC1C,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AATD,kDASC;AAED,SAAgB,0BAA0B,CAAC,OAAwB;IAClE,IAAI,OAAO,CAAC,aAAa,EAAE;QAC1B,OAAO,OAAO,CAAC,aAAa,CAAC;KAC7B;IAED,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAEnF,IAAI,QAAQ,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,EAAE;QACzD,OAAO,SAAS,CAAC;KACjB;IAED,IAAI,QAAQ,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC;IACvD,IAAI,QAAQ,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC;IACzD,IAAI,QAAQ,IAAI,YAAY,GAAG,GAAG,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC;IAExD,OAAO,SAAS,CAAC;AAClB,CAAC;AAhBD,gEAgBC"}
1
+ {"version":3,"file":"jacob.js","sourceRoot":"","sources":["../../src/util/jacob.ts"],"names":[],"mappings":"AAiBA,MAAM,UAAU,mBAAmB,CAAC,QAA2B;IAC9D,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC/B,OAAO;YACN,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,QAAQ,EAAE,OAAO,CAAC,gBAAgB;YAClC,YAAY,EAAE,OAAO,CAAC,oBAAoB;YAC1C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;SAC1C,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAAwB;IAClE,IAAI,OAAO,CAAC,aAAa,EAAE;QAC1B,OAAO,OAAO,CAAC,aAAa,CAAC;KAC7B;IAED,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAEnF,IAAI,QAAQ,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,EAAE;QACzD,OAAO,SAAS,CAAC;KACjB;IAED,IAAI,QAAQ,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC;QAAE,OAAO,MAAM,CAAC;IACvD,IAAI,QAAQ,IAAI,YAAY,GAAG,IAAI,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC;IACzD,IAAI,QAAQ,IAAI,YAAY,GAAG,GAAG,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAC;IAExD,OAAO,SAAS,CAAC;AAClB,CAAC"}
@@ -1 +1 @@
1
- export declare function ExtractNumberFromLine(line: string, regex: RegExp): number | undefined;
1
+ export declare function extractNumberFromLine(line: string, regex: RegExp): number | undefined;
package/dist/util/lore.js CHANGED
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExtractNumberFromLine = void 0;
4
- function ExtractNumberFromLine(line, regex) {
1
+ export function extractNumberFromLine(line, regex) {
5
2
  const match = regex.exec(line);
6
3
  if (!match?.length || !match[1])
7
4
  return;
@@ -10,5 +7,4 @@ function ExtractNumberFromLine(line, regex) {
10
7
  return;
11
8
  return found;
12
9
  }
13
- exports.ExtractNumberFromLine = ExtractNumberFromLine;
14
10
  //# sourceMappingURL=lore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lore.js","sourceRoot":"","sources":["../../src/util/lore.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB,CAAC,IAAY,EAAE,KAAa;IAChE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO;IAExC,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO;IAEzB,OAAO,KAAK,CAAC;AACd,CAAC;AARD,sDAQC"}
1
+ {"version":3,"file":"lore.js","sourceRoot":"","sources":["../../src/util/lore.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,IAAY,EAAE,KAAa;IAChE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO;IAExC,MAAM,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO;IAEzB,OAAO,KAAK,CAAC;AACd,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { Crop } from '../constants/crops';
2
- export declare function CropDisplayName(crop: Crop): string;
3
- export declare function CropFromName(name: string): Crop | undefined;
4
- export declare function CropFromItemId(itemId: string): Crop | undefined;
5
- export declare function ItemIdFromCrop(crop: Crop): string;
2
+ export declare function getCropDisplayName(crop: Crop): string;
3
+ export declare function getCropFromName(name: string): Crop | undefined;
4
+ export declare function getCropFromItemId(itemId: string): Crop | undefined;
5
+ export declare function getCropFromContestKey(contestKey: string): Crop | undefined;
6
+ export declare function getItemIdFromCrop(crop: Crop): string;
@@ -1,92 +1,116 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemIdFromCrop = exports.CropFromItemId = exports.CropFromName = exports.CropDisplayName = void 0;
4
- const crops_1 = require("../constants/crops");
5
- function CropDisplayName(crop) {
6
- return CROP_DISPLAY_NAMES[crop] ?? 'Unknown Crop';
1
+ import { Crop } from '../constants/crops';
2
+ export function getCropDisplayName(crop) {
3
+ return cropDisplayNames[crop] ?? 'Unknown Crop';
7
4
  }
8
- exports.CropDisplayName = CropDisplayName;
9
- function CropFromName(name) {
10
- const fromDisplay = DISPLAY_NAMES_TO_CROP[name];
5
+ export function getCropFromName(name) {
6
+ const fromDisplay = displayNamesToCrop[name];
11
7
  if (fromDisplay)
12
8
  return fromDisplay;
13
- const fromShort = SHORT_NAMES_TO_CROP[name];
9
+ const fromShort = shortNamesToCrop[name];
14
10
  if (fromShort)
15
11
  return fromShort;
16
- return CropFromItemId(name);
12
+ const fromFull = fullNamesToCrop[name.toLowerCase().replace(/ /g, '')];
13
+ if (fromFull)
14
+ return fromFull;
15
+ return getCropFromItemId(name);
17
16
  }
18
- exports.CropFromName = CropFromName;
19
- function CropFromItemId(itemId) {
20
- return CROP_ITEM_IDS[itemId];
17
+ export function getCropFromItemId(itemId) {
18
+ return cropItemIds[itemId];
21
19
  }
22
- exports.CropFromItemId = CropFromItemId;
23
- function ItemIdFromCrop(crop) {
24
- return ITEM_IDS_TO_CROP[crop];
20
+ export function getCropFromContestKey(contestKey) {
21
+ const split = contestKey.split(':');
22
+ if (!split.length)
23
+ return undefined;
24
+ const crop = split.at(-1);
25
+ if (!crop)
26
+ return undefined;
27
+ if (crop === '3')
28
+ return Crop.CocoaBeans;
29
+ return cropItemIds[crop];
25
30
  }
26
- exports.ItemIdFromCrop = ItemIdFromCrop;
27
- const CROP_DISPLAY_NAMES = {
28
- [crops_1.Crop.Cactus]: 'Cactus',
29
- [crops_1.Crop.Carrot]: 'Carrot',
30
- [crops_1.Crop.CocoaBeans]: 'Cocoa Beans',
31
- [crops_1.Crop.Melon]: 'Melon',
32
- [crops_1.Crop.Mushroom]: 'Mushroom',
33
- [crops_1.Crop.NetherWart]: 'Nether Wart',
34
- [crops_1.Crop.Potato]: 'Potato',
35
- [crops_1.Crop.Pumpkin]: 'Pumpkin',
36
- [crops_1.Crop.SugarCane]: 'Sugar Cane',
37
- [crops_1.Crop.Wheat]: 'Wheat',
38
- [crops_1.Crop.Seeds]: 'Seeds',
31
+ export function getItemIdFromCrop(crop) {
32
+ return itemIdsToCrop[crop];
33
+ }
34
+ const cropDisplayNames = {
35
+ [Crop.Cactus]: 'Cactus',
36
+ [Crop.Carrot]: 'Carrot',
37
+ [Crop.CocoaBeans]: 'Cocoa Beans',
38
+ [Crop.Melon]: 'Melon',
39
+ [Crop.Mushroom]: 'Mushroom',
40
+ [Crop.NetherWart]: 'Nether Wart',
41
+ [Crop.Potato]: 'Potato',
42
+ [Crop.Pumpkin]: 'Pumpkin',
43
+ [Crop.SugarCane]: 'Sugar Cane',
44
+ [Crop.Wheat]: 'Wheat',
45
+ [Crop.Seeds]: 'Seeds',
46
+ };
47
+ const displayNamesToCrop = {
48
+ Cactus: Crop.Cactus,
49
+ Carrot: Crop.Carrot,
50
+ 'Cocoa Beans': Crop.CocoaBeans,
51
+ Melon: Crop.Melon,
52
+ Mushroom: Crop.Mushroom,
53
+ 'Nether Wart': Crop.NetherWart,
54
+ Potato: Crop.Potato,
55
+ Pumpkin: Crop.Pumpkin,
56
+ 'Sugar Cane': Crop.SugarCane,
57
+ Wheat: Crop.Wheat,
58
+ Seeds: Crop.Seeds,
39
59
  };
40
- const DISPLAY_NAMES_TO_CROP = {
41
- Cactus: crops_1.Crop.Cactus,
42
- Carrot: crops_1.Crop.Carrot,
43
- 'Cocoa Beans': crops_1.Crop.CocoaBeans,
44
- Melon: crops_1.Crop.Melon,
45
- Mushroom: crops_1.Crop.Mushroom,
46
- 'Nether Wart': crops_1.Crop.NetherWart,
47
- Potato: crops_1.Crop.Potato,
48
- Pumpkin: crops_1.Crop.Pumpkin,
49
- 'Sugar Cane': crops_1.Crop.SugarCane,
50
- Wheat: crops_1.Crop.Wheat,
51
- Seeds: crops_1.Crop.Seeds,
60
+ const shortNamesToCrop = {
61
+ cactus: Crop.Cactus,
62
+ carrot: Crop.Carrot,
63
+ cocoa: Crop.CocoaBeans,
64
+ melon: Crop.Melon,
65
+ mushroom: Crop.Mushroom,
66
+ wart: Crop.NetherWart,
67
+ potato: Crop.Potato,
68
+ pumpkin: Crop.Pumpkin,
69
+ cane: Crop.SugarCane,
70
+ wheat: Crop.Wheat,
71
+ seeds: Crop.Seeds,
52
72
  };
53
- const SHORT_NAMES_TO_CROP = {
54
- cactus: crops_1.Crop.Cactus,
55
- carrot: crops_1.Crop.Carrot,
56
- cocoa: crops_1.Crop.CocoaBeans,
57
- melon: crops_1.Crop.Melon,
58
- mushroom: crops_1.Crop.Mushroom,
59
- wart: crops_1.Crop.NetherWart,
60
- potato: crops_1.Crop.Potato,
61
- pumpkin: crops_1.Crop.Pumpkin,
62
- cane: crops_1.Crop.SugarCane,
63
- wheat: crops_1.Crop.Wheat,
64
- seeds: crops_1.Crop.Seeds,
73
+ const fullNamesToCrop = {
74
+ cactus: Crop.Cactus,
75
+ carrot: Crop.Carrot,
76
+ cocoabeans: Crop.CocoaBeans,
77
+ cocoabean: Crop.CocoaBeans,
78
+ melon: Crop.Melon,
79
+ mushroom: Crop.Mushroom,
80
+ netherwart: Crop.NetherWart,
81
+ netherwarts: Crop.NetherWart,
82
+ potato: Crop.Potato,
83
+ pumpkin: Crop.Pumpkin,
84
+ sugarcane: Crop.SugarCane,
85
+ wheat: Crop.Wheat,
86
+ seeds: Crop.Seeds,
65
87
  };
66
- const CROP_ITEM_IDS = {
67
- CACTUS: crops_1.Crop.Cactus,
68
- CARROT_ITEM: crops_1.Crop.Carrot,
69
- 'INK_SACK:3': crops_1.Crop.CocoaBeans,
70
- MELON: crops_1.Crop.Melon,
71
- BROWN_MUSHROOM: crops_1.Crop.Mushroom,
72
- NETHER_STALK: crops_1.Crop.NetherWart,
73
- POTATO_ITEM: crops_1.Crop.Potato,
74
- PUMPKIN: crops_1.Crop.Pumpkin,
75
- SUGAR_CANE: crops_1.Crop.SugarCane,
76
- WHEAT: crops_1.Crop.Wheat,
77
- SEEDS: crops_1.Crop.Seeds,
88
+ const cropItemIds = {
89
+ CACTUS: Crop.Cactus,
90
+ CARROT_ITEM: Crop.Carrot,
91
+ 'INK_SACK:3': Crop.CocoaBeans,
92
+ MELON: Crop.Melon,
93
+ BROWN_MUSHROOM: Crop.Mushroom,
94
+ RED_MUSHROOM: Crop.Mushroom,
95
+ MUSHROOM_COLLECTION: Crop.Mushroom,
96
+ NETHER_STALK: Crop.NetherWart,
97
+ POTATO_ITEM: Crop.Potato,
98
+ PUMPKIN: Crop.Pumpkin,
99
+ SUGAR_CANE: Crop.SugarCane,
100
+ WHEAT: Crop.Wheat,
101
+ SEEDS: Crop.Seeds,
78
102
  };
79
- const ITEM_IDS_TO_CROP = {
80
- [crops_1.Crop.Cactus]: 'CACTUS',
81
- [crops_1.Crop.Carrot]: 'CARROT_ITEM',
82
- [crops_1.Crop.CocoaBeans]: 'INK_SACK:3',
83
- [crops_1.Crop.Melon]: 'MELON',
84
- [crops_1.Crop.Mushroom]: 'BROWN_MUSHROOM',
85
- [crops_1.Crop.NetherWart]: 'NETHER_STALK',
86
- [crops_1.Crop.Potato]: 'POTATO_ITEM',
87
- [crops_1.Crop.Pumpkin]: 'PUMPKIN',
88
- [crops_1.Crop.SugarCane]: 'SUGAR_CANE',
89
- [crops_1.Crop.Wheat]: 'WHEAT',
90
- [crops_1.Crop.Seeds]: 'SEEDS',
103
+ const itemIdsToCrop = {
104
+ [Crop.Cactus]: 'CACTUS',
105
+ [Crop.Carrot]: 'CARROT_ITEM',
106
+ [Crop.CocoaBeans]: 'INK_SACK:3',
107
+ [Crop.Melon]: 'MELON',
108
+ [Crop.Mushroom]: 'BROWN_MUSHROOM',
109
+ [Crop.NetherWart]: 'NETHER_STALK',
110
+ [Crop.Potato]: 'POTATO_ITEM',
111
+ [Crop.Pumpkin]: 'PUMPKIN',
112
+ [Crop.SugarCane]: 'SUGAR_CANE',
113
+ [Crop.Wheat]: 'WHEAT',
114
+ [Crop.Seeds]: 'SEEDS',
91
115
  };
92
116
  //# sourceMappingURL=names.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"names.js","sourceRoot":"","sources":["../../src/util/names.ts"],"names":[],"mappings":";;;AAAA,8CAA0C;AAE1C,SAAgB,eAAe,CAAC,IAAU;IACzC,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC;AACnD,CAAC;AAFD,0CAEC;AAED,SAAgB,YAAY,CAAC,IAAY;IACxC,MAAM,WAAW,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,WAAW;QAAE,OAAO,WAAW,CAAC;IAEpC,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,SAAS;QAAE,OAAO,SAAS,CAAC;IAEhC,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC;AARD,oCAQC;AAED,SAAgB,cAAc,CAAC,MAAc;IAC5C,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAFD,wCAEC;AAED,SAAgB,cAAc,CAAC,IAAU;IACxC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAAC;AAC/B,CA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EAAE,IAAI,CAAC,SAAS;IAC1B,KAAK,EAAE,IAAI,CAAC,KAAK;IACjB,KAAK,EAAE,IAAI,CAAC,KAAK;CACjB,CAAC;AAEF,MAAM,aAAa,GAAyB;IAC3C,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ;IACvB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa;IAC5B,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,YAAY;IAC/B,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO;IACrB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,gBAAgB;IACjC,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,cAAc;IACjC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa;IAC5B,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,SAAS;IACzB,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY;IAC9B,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO;IACrB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,OAAO;CACrB,CAAC"}
@@ -3,7 +3,7 @@ interface CalculateDropsOptions {
3
3
  farmingFortune?: number;
4
4
  blocksBroken: number;
5
5
  }
6
- export declare function CalculateAverageDrops(options: CalculateDropsOptions): Record<Crop, number>;
6
+ export declare function calculateAverageDrops(options: CalculateDropsOptions): Record<Crop, number>;
7
7
  interface CalculateDetailedDropsOptions extends CalculateDropsOptions {
8
8
  bountiful: boolean;
9
9
  mooshroom: boolean;
@@ -15,7 +15,7 @@ interface DetailedDrops {
15
15
  coinSources: Record<string, number>;
16
16
  otherCollection: Record<string, number>;
17
17
  }
18
- export declare function CalculateDetailedAverageDrops(options: CalculateDetailedDropsOptions): Record<Crop, DetailedDrops>;
18
+ export declare function calculateDetailedAverageDrops(options: CalculateDetailedDropsOptions): Record<Crop, DetailedDrops>;
19
19
  interface CalculateExpectedDropsOptions extends CalculateDropsOptions {
20
20
  blocksBroken: number;
21
21
  crop: Crop;
@@ -24,8 +24,8 @@ interface CalculateCropDetailedDropsOptions extends CalculateDetailedDropsOption
24
24
  blocksBroken: number;
25
25
  crop: Crop;
26
26
  }
27
- export declare function CalculateExpectedDrops(options: CalculateExpectedDropsOptions): number;
28
- export declare function CalculateDetailedDrops(options: CalculateCropDetailedDropsOptions): DetailedDrops;
27
+ export declare function calculateExpectedDrops(options: CalculateExpectedDropsOptions): number;
28
+ export declare function calculateDetailedDrops(options: CalculateCropDetailedDropsOptions): DetailedDrops;
29
29
  export interface FortuneRequiredCalculatorOptions {
30
30
  blocksBroken: number;
31
31
  crop: Crop;
@@ -33,7 +33,7 @@ export interface FortuneRequiredCalculatorOptions {
33
33
  useDicers?: boolean;
34
34
  useMooshroom?: boolean;
35
35
  }
36
- export declare function GetFortuneRequiredForCollection(options: FortuneRequiredCalculatorOptions): number;
37
- export declare function GetNPCProfit(crop: Crop, amount: number): number;
38
- export declare function GetCropInfo(crop: Crop): CropInfo;
36
+ export declare function getFortuneRequiredForCollection(options: FortuneRequiredCalculatorOptions): number;
37
+ export declare function getNPCProfitFromCrops(crop: Crop, amount: number): number;
38
+ export declare function getCropInfo(crop: Crop): CropInfo;
39
39
  export {};