Each puzzle can give you a keyword that the end script checks.
I don't understyand what it's trying to do. :(
If you have both the "Treasure_room1" and "Treasure_room2" keywords, you get 3 Rare Artifact Chests.
If you have one but not both, you get a single Rare Artifact Chest.
If you have none of those keywords, you... still get a single Rare Artifact Chest.
Then the game rolls the following chances.
- 2/100 - Suntouched Stone Fragment
- 8/100 - Suntouched Stone
- 28/100 - Suntouched Shyllien Crystal
- 62/100 - Nothing