From 65c2e503fe24ef146551b4298f124aec876a7642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Mon, 27 Jul 2026 01:27:20 +0300 Subject: [PATCH] fix: weapon names in market are now real names, not keys --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 44f7c1d..8132501 100644 --- a/src/main.js +++ b/src/main.js @@ -1571,7 +1571,7 @@ function drawMarketPanel() { if (isSelected) { drawRect(framebuffer, listX, rowY, listW, itemH, '#558'); } - drawPanelText(framebuffer, item, listX + 12, rowY + 5, color); + drawPanelText(framebuffer, WEAPON_TYPES[item] ? WEAPON_TYPES[item].name : item.charAt(0).toUpperCase() + item.slice(1), listX + 12, rowY + 5, color); drawPanelText(framebuffer, priceText, listX + 150, rowY + 5, isSelected ? 'yellow' : '#aaa'); drawPanelText(framebuffer, ammoText, listX + 230, rowY + 5, isSelected ? 'yellow' : '#aaa'); }