()
| 783 | //还有,这不创建烟花,只返回工厂函数。 |
| 784 | const fastShellBlacklist = ["Falling Leaves", "Floral", "Willow"]; |
| 785 | function randomFastShell() { |
| 786 | const isRandom = shellNameSelector() === "Random"; |
| 787 | let shellName = isRandom ? randomShellName() : shellNameSelector(); |
| 788 | if (isRandom) { |
| 789 | while (fastShellBlacklist.includes(shellName)) { |
| 790 | shellName = randomShellName(); |
| 791 | } |
| 792 | } |
| 793 | return shellTypes[shellName]; |
| 794 | } |
| 795 | |
| 796 | //烟花类型 |
| 797 | const shellTypes = { |
no test coverage detected