See
|
private setupDynamicPaintTools() { |
Here's an example of what could happen: Puzzle 1 has a single paint tool, "stamper", Puzzle 2 has a single paint tool, "randomizer". Adding or removing one from the toolbar will automatically add/remove the other when opening the other puzzle, because both of them have an ID of DYNAMIC-1. This is probably unintended. Instead, we should probably use the script ID.
See
EternaJS/src/eterna/ui/toolbar/Toolbar.ts
Line 612 in a1dc9d1
Here's an example of what could happen: Puzzle 1 has a single paint tool, "stamper", Puzzle 2 has a single paint tool, "randomizer". Adding or removing one from the toolbar will automatically add/remove the other when opening the other puzzle, because both of them have an ID of
DYNAMIC-1. This is probably unintended. Instead, we should probably use the script ID.