fix cryptitem script

this PR makes cassy's script work as intended

The only problem remaining is that such a script can not detect when you leave the room so if you equip the items in one of the crypt rooms and them go to another room you will have the bonuses even if you are no longer in the crypt. It only re-calculate when you equip/unequip something.