I think it would be a good idea to completely switch all treasure rooms to scripts.
The guards and rewards will remain the same.
It will simply allow us to expand the specializations of some heroes to include treasure rooms, give a hero an ability to increase the reward from them, for example, and add something else.