I came back to grab the files randomly but all the attachments are 404'ing.
Not to worry, I started over and I think got a more solid take this time.
Last few iterations were causing all sorts of double-free / queue pointer errors.
While my C skills haven't improved, ChatGPT has
So I'm posting a rough hand-patch file, it doesn't include all the places to drop in alter_hit() etc. but the main issue was the regen.c and regen.h, and where it integrates with mud_event.c