As many of you have already noticed, base/hooks.lua contains various h_* hook functions. The purpose of these hook functions is that they are called by complex base code functions in order to make changing certain behaviors easier without having to override and copy/paste an entire hugely complicated base code function-- but, to make things even more confusing, some of the complex sys_* functions have their own h_* hooks.
It's a little bit of a mess. I'd like to clean this up so that the functions that can be easily overridden are all in one place, or two places, depending on how useful the distinction is between h_* and sys_* functions (for the dungeon designer, probably almost useless!); perhaps I should move all of the easily overridden sys_* functions into base/hooks.lua as well.
Any thoughts are welcome.
