Add commercial building pictogram to its achievement

This commit is contained in:
coyotte508 2026-10-11 19:00:50 +02:00
commit 0b42465ce2

View file

@ -1,4 +1,5 @@
import { plainText, richText } from "./rich-text.js";
import { icon } from "./icons.js";
import { CARDS } from "../engine/achievements.js";
export function achievementText(id, t) {
const c = CARDS[id];
@ -12,6 +13,6 @@ export function achievementText(id, t) {
...c,
name: t(`achievementName.${id}`),
text: plainText(message, t.catalog),
html: richText(message, t.catalog),
html: `${c.goal === "commercial" ? `${icon("building", 20)} ` : ""}${richText(message, t.catalog)}`,
};
}