Man, that is way more ambitious than what I'm doing! I've stayed away from tactics and strategy type games because they just seem so incredibly complicated. Best of luck, and I hope to see this one work!
On the note of hacky code, I've written some insanely hacky code for game jams. In Beach Defend 2000, every boss is actually a helicopter, and in Whistler (unreleased), I think I busywaited in a loop for every single dialogue to complete. This one is no exception; Lucidity will be many things but well-coded is not one of them.