Merge pull request #109 from KayenEQ/master

Hot fix for issue with numhits not fading
Compiler option for playing with npctype_cache as was requested for a feature.  Not entirely tested may need some work. Currently defaults to old behavior on #repop.
Export clear_npctype_cache as both lua/perl general functions.
Revision to spell damage calculations