import {mkdirSync,readFileSync,writeFileSync} from 'node:fs'; const web=new URL('../web/',import.meta.url),dir=new URL('assets/appointments/',web);mkdirSync(dir,{recursive:true}); const icons={spice:'',water:'',crown:''}; for(const [id,shape]of Object.entries(icons)){const svg=`Landsraad ${id} office emblem${shape}`;writeFileSync(new URL(id+'.svg',dir),svg);} const section='
Original imperial artwork: a gold crown above sealed spice and water appointment parchments, framed by a desert palace

BY APPOINTMENT OF THE EMPEROR

Landsraad appointments

The Emperor appoints a spice-trading house to the Specerhuis office and a water-selling house to the Welvaart House office. These are the Landsraad appointments. The ceremonial artwork represents the offices; it does not confirm that either office is currently occupied.

Gold spice office seal
Specerhuis · spice rights
Gold water office seal
Welvaart House · water rights
'; const page=new URL('diplomacy.html',web);let html=readFileSync(page,'utf8').replace(/
[\s\S]*?<\/section>/g,'');html=html.replace('',section+'').replaceAll('Spice Steward and House of Water','Specerhuis and Welvaart House Landsraad appointments');writeFileSync(page,html); const file=new URL('manual-data.json',web),manual=JSON.parse(readFileSync(file,'utf8'));const chapter=manual.find(c=>/politic/i.test(c.title));if(chapter)chapter.body=chapter.body.replace(/
[\s\S]*?<\/section>/g,'')+section;writeFileSync(file,JSON.stringify(manual)+'\n');