Added TP regen and spending

use TP() function when checking for tp in modules. It returns the TP
value global.