Add commercial building pictogram to its achievement
This commit is contained in:
parent
a33d453ad8
commit
0b42465ce2
1 changed files with 2 additions and 1 deletions
|
|
@ -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)}`,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue