cleanup locations. make treasure bold. try to add some flair to the images

This commit is contained in:
2025-09-10 22:38:06 -04:00
parent 277a3ba718
commit 799ee18dc2
5 changed files with 228 additions and 22 deletions

View File

@@ -204,7 +204,11 @@ export function dungeonTemplate(data) {
</tr>`).join("")}
</table>
<h2>Treasure</h2>
<ul>${data.treasure.map(t => `<li>${t}</li>`).join("")}</ul>
<ul>${data.treasure.map(t => {
const [name, ...descParts] = t.split(/[-–—:]/);
const description = descParts.join(" ").trim();
return `<li><b>${name.trim()}</b>: ${description}</li>`;
}).join("")}</ul>
</div>
<div class="col">
<h2>NPCs</h2>