MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / randomFastShell

Function randomFastShell

js/script.js:785–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

783//还有,这不创建烟花,只返回工厂函数。
784const fastShellBlacklist = ["Falling Leaves", "Floral", "Willow"];
785function 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//烟花类型
797const shellTypes = {

Callers 4

randomShellFunction · 0.85
seqRandomFastShellFunction · 0.85
seqTripleFunction · 0.85
seqSmallBarrageFunction · 0.85

Calls 2

shellNameSelectorFunction · 0.85
randomShellNameFunction · 0.85

Tested by

no test coverage detected