reworked ki logic, basic spellbook stuff