I have modifed the code from the key generation to allow the cat shop and the Treasure chests to be randomy generated into different rooms.
Additions
There is a limit to one item per room for the generation.
The items that are randomised are
4 Door keys
1 Cat shop
Several Treasure Chests
I have manually placed the treasure chests in the scene but they do change positions. The script requires the items to already exist in the scene. If there is too many items to sort into the rooms the script will log an error message that explains where the issue is it and shouldn't continue any further.
Issue number and link
47
Checklist before requesting a review
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
Describe your changes
I have modifed the code from the key generation to allow the cat shop and the Treasure chests to be randomy generated into different rooms.
Additions
There is a limit to one item per room for the generation. The items that are randomised are
I have manually placed the treasure chests in the scene but they do change positions. The script requires the items to already exist in the scene. If there is too many items to sort into the rooms the script will log an error message that explains where the issue is it and shouldn't continue any further.
Issue number and link
47
Checklist before requesting a review