From 80d02ec22017056eda519675f32444935f5e57f9 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 13 May 2021 12:12:28 +0300 Subject: [PATCH] resource bonus UI --- modules/ui/resources-editor.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/ui/resources-editor.js b/modules/ui/resources-editor.js index 33069595..10483c2b 100644 --- a/modules/ui/resources-editor.js +++ b/modules/ui/resources-editor.js @@ -51,10 +51,10 @@ function editResources() { if (bonus === 'defence') return ``; if (bonus === 'prestige') return ``; if (bonus === 'artillery') return ``; - if (bonus === 'infantry') return ``; + if (bonus === 'infantry') return ``; if (bonus === 'population') return ``; if (bonus === 'archers') return ``; - if (bonus === 'cavalry') return ``; + if (bonus === 'cavalry') return ``; } // add line for each resource @@ -243,8 +243,9 @@ function editResources() { const bonuses = [...new Set(pack.resources.map((r) => Object.keys(r.bonus)).flat())].sort(); const inputs = bonuses.map( (bonus) => `
-
${capitalize(bonus)}
- + ${getBonusIcon(bonus)} +
${capitalize(bonus)}
+
` );