I think you do have to define a treasure room if you want to be able to have simple "win game" logic. By default, defining a treasure room will add a win game condition and print out the treasures hunt win game message if all objects are present in the treasure room at the when on_tick {} runs. This can be disabled, but without defining a treasure room the treasure_deposited() function will not work, and so you will have to manually count objects.