feat: moar!!

This commit is contained in:
TrèsAbhi committed 2025-11-12 14:18:54 -06:00
1 parent cd8083ae30
commit e4429f15bd
1 file changed
+10 -6
+10 -6
View File
@@ -9,6 +9,7 @@ import {
fetchSkillDefinitions, fetchSkillDefinitions,
fetchTankDefinitions, fetchTankDefinitions,
TankDefinition, TankDefinition,
tankIcon,
} from "@blitzkit/core"; } from "@blitzkit/core";
import { checkConsumableProvisionInclusivity } from "@blitzkit/core/src/blitzkit/checkConsumableProvisionInclusivity"; import { checkConsumableProvisionInclusivity } from "@blitzkit/core/src/blitzkit/checkConsumableProvisionInclusivity";
import strings from "@blitzkit/i18n/strings/en.json"; import strings from "@blitzkit/i18n/strings/en.json";
@@ -47,11 +48,13 @@ for (const id in previewTankDefinitions.tanks) {
newTanks.sort((a, b) => b.tier - a.tier); newTanks.sort((a, b) => b.tier - a.tier);
import.meta.env.PUBLIC_ASSET_BASE = "https://blitzkit.github.io/assets-preview";
if (newTanks.length > 0) { if (newTanks.length > 0) {
notes += "## New Tanks\n\n"; notes += "## New Tanks\n\n";
for (const tank of newTanks) { for (const tank of newTanks) {
notes += `- [${tank.name.locales.en}](${domain}/tanks/${tank.slug})\n`; notes += `### [${tank.name.locales.en}](${domain}/tanks/${tank.slug})\n`;
notes += `![](${tankIcon(tank.id)})\n\n`;
} }
notes += "\n"; notes += "\n";
@@ -74,6 +77,7 @@ for (const stringId in previewTankDefinitions.tanks) {
changedTanks.sort((a, b) => b[1].tier - a[1].tier); changedTanks.sort((a, b) => b[1].tier - a[1].tier);
import.meta.env.PUBLIC_ASSET_BASE = "https://blitzkit.github.io/assets";
if (changedTanks.length > 0) { if (changedTanks.length > 0) {
notes += "## Changed Tanks\n\n"; notes += "## Changed Tanks\n\n";
@@ -240,11 +244,11 @@ if (changedTanks.length > 0) {
} }
} }
// notes += `- [${preview.name.locales.en}](${domain}/tanks/${preview.slug})\n`; notes += `### [${preview.name.locales.en}](${domain}/tanks/${preview.slug})\n`;
notes += `- ${preview.name.locales.en}\n`; notes += `![](${tankIcon(preview.id)})\n\n`;
if (addedConsumables.length + removedConsumables.length > 0) { if (addedConsumables.length + removedConsumables.length > 0) {
notes += ` - Consumables: `; notes += `Consumables: `;
notes += [ notes += [
...addedConsumables.map( ...addedConsumables.map(
(consumable) => `🟢 ${consumable.name.locales.en}` (consumable) => `🟢 ${consumable.name.locales.en}`
@@ -257,7 +261,7 @@ if (changedTanks.length > 0) {
} }
if (addedProvisions.length + removedProvisions.length > 0) { if (addedProvisions.length + removedProvisions.length > 0) {
notes += ` - Provisions: `; notes += `Provisions: `;
notes += [ notes += [
...addedProvisions.map( ...addedProvisions.map(
(provision) => `🟢 ${provision.name.locales.en}` (provision) => `🟢 ${provision.name.locales.en}`
@@ -281,7 +285,7 @@ if (changedTanks.length > 0) {
} }
if (changedCharacteristics.length > 0) { if (changedCharacteristics.length > 0) {
notes += ` - Characteristics:\n`; notes += `Characteristics:\n`;
for (const characteristicUntyped of changedCharacteristics) { for (const characteristicUntyped of changedCharacteristics) {
const characteristic = const characteristic =