From e4429f15bdb0886ea2ff4afe142313db30e5ff53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:18:54 -0600 Subject: [PATCH] feat: moar!! --- packages/scripts/src/patchNotes.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/scripts/src/patchNotes.ts b/packages/scripts/src/patchNotes.ts index 2ba208f63..9f132b3bf 100644 --- a/packages/scripts/src/patchNotes.ts +++ b/packages/scripts/src/patchNotes.ts @@ -9,6 +9,7 @@ import { fetchSkillDefinitions, fetchTankDefinitions, TankDefinition, + tankIcon, } from "@blitzkit/core"; import { checkConsumableProvisionInclusivity } from "@blitzkit/core/src/blitzkit/checkConsumableProvisionInclusivity"; 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); +import.meta.env.PUBLIC_ASSET_BASE = "https://blitzkit.github.io/assets-preview"; if (newTanks.length > 0) { notes += "## New Tanks\n\n"; 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"; @@ -74,6 +77,7 @@ for (const stringId in previewTankDefinitions.tanks) { 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) { 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}\n`; + notes += `### [${preview.name.locales.en}](${domain}/tanks/${preview.slug})\n`; + notes += `![](${tankIcon(preview.id)})\n\n`; if (addedConsumables.length + removedConsumables.length > 0) { - notes += ` - Consumables: `; + notes += `Consumables: `; notes += [ ...addedConsumables.map( (consumable) => `🟢 ${consumable.name.locales.en}` @@ -257,7 +261,7 @@ if (changedTanks.length > 0) { } if (addedProvisions.length + removedProvisions.length > 0) { - notes += ` - Provisions: `; + notes += `Provisions: `; notes += [ ...addedProvisions.map( (provision) => `🟢 ${provision.name.locales.en}` @@ -270,7 +274,7 @@ if (changedTanks.length > 0) { } if (addedEquipment.length + removedEquipment.length > 0) { - notes += ` - Equipment: `; + notes += `-Equipment: `; notes += [ ...addedEquipment.map((equipment) => `🟢 ${equipment.name.locales.en}`), ...removedEquipment.map( @@ -281,7 +285,7 @@ if (changedTanks.length > 0) { } if (changedCharacteristics.length > 0) { - notes += ` - Characteristics:\n`; + notes += `Characteristics:\n`; for (const characteristicUntyped of changedCharacteristics) { const characteristic = @@ -293,7 +297,7 @@ if (changedTanks.length > 0) { const before = currentCharacteristics[characteristic]; const after = previewCharacteristics[characteristic]; - notes += ` - ${ + notes += `- ${ typeof before === "number" && typeof after === "number" ? after > before ? "⬆️"