Skip to content

Commit 6842f4e

Browse files
authored
fix: SkyBlockGardenCropMilstone calculation going from 0-45 instead of 1-46 (#674)
* fix cropmilestones * prettier
1 parent 139132c commit 6842f4e

File tree

4 files changed

+358
-666
lines changed

4 files changed

+358
-666
lines changed

src/Structures/MiniGames/SkyWars/SkyWars.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ class SkyWars {
104104
this.levelProgress = getSkyWarsLevelProgress(data?.skywars_experience);
105105
this.levelFormatted = data?.levelFormatted
106106
? data?.levelFormatted
107-
?.replace(/§l/gm, '**')
108-
?.replace(/§([a-f]|[1-9])/gm, '')
109-
?.replace(/§r/gm, '')
107+
?.replace(/§l/gm, '**')
108+
?.replace(/§([a-f]|[1-9])/gm, '')
109+
?.replace(/§r/gm, '')
110110
: null;
111111
this.prestige = getSkyWarsPrestige(this.level);
112112
this.opals = data?.opals || 0;

src/Structures/SkyBlock/Inventory/SkyBlockInventoryItem.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,20 @@ class SkyBlockInventoryItem {
8888
this.statsBook = data?.tag?.ExtraAttributes?.stats_book || null;
8989
this.runes = data?.tag?.ExtraAttributes?.runes
9090
? Object.keys(data?.tag?.ExtraAttributes?.runes).map(
91-
(rune) => new SkyBlockInventoryItemRune({ id: rune, tier: data?.tag?.ExtraAttributes?.runes?.[rune] })
92-
)
91+
(rune) => new SkyBlockInventoryItemRune({ id: rune, tier: data?.tag?.ExtraAttributes?.runes?.[rune] })
92+
)
9393
: null;
9494
this.reforge = data?.tag?.ExtraAttributes?.modifier || 'none';
9595
this.hasArtOfWar = Boolean(data?.tag?.ExtraAttributes?.art_of_war_count || 0);
9696
this.starCount = data?.tag?.ExtraAttributes?.upgrade_level || 0;
9797
this.enchantments = data?.tag?.ExtraAttributes?.enchantments
9898
? Object.keys(data?.tag?.ExtraAttributes?.enchantments).map(
99-
(enchantment) =>
100-
new SkyBlockInventoryItemEnchantment({
101-
id: enchantment,
102-
level: data?.tag?.ExtraAttributes?.enchantments?.[enchantment]
103-
})
104-
)
99+
(enchantment) =>
100+
new SkyBlockInventoryItemEnchantment({
101+
id: enchantment,
102+
level: data?.tag?.ExtraAttributes?.enchantments?.[enchantment]
103+
})
104+
)
105105
: null;
106106
this.uuid = data?.tag?.ExtraAttributes?.uuid || null;
107107
this.hotPotatoBookCount = data?.tag?.ExtraAttributes?.hot_potato_count || null;
@@ -126,12 +126,12 @@ class SkyBlockInventoryItem {
126126
this.isShiny = Boolean(data?.tag?.ExtraAttributes?.is_shiny || 0);
127127
this.attributes = data?.tag?.ExtraAttributes?.attributes
128128
? Object.keys(data?.tag?.ExtraAttributes?.attributes).map(
129-
(attribute) =>
130-
new SkyBlockInventoryItemAttribute({
131-
id: attribute,
132-
level: data?.tag?.ExtraAttributes?.attributes[attribute]
133-
})
134-
)
129+
(attribute) =>
130+
new SkyBlockInventoryItemAttribute({
131+
id: attribute,
132+
level: data?.tag?.ExtraAttributes?.attributes[attribute]
133+
})
134+
)
135135
: null;
136136
this.jalapenoCount = data?.tag?.ExtraAttributes?.jalapeono_count || null;
137137
this.hecatombSRuns = data?.tag?.ExtraAttributes?.hecatomb_s_runs || null;

0 commit comments

Comments
 (0)