farming-weight 0.1.3 → 0.2.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.
- package/README.md +23 -2
- package/dist/classes/farmingarmor.d.ts +2 -0
- package/dist/classes/farmingarmor.js +7 -0
- package/dist/classes/farmingarmor.js.map +1 -0
- package/dist/classes/farmingtool.d.ts +27 -0
- package/dist/classes/farmingtool.js +101 -0
- package/dist/classes/farmingtool.js.map +1 -0
- package/dist/classes/item.d.ts +14 -0
- package/dist/classes/item.js +3 -0
- package/dist/classes/item.js.map +1 -0
- package/dist/classes/player.d.ts +30 -0
- package/{lib → dist/classes}/player.js +1 -0
- package/dist/classes/player.js.map +1 -0
- package/dist/classes/weightcalc.d.ts +50 -0
- package/{lib/weight → dist/classes}/weightcalc.js +5 -0
- package/dist/classes/weightcalc.js.map +1 -0
- package/dist/constants/armor.d.ts +27 -0
- package/dist/constants/armor.js +403 -0
- package/dist/constants/armor.js.map +1 -0
- package/{lib → dist}/constants/crops.d.ts +1 -0
- package/{lib → dist}/constants/crops.js +6 -0
- package/dist/constants/crops.js.map +1 -0
- package/{lib → dist}/constants/items.js +1 -0
- package/dist/constants/items.js.map +1 -0
- package/dist/constants/reforges.d.ts +59 -0
- package/dist/constants/reforges.js +449 -0
- package/dist/constants/reforges.js.map +1 -0
- package/dist/constants/skills.d.ts +13 -0
- package/dist/constants/skills.js +18 -0
- package/dist/constants/skills.js.map +1 -0
- package/{lib → dist}/constants/specialcrops.js +1 -0
- package/dist/constants/specialcrops.js.map +1 -0
- package/dist/constants/tools.d.ts +19 -0
- package/dist/constants/tools.js +263 -0
- package/dist/constants/tools.js.map +1 -0
- package/{lib → dist}/constants/weight.js +1 -0
- package/dist/constants/weight.js.map +1 -0
- package/{lib → dist}/crops/melon.js +1 -0
- package/dist/crops/melon.js.map +1 -0
- package/{lib → dist}/crops/pumpkin.js +1 -0
- package/dist/crops/pumpkin.js.map +1 -0
- package/{lib → dist}/crops/special.js +3 -1
- package/dist/crops/special.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/player.js +30 -0
- package/dist/player.js.map +1 -0
- package/{lib → dist}/ratecalc.js +14 -16
- package/dist/ratecalc.js.map +1 -0
- package/dist/tool.d.ts +1 -0
- package/{lib → dist}/tool.js +2 -0
- package/dist/tool.js.map +1 -0
- package/dist/util/itemstats.d.ts +4 -0
- package/dist/util/itemstats.js +73 -0
- package/dist/util/itemstats.js.map +1 -0
- package/{lib → dist}/util/jacob.js +1 -0
- package/dist/util/jacob.js.map +1 -0
- package/{lib → dist}/util/names.js +1 -0
- package/dist/util/names.js.map +1 -0
- package/{lib → dist}/weight/weightcalc.d.ts +1 -0
- package/dist/weight/weightcalc.js +168 -0
- package/dist/weight/weightcalc.js.map +1 -0
- package/package.json +4 -4
- package/lib/index.d.ts +0 -6
- package/lib/index.js +0 -20
- package/lib/tool.d.ts +0 -0
- /package/{lib → dist}/constants/items.d.ts +0 -0
- /package/{lib → dist}/constants/specialcrops.d.ts +0 -0
- /package/{lib → dist}/constants/weight.d.ts +0 -0
- /package/{lib → dist}/crops/melon.d.ts +0 -0
- /package/{lib → dist}/crops/pumpkin.d.ts +0 -0
- /package/{lib → dist}/crops/special.d.ts +0 -0
- /package/{lib → dist}/player.d.ts +0 -0
- /package/{lib → dist}/ratecalc.d.ts +0 -0
- /package/{lib → dist}/util/jacob.d.ts +0 -0
- /package/{lib → dist}/util/names.d.ts +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFarmingWeightCalculator = void 0;
|
|
4
|
+
const crops_1 = require("../constants/crops");
|
|
5
|
+
const weight_1 = require("../constants/weight");
|
|
6
|
+
function CreateFarmingWeightCalculator(info) {
|
|
7
|
+
return new FarmingWeight(info);
|
|
8
|
+
}
|
|
9
|
+
exports.CreateFarmingWeightCalculator = CreateFarmingWeightCalculator;
|
|
10
|
+
const crops = [
|
|
11
|
+
crops_1.Crop.Cactus,
|
|
12
|
+
crops_1.Crop.Carrot,
|
|
13
|
+
crops_1.Crop.CocoaBeans,
|
|
14
|
+
crops_1.Crop.Melon,
|
|
15
|
+
crops_1.Crop.Mushroom,
|
|
16
|
+
crops_1.Crop.NetherWart,
|
|
17
|
+
crops_1.Crop.Potato,
|
|
18
|
+
crops_1.Crop.Pumpkin,
|
|
19
|
+
crops_1.Crop.SugarCane,
|
|
20
|
+
crops_1.Crop.Wheat,
|
|
21
|
+
];
|
|
22
|
+
class FarmingWeight {
|
|
23
|
+
constructor(info) {
|
|
24
|
+
this.collection = {};
|
|
25
|
+
this.levelCapUpgrade = info?.levelCapUpgrade ?? 0;
|
|
26
|
+
this.anitaBonusFarmingFortuneLevel = info?.anitaBonusFarmingFortuneLevel ?? 0;
|
|
27
|
+
this.farmingXp = info?.farmingXp ?? 0;
|
|
28
|
+
this.earnedGoldMedals = 0;
|
|
29
|
+
this.tier12MinionCount = 0;
|
|
30
|
+
this.setCropsFromCollections(info?.collection ?? {});
|
|
31
|
+
this.addMinions(info?.minions ?? []);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Expectes a dictionary of collections and amounts with the default Hypixel SkyBlock IDs
|
|
35
|
+
* @param {Record<string, number>} collections
|
|
36
|
+
* @returns {FarmingWeight}
|
|
37
|
+
*/
|
|
38
|
+
setCropsFromCollections(collections) {
|
|
39
|
+
for (const crop of crops) {
|
|
40
|
+
this.collection[crop] = collections[crop] ?? 0;
|
|
41
|
+
}
|
|
42
|
+
this.getCropWeights();
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
setCrop = (crop, collection) => {
|
|
46
|
+
this.collection[crop] = collection;
|
|
47
|
+
this.getCropWeights();
|
|
48
|
+
return this;
|
|
49
|
+
};
|
|
50
|
+
setLevelCap = (levelCap) => {
|
|
51
|
+
this.levelCapUpgrade = levelCap;
|
|
52
|
+
return this;
|
|
53
|
+
};
|
|
54
|
+
setFarmingXp = (farmingXp) => {
|
|
55
|
+
this.farmingXp = farmingXp;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
setAnitaBonusLevel = (anitaBonusFarmingFortuneLevel) => {
|
|
59
|
+
this.anitaBonusFarmingFortuneLevel = anitaBonusFarmingFortuneLevel;
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
addMinions = (minions) => {
|
|
63
|
+
for (const minion of minions) {
|
|
64
|
+
if (!minion.endsWith('_12'))
|
|
65
|
+
continue;
|
|
66
|
+
if (!weight_1.TIER_12_MINIONS.includes(minion))
|
|
67
|
+
continue;
|
|
68
|
+
this.tier12MinionCount++;
|
|
69
|
+
}
|
|
70
|
+
return this;
|
|
71
|
+
};
|
|
72
|
+
setEarnedGoldMedals = (count) => {
|
|
73
|
+
this.earnedGoldMedals = count;
|
|
74
|
+
return this;
|
|
75
|
+
};
|
|
76
|
+
setTier12MinionCount = (count) => {
|
|
77
|
+
this.tier12MinionCount = count;
|
|
78
|
+
return this;
|
|
79
|
+
};
|
|
80
|
+
setContests = (contests) => {
|
|
81
|
+
if (!contests?.length)
|
|
82
|
+
return this;
|
|
83
|
+
for (const contest of contests) {
|
|
84
|
+
if (contest.claimed_medal === 'gold') {
|
|
85
|
+
this.earnedGoldMedals++;
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const position = contest.claimed_position;
|
|
89
|
+
const participants = contest.claimed_participants;
|
|
90
|
+
if (position === undefined || participants === undefined)
|
|
91
|
+
continue;
|
|
92
|
+
if (position <= participants * 0.05 + 1) {
|
|
93
|
+
this.earnedGoldMedals++;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return this;
|
|
97
|
+
};
|
|
98
|
+
getWeightInfo = () => {
|
|
99
|
+
const bonus = this.getBonusWeights();
|
|
100
|
+
const crops = this.getCropWeights();
|
|
101
|
+
const bonusTotal = Object.values(bonus).reduce((a, b) => a + b, 0);
|
|
102
|
+
const cropTotal = Object.values(crops).reduce((a, b) => a + b, 0);
|
|
103
|
+
return {
|
|
104
|
+
totalWeight: bonusTotal + cropTotal,
|
|
105
|
+
bonusWeight: bonusTotal,
|
|
106
|
+
cropWeight: cropTotal,
|
|
107
|
+
bonusSources: bonus,
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
getBonusWeights = () => {
|
|
111
|
+
if (this.farmingXp >= 111_672_425 && this.levelCapUpgrade >= 10) {
|
|
112
|
+
// Farming 60 bonus
|
|
113
|
+
this.bonusSources['Farming 60'] = weight_1.BONUS_WEIGHT.Farming60Bonus;
|
|
114
|
+
}
|
|
115
|
+
else if (this.farmingXp >= 55_172_425) {
|
|
116
|
+
// Farming 50 bonus
|
|
117
|
+
this.bonusSources['Farming 50'] = weight_1.BONUS_WEIGHT.Farming50Bonus;
|
|
118
|
+
}
|
|
119
|
+
// Tier 12 minion bonus
|
|
120
|
+
if (this.tier12MinionCount > 0) {
|
|
121
|
+
this.bonusSources['Tier 12 Minions'] = this.tier12MinionCount * weight_1.BONUS_WEIGHT.MinionRewardWeight;
|
|
122
|
+
}
|
|
123
|
+
// Anita bonus
|
|
124
|
+
if (this.anitaBonusFarmingFortuneLevel > 0) {
|
|
125
|
+
this.bonusSources['Anita Bonus'] =
|
|
126
|
+
this.anitaBonusFarmingFortuneLevel * weight_1.BONUS_WEIGHT.AnitaBuffBonusMultiplier;
|
|
127
|
+
}
|
|
128
|
+
if (this.earnedGoldMedals > weight_1.BONUS_WEIGHT.MaxMedalsCounted) {
|
|
129
|
+
this.bonusSources['Gold Medals'] = Math.floor(weight_1.BONUS_WEIGHT.WeightPerGoldMedal * weight_1.BONUS_WEIGHT.MaxMedalsCounted);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
const rewardCount = Math.floor((this.earnedGoldMedals / 50) * 50);
|
|
133
|
+
if (rewardCount > 0) {
|
|
134
|
+
this.bonusSources['Gold Medals'] = Math.floor(weight_1.BONUS_WEIGHT.WeightPerGoldMedal * rewardCount);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return this.bonusSources;
|
|
138
|
+
};
|
|
139
|
+
getCropWeights = () => {
|
|
140
|
+
const cropWeight = {};
|
|
141
|
+
let totalWeight = 0;
|
|
142
|
+
let doubleBreakWeight = 0;
|
|
143
|
+
for (const crop of crops) {
|
|
144
|
+
const collected = this.collection[crop] ?? 0;
|
|
145
|
+
const weight = collected / weight_1.CROP_WEIGHT[crop];
|
|
146
|
+
totalWeight += weight;
|
|
147
|
+
if (crop === crops_1.Crop.Cactus || crop === crops_1.Crop.SugarCane) {
|
|
148
|
+
doubleBreakWeight += weight;
|
|
149
|
+
}
|
|
150
|
+
cropWeight[crop] = weight;
|
|
151
|
+
}
|
|
152
|
+
// Mushroom is a special case, it needs to be calculated dynamically based on the
|
|
153
|
+
// ratio between the farmed crops that give two mushrooms per break with cow pet
|
|
154
|
+
// and the farmed crops that give one mushroom per break with cow pet
|
|
155
|
+
const mushroomCollection = this.collection[crops_1.Crop.Mushroom] ?? 0;
|
|
156
|
+
const mushroomWeightNumber = weight_1.CROP_WEIGHT[crops_1.Crop.Mushroom];
|
|
157
|
+
const doubleBreakRatio = doubleBreakWeight / totalWeight;
|
|
158
|
+
const normalCropRatio = (totalWeight - doubleBreakWeight) / totalWeight;
|
|
159
|
+
const mushroomWeight = doubleBreakRatio * (mushroomCollection / (mushroomWeightNumber * 2)) +
|
|
160
|
+
normalCropRatio * (mushroomCollection / mushroomWeightNumber);
|
|
161
|
+
cropWeight[crops_1.Crop.Mushroom] = mushroomWeight;
|
|
162
|
+
return cropWeight;
|
|
163
|
+
};
|
|
164
|
+
getCropWeight = (crop) => {
|
|
165
|
+
weight_1.CROP_WEIGHT[crop];
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=weightcalc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"weightcalc.js","sourceRoot":"","s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
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Tools for calculating farming weight and fortune in Hypixel Skyblock",
|
|
5
|
-
"main": "
|
|
6
|
-
"types": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "git+https://github.com/EliteFarmers/Tools.git"
|
|
24
24
|
},
|
|
25
|
-
"files": [ "
|
|
25
|
+
"files": [ "dist/**/*" ],
|
|
26
26
|
"bugs": {
|
|
27
27
|
"url": "https://github.com/EliteFarmers/Tools/issues"
|
|
28
28
|
},
|
package/lib/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CalculateExpectedDrops, CalculateAverageDrops, GetCropInfo, GetNPCProfit, CalculateDetailedAverageDrops, CalculateDetailedDrops } from './ratecalc';
|
|
2
|
-
import { CropInfo, Crop, MAX_CROP_FORTUNE } from './constants/crops';
|
|
3
|
-
import { CropDisplayName } from './util/names';
|
|
4
|
-
import { CreateFarmingWeightCalculator } from './weight/weightcalc';
|
|
5
|
-
import { FormatJacobContests, CalculateJacobContestMedal } from './util/jacob';
|
|
6
|
-
export { CalculateExpectedDrops, CalculateAverageDrops, CalculateDetailedAverageDrops, CalculateDetailedDrops, GetCropInfo, CropInfo, Crop, MAX_CROP_FORTUNE, CropDisplayName, GetNPCProfit, CreateFarmingWeightCalculator, FormatJacobContests, CalculateJacobContestMedal, };
|
package/lib/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalculateJacobContestMedal = exports.FormatJacobContests = exports.CreateFarmingWeightCalculator = exports.GetNPCProfit = exports.CropDisplayName = exports.MAX_CROP_FORTUNE = exports.Crop = exports.GetCropInfo = exports.CalculateDetailedDrops = exports.CalculateDetailedAverageDrops = exports.CalculateAverageDrops = exports.CalculateExpectedDrops = void 0;
|
|
4
|
-
const ratecalc_1 = require("./ratecalc");
|
|
5
|
-
Object.defineProperty(exports, "CalculateExpectedDrops", { enumerable: true, get: function () { return ratecalc_1.CalculateExpectedDrops; } });
|
|
6
|
-
Object.defineProperty(exports, "CalculateAverageDrops", { enumerable: true, get: function () { return ratecalc_1.CalculateAverageDrops; } });
|
|
7
|
-
Object.defineProperty(exports, "GetCropInfo", { enumerable: true, get: function () { return ratecalc_1.GetCropInfo; } });
|
|
8
|
-
Object.defineProperty(exports, "GetNPCProfit", { enumerable: true, get: function () { return ratecalc_1.GetNPCProfit; } });
|
|
9
|
-
Object.defineProperty(exports, "CalculateDetailedAverageDrops", { enumerable: true, get: function () { return ratecalc_1.CalculateDetailedAverageDrops; } });
|
|
10
|
-
Object.defineProperty(exports, "CalculateDetailedDrops", { enumerable: true, get: function () { return ratecalc_1.CalculateDetailedDrops; } });
|
|
11
|
-
const crops_1 = require("./constants/crops");
|
|
12
|
-
Object.defineProperty(exports, "Crop", { enumerable: true, get: function () { return crops_1.Crop; } });
|
|
13
|
-
Object.defineProperty(exports, "MAX_CROP_FORTUNE", { enumerable: true, get: function () { return crops_1.MAX_CROP_FORTUNE; } });
|
|
14
|
-
const names_1 = require("./util/names");
|
|
15
|
-
Object.defineProperty(exports, "CropDisplayName", { enumerable: true, get: function () { return names_1.CropDisplayName; } });
|
|
16
|
-
const weightcalc_1 = require("./weight/weightcalc");
|
|
17
|
-
Object.defineProperty(exports, "CreateFarmingWeightCalculator", { enumerable: true, get: function () { return weightcalc_1.CreateFarmingWeightCalculator; } });
|
|
18
|
-
const jacob_1 = require("./util/jacob");
|
|
19
|
-
Object.defineProperty(exports, "FormatJacobContests", { enumerable: true, get: function () { return jacob_1.FormatJacobContests; } });
|
|
20
|
-
Object.defineProperty(exports, "CalculateJacobContestMedal", { enumerable: true, get: function () { return jacob_1.CalculateJacobContestMedal; } });
|
package/lib/tool.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|