import {readFileSync,writeFileSync} from 'node:fs'; const web=new URL('../web/',import.meta.url); const series=[[1,'Stilgar','Desert stewardship and water cisterns'],[5,'Aliah','Ceremonial archives and celestial instruments'],[100,'Mira Vesk','Cartography, caravans and reservoirs'],[1000,'Ghanima','Imperial astronomy and gardens'],[5000,'Leto','An imagined game victory over House Harkonnen']]; const cards=series.map(([value,name,scene])=>`
Front and reverse of the ${value}-Dunemark note: Minecraft-style ${name}, ${scene.toLowerCase()}, and the original imperial seal
${value}-Dunemark GUI icon${value.toLocaleString('en')} Dunemarks · ${name} — ${scene}. Vaerkring Reserve.
64px transparent GUI icon · 128px icon · Full note artwork
`).join(''); const zero='

0 Dunemarks · In the search for Leto II

A separate commemorative design. Not an in-game denomination, item, reward or redeemable note.

Commemorative zero-Dunemark front and reverse: Minecraft-style Leto II and a lantern-lit desert search party beneath twin moons
In the search for Leto II · Commemorative design · No cash value. Download the design →
'; const intro=`
Original imperial seal: crown, desert sun and dunes

VAERKRING RESERVE

The Dunemark collection

Five denominations, five distinctive designs. Parchment, deep teal and imperial gold connect the series; each note has its own Minecraft-style portrait, reverse scene and colour accents. The original crown, sun and dunes seal appears on every denomination.

${series.map(([v])=>`${v.toLocaleString('en')} Dunemarks`).join(' · ')}

${cards}${zero}

These are decorative game-currency designs with no cash value. They do not grant a balance, function as bearer tokens or replace the server’s currency ledger. The character editions are unofficial Dune fan artwork; the 5,000 scene is an imagined game interpretation, not a claim of book accuracy. No merchandise licence or rights-holder approval is implied.

Download the original imperial seal → · Java GUI resource pack →

`; const manualFile=new URL('manual-data.json',web),chapters=JSON.parse(readFileSync(manualFile,'utf8')); const currency=chapters.find(chapter=>chapter.id==='solaris-spice-sales-and-guild-travel'); if(!currency)throw Error('Currency chapter missing'); currency.body=currency.body.replace(/
/g,''); currency.body=intro+currency.body; writeFileSync(manualFile,JSON.stringify(chapters)+'\n'); const exchangeFile=new URL('exchange.html',web);let html=readFileSync(exchangeFile,'utf8').replace(/
/g,''); html=html.replace('',intro+'');writeFileSync(exchangeFile,html); console.log('Built five Vaerkring Reserve denominations, icons and imperial seal');