techs work again

also made a clockdebug function in them, just comment it out if it's
anoying. it makes the closest npc say what you want