cleanup locations. make treasure bold. try to add some flair to the images
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user