diff --git a/star-raid/index.html b/star-raid/index.html index 808b6f2..b2f70bc 100644 --- a/star-raid/index.html +++ b/star-raid/index.html @@ -121,15 +121,15 @@
 
选择出击方式
- - + +
-
— 自选武装 —
+
选武装 —
 
主武器 0/3
diff --git a/star-raid/js/ui.js b/star-raid/js/ui.js index f92b9c0..ce23da1 100644 --- a/star-raid/js/ui.js +++ b/star-raid/js/ui.js @@ -70,6 +70,18 @@ $("cx-secret").onclick=()=>{ cxClicks=0;codexTestAll=!codexTestAll; SFX.pick();buildCodex(); }; +/* 自选武装测试模式(隐藏入口):连点“自”字10次开关,与图鉴“军”字同一开关 */ +let rpClicks=0,rpLastClick=0; +$("rp-secret").onclick=()=>{ + const now=Date.now(); + if(now-rpLastClick>2000)rpClicks=0; // 间隔超2秒重新计数 + rpLastClick=now; + if(++rpClicks<10)return; + rpClicks=0;codexTestAll=!codexTestAll; + SFX.pick(); + $("rp-secret").style.color=codexTestAll?"var(--gold)":""; + if(!$("o-rushpick").classList.contains("hide"))openRushPick(rushPickIdx); // 面板开着时立即刷新生效 +}; /* 开始出击:新开无尽对局(不分难度)前,若云端有未完成对局,先弹结算确认 */ $("b-start").onclick=async()=>{ if(SETUP.mode==="endless"&&typeof NET!=="undefined"&&NET.user){