farming-weight 0.5.0 → 0.6.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/dist/constants/accessories.d.ts +3 -4
- package/dist/constants/accessories.js +32 -20
- package/dist/constants/accessories.js.map +1 -1
- package/dist/constants/armor.d.ts +10 -3
- package/dist/constants/armor.js +317 -181
- package/dist/constants/armor.js.map +1 -1
- package/dist/constants/crops.d.ts +1 -0
- package/dist/constants/crops.js +11 -0
- package/dist/constants/crops.js.map +1 -1
- package/dist/constants/enchants.d.ts +19 -7
- package/dist/constants/enchants.js +295 -71
- package/dist/constants/enchants.js.map +1 -1
- package/dist/constants/equipment.js +56 -43
- package/dist/constants/equipment.js.map +1 -1
- package/dist/constants/pets.d.ts +18 -19
- package/dist/constants/pets.js +194 -43
- package/dist/constants/pets.js.map +1 -1
- package/dist/constants/reforges.d.ts +4 -26
- package/dist/constants/reforges.js +110 -134
- package/dist/constants/reforges.js.map +1 -1
- package/dist/constants/specific.d.ts +9 -5
- package/dist/constants/specific.js +51 -6
- package/dist/constants/specific.js.map +1 -1
- package/dist/constants/stats.d.ts +41 -0
- package/dist/constants/stats.js +43 -0
- package/dist/constants/stats.js.map +1 -0
- package/dist/constants/tempfortune.d.ts +2 -0
- package/dist/constants/tempfortune.js +17 -1
- package/dist/constants/tempfortune.js.map +1 -1
- package/dist/constants/tools.d.ts +4 -9
- package/dist/constants/tools.js +260 -166
- package/dist/constants/tools.js.map +1 -1
- package/dist/constants/upgrades.d.ts +61 -4
- package/dist/constants/upgrades.js +16 -3
- package/dist/constants/upgrades.js.map +1 -1
- package/dist/fortune/farmingaccessory.d.ts +10 -4
- package/dist/fortune/farmingaccessory.js +26 -20
- package/dist/fortune/farmingaccessory.js.map +1 -1
- package/dist/fortune/farmingarmor.d.ts +22 -6
- package/dist/fortune/farmingarmor.js +88 -39
- package/dist/fortune/farmingarmor.js.map +1 -1
- package/dist/fortune/farmingequipment.d.ts +21 -12
- package/dist/fortune/farmingequipment.js +41 -29
- package/dist/fortune/farmingequipment.js.map +1 -1
- package/dist/fortune/farmingpet.d.ts +4 -1
- package/dist/fortune/farmingpet.js +74 -27
- package/dist/fortune/farmingpet.js.map +1 -1
- package/dist/fortune/farmingtool.d.ts +12 -5
- package/dist/fortune/farmingtool.js +55 -35
- package/dist/fortune/farmingtool.js.map +1 -1
- package/dist/fortune/upgradable.d.ts +37 -0
- package/dist/fortune/upgradable.js +2 -0
- package/dist/fortune/upgradable.js.map +1 -0
- package/dist/fortune/upgradeable.d.ts +72 -0
- package/dist/fortune/upgradeable.js +71 -0
- package/dist/fortune/upgradeable.js.map +1 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/items/accessories.d.ts +13 -0
- package/dist/items/accessories.js +59 -0
- package/dist/items/accessories.js.map +1 -0
- package/dist/items/armor.d.ts +46 -0
- package/dist/items/armor.js +714 -0
- package/dist/items/armor.js.map +1 -0
- package/dist/items/equipment.d.ts +26 -0
- package/dist/items/equipment.js +129 -0
- package/dist/items/equipment.js.map +1 -0
- package/dist/items/pets.d.ts +58 -0
- package/dist/items/pets.js +269 -0
- package/dist/items/pets.js.map +1 -0
- package/dist/items/tools.d.ts +17 -0
- package/dist/items/tools.js +581 -0
- package/dist/items/tools.js.map +1 -0
- package/dist/player/player.d.ts +15 -2
- package/dist/player/player.js +52 -16
- package/dist/player/player.js.map +1 -1
- package/dist/upgrades/progress.d.ts +4 -0
- package/dist/upgrades/progress.js +33 -0
- package/dist/upgrades/progress.js.map +1 -0
- package/dist/upgrades/sources/accessorysources.d.ts +3 -0
- package/dist/upgrades/sources/accessorysources.js +38 -0
- package/dist/upgrades/sources/accessorysources.js.map +1 -0
- package/dist/upgrades/sources/armorsetsources.d.ts +3 -0
- package/dist/upgrades/sources/armorsetsources.js +75 -0
- package/dist/upgrades/sources/armorsetsources.js.map +1 -0
- package/dist/upgrades/sources/cropsources.d.ts +7 -0
- package/dist/upgrades/sources/cropsources.js +119 -0
- package/dist/upgrades/sources/cropsources.js.map +1 -0
- package/dist/upgrades/sources/gearsources.d.ts +4 -0
- package/dist/upgrades/sources/gearsources.js +93 -0
- package/dist/upgrades/sources/gearsources.js.map +1 -0
- package/dist/upgrades/sources/generalsources.d.ts +3 -0
- package/dist/upgrades/sources/generalsources.js +88 -0
- package/dist/upgrades/sources/generalsources.js.map +1 -0
- package/dist/upgrades/sources/toolsources.d.ts +22 -0
- package/dist/upgrades/sources/toolsources.js +111 -0
- package/dist/upgrades/sources/toolsources.js.map +1 -0
- package/dist/upgrades/upgrades.d.ts +19 -0
- package/dist/upgrades/upgrades.js +236 -0
- package/dist/upgrades/upgrades.js.map +1 -0
- package/dist/util/enchants.d.ts +5 -0
- package/dist/util/enchants.js +48 -0
- package/dist/util/enchants.js.map +1 -0
- package/dist/util/gems.d.ts +5 -1
- package/dist/util/gems.js +35 -1
- package/dist/util/gems.js.map +1 -1
- package/dist/util/pests.d.ts +1 -0
- package/dist/util/pests.js +7 -3
- package/dist/util/pests.js.map +1 -1
- package/dist/util/ratecalc.js +4 -3
- package/dist/util/ratecalc.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Crop } from "../constants/crops";
|
|
2
|
+
import { Rarity, Reforge, ReforgeTarget } from "../constants/reforges";
|
|
3
|
+
import { Stat } from "../constants/stats";
|
|
4
|
+
import { FortuneSourceProgress, FortuneUpgrade, Upgrade } from "../constants/upgrades";
|
|
5
|
+
import { PlayerOptions } from "../player/player";
|
|
6
|
+
import { EliteItemDto } from "./item";
|
|
7
|
+
export interface UpgradeableInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
skyblockId: string;
|
|
10
|
+
upgrade?: Upgrade;
|
|
11
|
+
wiki?: string;
|
|
12
|
+
gemSlots?: {
|
|
13
|
+
peridot: number;
|
|
14
|
+
};
|
|
15
|
+
maxRarity: Rarity;
|
|
16
|
+
stats?: Partial<Record<Rarity, Partial<Record<Stat, number>>>>;
|
|
17
|
+
baseStats?: Partial<Record<Stat, number>>;
|
|
18
|
+
}
|
|
19
|
+
export interface Upgradeable {
|
|
20
|
+
item: EliteItemDto;
|
|
21
|
+
info: UpgradeableInfo;
|
|
22
|
+
type?: ReforgeTarget;
|
|
23
|
+
crop?: Crop;
|
|
24
|
+
options?: PlayerOptions;
|
|
25
|
+
recombobulated: boolean;
|
|
26
|
+
rarity: Rarity;
|
|
27
|
+
reforge?: Reforge | undefined;
|
|
28
|
+
fortune: number;
|
|
29
|
+
getFortune(): number;
|
|
30
|
+
getUpgrades(): FortuneUpgrade[];
|
|
31
|
+
getItemUpgrade(): Upgrade | undefined;
|
|
32
|
+
getLastItemUpgrade(): {
|
|
33
|
+
upgrade: Upgrade;
|
|
34
|
+
info: UpgradeableInfo;
|
|
35
|
+
} | undefined;
|
|
36
|
+
getProgress(zeroed: boolean): FortuneSourceProgress[];
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgradable.js","sourceRoot":"","sources":["../../src/fortune/upgradable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Crop } from "../constants/crops";
|
|
2
|
+
import { Rarity, RarityRecord, Reforge, ReforgeTarget, ReforgeTier } from "../constants/reforges";
|
|
3
|
+
import { Stat, StatsRecord } from "../constants/stats";
|
|
4
|
+
import { FortuneSourceProgress, FortuneUpgrade, Upgrade } from "../constants/upgrades";
|
|
5
|
+
import { PlayerOptions } from "../player/player";
|
|
6
|
+
import { EliteItemDto } from "./item";
|
|
7
|
+
export interface UpgradeableInfo {
|
|
8
|
+
name: string;
|
|
9
|
+
skyblockId: string;
|
|
10
|
+
upgrade?: Upgrade;
|
|
11
|
+
wiki?: string;
|
|
12
|
+
gemSlots?: {
|
|
13
|
+
peridot: number;
|
|
14
|
+
};
|
|
15
|
+
maxRarity: Rarity;
|
|
16
|
+
stats?: RarityRecord<StatsRecord>;
|
|
17
|
+
baseStats?: Partial<Record<Stat, number>>;
|
|
18
|
+
computedStats?: (opt: PlayerOptions) => Partial<Record<Stat, number>>;
|
|
19
|
+
}
|
|
20
|
+
export interface Upgradeable {
|
|
21
|
+
item: EliteItemDto;
|
|
22
|
+
info: UpgradeableInfo;
|
|
23
|
+
type?: ReforgeTarget;
|
|
24
|
+
crop?: Crop;
|
|
25
|
+
options?: PlayerOptions;
|
|
26
|
+
recombobulated: boolean;
|
|
27
|
+
rarity: Rarity;
|
|
28
|
+
reforge?: Reforge | undefined;
|
|
29
|
+
reforgeStats?: ReforgeTier | undefined;
|
|
30
|
+
fortune: number;
|
|
31
|
+
getFortune(): number;
|
|
32
|
+
getUpgrades(): FortuneUpgrade[];
|
|
33
|
+
getItemUpgrade(): Upgrade | undefined;
|
|
34
|
+
getLastItemUpgrade(): {
|
|
35
|
+
upgrade: Upgrade;
|
|
36
|
+
info: UpgradeableInfo;
|
|
37
|
+
} | undefined;
|
|
38
|
+
getProgress(zeroed: boolean): FortuneSourceProgress[];
|
|
39
|
+
}
|
|
40
|
+
export declare class UpgradeableBase implements Upgradeable {
|
|
41
|
+
item: EliteItemDto;
|
|
42
|
+
info: UpgradeableInfo;
|
|
43
|
+
private _type?;
|
|
44
|
+
get type(): ReforgeTarget | undefined;
|
|
45
|
+
set type(value: ReforgeTarget | undefined);
|
|
46
|
+
crop?: Crop;
|
|
47
|
+
options?: PlayerOptions;
|
|
48
|
+
recombobulated: boolean;
|
|
49
|
+
rarity: Rarity;
|
|
50
|
+
reforge?: Reforge | undefined;
|
|
51
|
+
reforgeStats?: ReforgeTier | undefined;
|
|
52
|
+
fortune: number;
|
|
53
|
+
private items;
|
|
54
|
+
constructor(options: {
|
|
55
|
+
item: EliteItemDto;
|
|
56
|
+
options?: PlayerOptions;
|
|
57
|
+
items: Partial<Record<string, UpgradeableInfo>>;
|
|
58
|
+
});
|
|
59
|
+
getFortune(): number;
|
|
60
|
+
getCalculatedStats(): Partial<Record<Stat, number>>;
|
|
61
|
+
getUpgrades(): FortuneUpgrade[];
|
|
62
|
+
getProgress(): FortuneSourceProgress[];
|
|
63
|
+
getItemUpgrade(): Upgrade | undefined;
|
|
64
|
+
getNextItemUpgrade(): {
|
|
65
|
+
upgrade: Upgrade;
|
|
66
|
+
info: UpgradeableInfo;
|
|
67
|
+
} | undefined;
|
|
68
|
+
getLastItemUpgrade(): {
|
|
69
|
+
upgrade: Upgrade;
|
|
70
|
+
info: UpgradeableInfo;
|
|
71
|
+
} | undefined;
|
|
72
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpgradeableBase = void 0;
|
|
4
|
+
const reforges_1 = require("../constants/reforges");
|
|
5
|
+
const upgrades_1 = require("../upgrades/upgrades");
|
|
6
|
+
const itemstats_1 = require("../util/itemstats");
|
|
7
|
+
class UpgradeableBase {
|
|
8
|
+
item;
|
|
9
|
+
info;
|
|
10
|
+
_type;
|
|
11
|
+
get type() {
|
|
12
|
+
return this._type;
|
|
13
|
+
}
|
|
14
|
+
set type(value) {
|
|
15
|
+
this._type = value;
|
|
16
|
+
}
|
|
17
|
+
crop;
|
|
18
|
+
options;
|
|
19
|
+
recombobulated;
|
|
20
|
+
rarity;
|
|
21
|
+
reforge;
|
|
22
|
+
reforgeStats;
|
|
23
|
+
fortune;
|
|
24
|
+
items;
|
|
25
|
+
constructor(options) {
|
|
26
|
+
this.item = options.item;
|
|
27
|
+
const info = options.items[options.item.skyblockId];
|
|
28
|
+
if (!info) {
|
|
29
|
+
throw new Error(`Unknown item: ${options.item.name} (${options.item.skyblockId})`);
|
|
30
|
+
}
|
|
31
|
+
this.info = info;
|
|
32
|
+
this.options = options.options;
|
|
33
|
+
this.items = options.items;
|
|
34
|
+
if (this.item.lore) {
|
|
35
|
+
this.rarity = (0, itemstats_1.getRarityFromLore)(this.item.lore);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.rarity = (0, itemstats_1.previousRarity)(this.info.maxRarity);
|
|
39
|
+
this.rarity ??= reforges_1.Rarity.Common;
|
|
40
|
+
}
|
|
41
|
+
this.reforge = reforges_1.REFORGES[options.item.attributes?.modifier ?? ''] ?? undefined;
|
|
42
|
+
this.reforgeStats = this.reforge?.tiers?.[this.rarity];
|
|
43
|
+
this.recombobulated = this.item.attributes?.rarity_upgrades === '1';
|
|
44
|
+
this.fortune = 0;
|
|
45
|
+
}
|
|
46
|
+
getFortune() {
|
|
47
|
+
return this.fortune;
|
|
48
|
+
}
|
|
49
|
+
getCalculatedStats() {
|
|
50
|
+
if (!this.info.computedStats || !this.options)
|
|
51
|
+
return {};
|
|
52
|
+
return this.info.computedStats?.(this.options) ?? {};
|
|
53
|
+
}
|
|
54
|
+
getUpgrades() {
|
|
55
|
+
return (0, upgrades_1.getItemUpgrades)(this);
|
|
56
|
+
}
|
|
57
|
+
getProgress() {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
getItemUpgrade() {
|
|
61
|
+
return this.info.upgrade;
|
|
62
|
+
}
|
|
63
|
+
getNextItemUpgrade() {
|
|
64
|
+
return (0, upgrades_1.getNextItemUpgradeableTo)(this, this.items);
|
|
65
|
+
}
|
|
66
|
+
getLastItemUpgrade() {
|
|
67
|
+
return (0, upgrades_1.getLastItemUpgradeableTo)(this, this.items);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.UpgradeableBase = UpgradeableBase;
|
|
71
|
+
//# sourceMappingURL=upgradeable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgradeable.js","sourceRoot":"","sources":["../../src/fortune/upgradeable.ts"],"names":[],"mappings":";;;AACA,oDAA4G;AAI5G,mDAA2G;AAC3G,iDAAsE;AAsCtE,MAAa,eAAe;IACpB,IAAI,CAAe;IACnB,IAAI,CAAkB;IAErB,KAAK,CAA6B;IAC1C,IAAW,IAAI;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IACD,IAAW,IAAI,CAAC,KAAgC;QAC/C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACpB,CAAC;IAEM,IAAI,CAAQ;IACZ,OAAO,CAAiB;IAExB,cAAc,CAAU;IACxB,MAAM,CAAS;IACf,OAAO,CAAuB;IAC9B,YAAY,CAA2B;IAEvC,OAAO,CAAS;IAEf,KAAK,CAA2C;IAExD,YAAY,OAIX;QACA,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,UAAwC,CAAC,CAAC;QAClF,IAAI,CAAC,IAAI,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,iBAAiB,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;SACnF;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;QAE3B,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,MAAM,GAAG,IAAA,6BAAiB,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAChD;aAAM;YACN,IAAI,CAAC,MAAM,GAAG,IAAA,0BAAc,EAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAClD,IAAI,CAAC,MAAM,KAAK,iBAAM,CAAC,MAAM,CAAC;SAC9B;QAED,IAAI,CAAC,OAAO,GAAG,mBAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,IAAI,EAAE,CAAC,IAAI,SAAS,CAAC;QAC9E,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,eAAe,KAAK,GAAG,CAAC;QACpE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAClB,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAED,kBAAkB;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACtD,CAAC;IAED,WAAW;QACV,OAAO,IAAA,0BAAe,EAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,WAAW;QACV,OAAO,EAAE,CAAC;IACX,CAAC;IAED,cAAc;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED,kBAAkB;QACjB,OAAO,IAAA,mCAAwB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,kBAAkB;QACjB,OAAO,IAAA,mCAAwB,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;CACD;AAhFD,0CAgFC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,22 +4,26 @@ export * from './fortune/farmingpet.js';
|
|
|
4
4
|
export * from './fortune/farmingaccessory.js';
|
|
5
5
|
export * from './fortune/farmingequipment.js';
|
|
6
6
|
export * from './fortune/item.js';
|
|
7
|
+
export * from './fortune/upgradeable.js';
|
|
7
8
|
export * from './weight/weightcalc.js';
|
|
8
9
|
export * from './player/player.js';
|
|
10
|
+
export * from './upgrades/upgrades.js';
|
|
11
|
+
export * from './items/armor.js';
|
|
12
|
+
export * from './items/equipment.js';
|
|
13
|
+
export * from './items/pets.js';
|
|
14
|
+
export * from './items/tools.js';
|
|
15
|
+
export * from './items/accessories.js';
|
|
9
16
|
export * from './constants/garden.js';
|
|
10
|
-
export * from './constants/armor.js';
|
|
11
17
|
export * from './constants/crops.js';
|
|
12
18
|
export * from './constants/reforges.js';
|
|
13
19
|
export * from './constants/skills.js';
|
|
14
20
|
export * from './constants/specialcrops.js';
|
|
15
|
-
export * from './constants/tools.js';
|
|
16
21
|
export * from './constants/weight.js';
|
|
17
22
|
export * from './constants/pests.js';
|
|
18
|
-
export * from './constants/pets.js';
|
|
19
23
|
export * from './constants/personalbests.js';
|
|
20
|
-
export * from './constants/equipment.js';
|
|
21
24
|
export * from './constants/upgrades.js';
|
|
22
25
|
export * from './constants/tempfortune.js';
|
|
26
|
+
export * from './constants/stats.js';
|
|
23
27
|
export * from './util/garden.js';
|
|
24
28
|
export * from './util/itemstats.js';
|
|
25
29
|
export * from './util/jacob.js';
|
package/dist/index.js
CHANGED
|
@@ -20,22 +20,26 @@ __exportStar(require("./fortune/farmingpet.js"), exports);
|
|
|
20
20
|
__exportStar(require("./fortune/farmingaccessory.js"), exports);
|
|
21
21
|
__exportStar(require("./fortune/farmingequipment.js"), exports);
|
|
22
22
|
__exportStar(require("./fortune/item.js"), exports);
|
|
23
|
+
__exportStar(require("./fortune/upgradeable.js"), exports);
|
|
23
24
|
__exportStar(require("./weight/weightcalc.js"), exports);
|
|
24
25
|
__exportStar(require("./player/player.js"), exports);
|
|
26
|
+
__exportStar(require("./upgrades/upgrades.js"), exports);
|
|
27
|
+
__exportStar(require("./items/armor.js"), exports);
|
|
28
|
+
__exportStar(require("./items/equipment.js"), exports);
|
|
29
|
+
__exportStar(require("./items/pets.js"), exports);
|
|
30
|
+
__exportStar(require("./items/tools.js"), exports);
|
|
31
|
+
__exportStar(require("./items/accessories.js"), exports);
|
|
25
32
|
__exportStar(require("./constants/garden.js"), exports);
|
|
26
|
-
__exportStar(require("./constants/armor.js"), exports);
|
|
27
33
|
__exportStar(require("./constants/crops.js"), exports);
|
|
28
34
|
__exportStar(require("./constants/reforges.js"), exports);
|
|
29
35
|
__exportStar(require("./constants/skills.js"), exports);
|
|
30
36
|
__exportStar(require("./constants/specialcrops.js"), exports);
|
|
31
|
-
__exportStar(require("./constants/tools.js"), exports);
|
|
32
37
|
__exportStar(require("./constants/weight.js"), exports);
|
|
33
38
|
__exportStar(require("./constants/pests.js"), exports);
|
|
34
|
-
__exportStar(require("./constants/pets.js"), exports);
|
|
35
39
|
__exportStar(require("./constants/personalbests.js"), exports);
|
|
36
|
-
__exportStar(require("./constants/equipment.js"), exports);
|
|
37
40
|
__exportStar(require("./constants/upgrades.js"), exports);
|
|
38
41
|
__exportStar(require("./constants/tempfortune.js"), exports);
|
|
42
|
+
__exportStar(require("./constants/stats.js"), exports);
|
|
39
43
|
__exportStar(require("./util/garden.js"), exports);
|
|
40
44
|
__exportStar(require("./util/itemstats.js"), exports);
|
|
41
45
|
__exportStar(require("./util/jacob.js"), exports);
|
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,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,yDAAuC;AACvC,qDAAmC;AAEnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,2DAAyC;AACzC,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,oDAAkC;AAClC,2DAAyC;AACzC,yDAAuC;AACvC,qDAAmC;AAEnC,yDAAuC;AAEvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,yDAAuC;AAEvC,wDAAsC;AACtC,uDAAqC;AACrC,0DAAwC;AACxC,wDAAsC;AACtC,8DAA4C;AAC5C,wDAAsC;AACtC,uDAAqC;AACrC,+DAA6C;AAC7C,0DAAwC;AACxC,6DAA2C;AAC3C,uDAAqC;AAErC,mDAAiC;AACjC,sDAAoC;AACpC,kDAAgC;AAChC,kDAAgC;AAChC,yDAAuC;AACvC,qDAAmC;AACnC,iDAA+B;AAC/B,kDAAgC;AAEhC,qDAAmC;AACnC,qDAAmC;AACnC,mDAAiC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UpgradeableInfo } from '../fortune/upgradeable';
|
|
2
|
+
import { Crop } from '../constants/crops';
|
|
3
|
+
import { Rarity } from '../constants/reforges';
|
|
4
|
+
import { Skill } from '../constants/skills';
|
|
5
|
+
export interface FarmingAccessoryInfo extends UpgradeableInfo {
|
|
6
|
+
name: string;
|
|
7
|
+
wiki: string;
|
|
8
|
+
family?: string;
|
|
9
|
+
maxRarity: Rarity;
|
|
10
|
+
crops?: Crop[];
|
|
11
|
+
skillReq?: Partial<Record<Skill, number>>;
|
|
12
|
+
}
|
|
13
|
+
export declare const FARMING_ACCESSORIES_INFO: Partial<Record<string, FarmingAccessoryInfo>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FARMING_ACCESSORIES_INFO = void 0;
|
|
4
|
+
const crops_1 = require("../constants/crops");
|
|
5
|
+
const reforges_1 = require("../constants/reforges");
|
|
6
|
+
const stats_1 = require("../constants/stats");
|
|
7
|
+
const upgrades_1 = require("../constants/upgrades");
|
|
8
|
+
exports.FARMING_ACCESSORIES_INFO = {
|
|
9
|
+
FERMENTO_ARTIFACT: {
|
|
10
|
+
skyblockId: 'FERMENTO_ARTIFACT',
|
|
11
|
+
name: 'Fermento Artifact',
|
|
12
|
+
wiki: 'https://wiki.hypixel.net/Fermento_Artifact',
|
|
13
|
+
family: 'Fermento',
|
|
14
|
+
maxRarity: reforges_1.Rarity.Epic,
|
|
15
|
+
baseStats: {
|
|
16
|
+
[stats_1.Stat.FarmingFortune]: 30,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
SQUASH_RING: {
|
|
20
|
+
skyblockId: 'SQUASH_RING',
|
|
21
|
+
name: 'Squash Ring',
|
|
22
|
+
wiki: 'https://wiki.hypixel.net/Squash_Ring',
|
|
23
|
+
family: 'Fermento',
|
|
24
|
+
upgrade: {
|
|
25
|
+
id: 'FERMENTO_ARTIFACT',
|
|
26
|
+
reason: upgrades_1.UpgradeReason.NextTier
|
|
27
|
+
},
|
|
28
|
+
maxRarity: reforges_1.Rarity.Rare,
|
|
29
|
+
crops: [crops_1.Crop.Wheat, crops_1.Crop.Carrot, crops_1.Crop.Potato, crops_1.Crop.Pumpkin, crops_1.Crop.Melon, crops_1.Crop.Mushroom, crops_1.Crop.CocoaBeans],
|
|
30
|
+
baseStats: {
|
|
31
|
+
[stats_1.Stat.FarmingFortune]: 20,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
CROPIE_TALISMAN: {
|
|
35
|
+
skyblockId: 'CROPIE_TALISMAN',
|
|
36
|
+
name: 'Cropie Talisman',
|
|
37
|
+
wiki: 'https://wiki.hypixel.net/Cropie_Talisman',
|
|
38
|
+
family: 'Fermento',
|
|
39
|
+
upgrade: {
|
|
40
|
+
id: 'SQUASH_RING',
|
|
41
|
+
reason: upgrades_1.UpgradeReason.NextTier
|
|
42
|
+
},
|
|
43
|
+
maxRarity: reforges_1.Rarity.Uncommon,
|
|
44
|
+
crops: [crops_1.Crop.Wheat, crops_1.Crop.Carrot, crops_1.Crop.Potato],
|
|
45
|
+
baseStats: {
|
|
46
|
+
[stats_1.Stat.FarmingFortune]: 10,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
POWER_RELIC: {
|
|
50
|
+
skyblockId: 'POWER_RELIC',
|
|
51
|
+
name: 'Relic of Power',
|
|
52
|
+
wiki: 'https://wiki.hypixel.net/Relic_Of_Power',
|
|
53
|
+
gemSlots: {
|
|
54
|
+
peridot: 1,
|
|
55
|
+
},
|
|
56
|
+
maxRarity: reforges_1.Rarity.Mythic,
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=accessories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accessories.js","sourceRoot":"","sources":["../../src/items/accessories.ts"],"names":[],"mappings":";;;AACA,8CAA0C;AAC1C,oDAA+C;AAC/C,8CAA0C;AAE1C,oDAAsD;AAWzC,QAAA,wBAAwB,GAAkD;IACtF,iBAAiB,EAAE;QAClB,UAAU,EAAE,mBAAmB;QAC/B,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,4CAA4C;QAClD,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,iBAAM,CAAC,IAAI;QACtB,SAAS,EAAE;YACV,CAAC,YAAI,CAAC,cAAc,CAAC,EAAE,EAAE;SACzB;KACD;IACD,WAAW,EAAE;QACZ,UAAU,EAAE,aAAa;QACzB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,sCAAsC;QAC5C,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE;YACR,EAAE,EAAE,mBAAmB;YACvB,MAAM,EAAE,wBAAa,CAAC,QAAQ;SAC9B;QACD,SAAS,EAAE,iBAAM,CAAC,IAAI;QACtB,KAAK,EAAE,CAAC,YAAI,CAAC,KAAK,EAAE,YAAI,CAAC,MAAM,EAAE,YAAI,CAAC,MAAM,EAAE,YAAI,CAAC,OAAO,EAAE,YAAI,CAAC,KAAK,EAAE,YAAI,CAAC,QAAQ,EAAE,YAAI,CAAC,UAAU,CAAC;QACvG,SAAS,EAAE;YACV,CAAC,YAAI,CAAC,cAAc,CAAC,EAAE,EAAE;SACzB;KACD;IACD,eAAe,EAAE;QAChB,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,0CAA0C;QAChD,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE;YACR,EAAE,EAAE,aAAa;YACjB,MAAM,EAAE,wBAAa,CAAC,QAAQ;SAC9B;QACD,SAAS,EAAE,iBAAM,CAAC,QAAQ;QAC1B,KAAK,EAAE,CAAC,YAAI,CAAC,KAAK,EAAE,YAAI,CAAC,MAAM,EAAE,YAAI,CAAC,MAAM,CAAC;QAC7C,SAAS,EAAE;YACV,CAAC,YAAI,CAAC,cAAc,CAAC,EAAE,EAAE;SACzB;KACD;IACD,WAAW,EAAE;QACZ,UAAU,EAAE,aAAa;QACzB,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,yCAAyC;QAC/C,QAAQ,EAAE;YACT,OAAO,EAAE,CAAC;SACV;QACD,SAAS,EAAE,iBAAM,CAAC,MAAM;KACxB;CACD,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UpgradeableInfo } from '../fortune/upgradeable';
|
|
2
|
+
import { Rarity, ReforgeTarget } from '../constants/reforges';
|
|
3
|
+
import { Stat } from '../constants/stats';
|
|
4
|
+
import { Skill } from '../constants/skills';
|
|
5
|
+
import { SpecialCrop } from '../constants/specialcrops';
|
|
6
|
+
import { Upgrade } from '../constants/upgrades';
|
|
7
|
+
export declare enum GearSlot {
|
|
8
|
+
Boots = "Boots",
|
|
9
|
+
Leggings = "Leggings",
|
|
10
|
+
Chestplate = "Chestplate",
|
|
11
|
+
Helmet = "Helmet",
|
|
12
|
+
Necklace = "Necklace",
|
|
13
|
+
Cloak = "Cloak",
|
|
14
|
+
Belt = "Belt",
|
|
15
|
+
Gloves = "Gloves"
|
|
16
|
+
}
|
|
17
|
+
export interface GearSlotInfo {
|
|
18
|
+
name: string;
|
|
19
|
+
startingItem: string;
|
|
20
|
+
target: ReforgeTarget;
|
|
21
|
+
}
|
|
22
|
+
export declare const GEAR_SLOTS: Record<GearSlot, GearSlotInfo>;
|
|
23
|
+
export interface FarmingArmorInfo extends UpgradeableInfo {
|
|
24
|
+
special?: SpecialCrop[];
|
|
25
|
+
slot: GearSlot;
|
|
26
|
+
family?: string;
|
|
27
|
+
maxRarity: Rarity;
|
|
28
|
+
upgrade?: Upgrade;
|
|
29
|
+
wiki: string;
|
|
30
|
+
contestStatsMultiplier?: number;
|
|
31
|
+
perLevelStats?: {
|
|
32
|
+
skill: Skill;
|
|
33
|
+
appliesTo?: ReforgeTarget[];
|
|
34
|
+
stats: Partial<Record<Stat, number>>;
|
|
35
|
+
};
|
|
36
|
+
skillReq?: Partial<Record<Skill, number>>;
|
|
37
|
+
}
|
|
38
|
+
export declare const ARMOR_INFO: Record<string, FarmingArmorInfo>;
|
|
39
|
+
export type ArmorSetBonusStats = Partial<Record<number, Partial<Record<Stat, number>>>>;
|
|
40
|
+
export interface ArmorSetBonus {
|
|
41
|
+
name: string;
|
|
42
|
+
piecePotential?: Partial<Record<Stat, number>>;
|
|
43
|
+
stats: ArmorSetBonusStats;
|
|
44
|
+
special?: SpecialCrop[];
|
|
45
|
+
}
|
|
46
|
+
export declare const ARMOR_SET_BONUS: Record<string, ArmorSetBonus>;
|