MovingBlocks

Patch the Structure Template `spawnChance` bug

This bug involves the spawnChance field that is found inside Structure Templates prefabs. When set to a value not equal to 100 (the default value), the "Copy to Clipboard" option saves the field as a string, not an integer. This means that it cannot be parsed if when the clipboard content is saved as a prefab and tried in-game.

Definition of 'Done'

A pull request to the Structure Templates module that fixes the issue. After the patch, copying to clipboard should save the spawn chance as something like-

"spawnChance": 20

instead of-

"spawnChance": "20"

Students who completed this task

Alberto

Task type

  • code Code
close

2017