I've stopped working on this project. It began as a few hacks here and there to make things work, and it's reached an unmanageable state (i.e. it's getting extremely difficult to debug, especially since it replicates a lot of game logic). I may post the code at some point, but I'm not in a hurry since (a) it's a huge mess, (b) it's my first mid-scale C/Lua project, so I'd do things a lot different to improve on efficiency and design, and (c) most of the C is written by a massive perl script.
I was inspired largely by work on
Natural Selection 2 (which will implement all game logic in Lua), and a desire to finally work on a "useful" project in C. This project got me better acquainted with C (which I never have really had a use for) and the strength in strapping a scripting language to it.
I have a huge amount I could write about what I perceive to be the benefits of putting game logic in pluggable scripts, but I'll just stop here. DP is a good target for my "fun" projects where I'm looking to learn new things, so hopefully I will be able to implement some other map/stats ideas I have in the future.
Thanks to the people who helped testing it and sent ideas.