Theres a bar that runs down when you are jailed. If it runs out the level regenerates and the cost.... youll have to see. The more you let it happen the more intense the modification is.