Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions common/constants/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ export const STATS_DATA = {
suffix: "",
color: "3",
},
combat_wisdom: {
name: "Combat Wisdom",
nameLore: "Combat Wisdom",
nameShort: "Combat Wisdom",
nameTiny: "CW",
symbol: "☯",
suffix: "",
color: "3",
},
mana_regen: {
name: "Mana Regen",
nameLore: "Mana Regen",
Expand Down
20 changes: 19 additions & 1 deletion public/resources/scss/stats.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,8 @@ a.additional-player-stat:hover {
}

.missing-pet,
.missing-accessory {
.missing-accessory,
.missing-power {
filter: grayscale(0.8);
transition: filter 0.2s;

Expand Down Expand Up @@ -2646,6 +2647,23 @@ bonus-stats {
}
}

.stats-tuning {
bonus-stats p {
margin: 0;
}
}

.selected-power {
display: flex;
align-items: center;
gap: 4px;
font-size: 20px;

.piece {
margin-top: 0;
}
}

#techno-support {
text-align: center;
padding: 20px;
Expand Down
20 changes: 20 additions & 0 deletions public/resources/ts/calculate-player-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,26 @@ export function getPlayerStats() {
}
}

// Thaumaturgist power
if (calculated.selected_power) {
for (const [name, value] of Object.entries(calculated.selected_power.stats)) {
if (!allowedStats.includes(name)) {
continue;
}

stats[name].thaumaturgist_power = value;
}
}

// Tuning points
for (const [name, value] of Object.entries(calculated.tuning_points.distribution)) {
if (!allowedStats.includes(name)) {
continue;
}

stats[name].tuning_points = value;
}

// Skill bonus stats
for (const [skill, data] of Object.entries(calculated.levels)) {
const bonusStats: ItemStats = getBonusStat(data.level, `skill_${skill}` as BonusType, data.maxLevel);
Expand Down
6 changes: 6 additions & 0 deletions public/resources/ts/development-defer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ document.addEventListener("click", (e) => {
} else if (element.hasAttribute("data-upgrade-accessory-index")) {
item =
calculated.missingAccessories.upgrades[parseInt(element.getAttribute("data-upgrade-accessory-index") as string)];
} else if (element.hasAttribute("data-power-selected")) {
item = calculated.selected_power;
} else if (element.hasAttribute("data-power-index")) {
item = calculated.unlocked_powers[parseInt(element.getAttribute("data-power-index") as string)];
} else if (element.hasAttribute("data-locked-power-index")) {
item = calculated.locked_powers[parseInt(element.getAttribute("data-locked-power-index") as string)];
}

console.log(item);
Expand Down
24 changes: 24 additions & 0 deletions public/resources/ts/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,30 @@ declare const calculated: SkyCryptPlayer & {
amount: number;
}[];
reaper_peppers_eaten: number;
selected_power: Item & {
stats: {
[key in StatName]: number;
};
};
unlocked_powers: (Item & {
power_type: string;
stats: {
[key in StatName]: number;
};
})[];
locked_powers: (Item & {
power_type: string;
stats: {
[key in StatName]: number;
};
})[];
tuning_points: {
distribution: {
[key in StatName]: number;
};
total: number;
used: number;
};
skyblock_level: Level;
};

Expand Down
6 changes: 6 additions & 0 deletions public/resources/ts/stats-defer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ function fillLore(element: HTMLElement) {
} else if (element.hasAttribute("data-upgrade-accessory-index")) {
item =
calculated.missingAccessories.upgrades[parseInt(element.getAttribute("data-upgrade-accessory-index") as string)];
} else if (element.hasAttribute("data-power-selected")) {
item = calculated.selected_power;
} else if (element.hasAttribute("data-power-index")) {
item = calculated.unlocked_powers[parseInt(element.getAttribute("data-power-index") as string)];
} else if (element.hasAttribute("data-locked-power-index")) {
item = calculated.locked_powers[parseInt(element.getAttribute("data-locked-power-index") as string)];
}

if (item == undefined) {
Expand Down
1 change: 1 addition & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ export * from "./constants/skins-animations.js";
export * from "./constants/tags.js";
export * from "./constants/trophy-fish.js";
export * from "./constants/accessories.js";
export * from "./constants/powers.js";
Loading