刷事件debug接口

This commit is contained in:
luying
2022-08-21 18:12:03 +08:00
parent 3927408f8a
commit 31c17c7366
3 changed files with 23 additions and 9 deletions
+1
View File
@@ -1626,6 +1626,7 @@ export function checkRouteParam(route: string, msg: any) {
case "battle.ladderHandler.setMyOpp":
case "guild.raceActivityHandler.debugAddHorse":
case "activity.gachaHandler.debugClearGachaRecord":
case "battle.eventBattleHandler.debugRefEvent":
{
if (msg.magicWord !== DEBUG_MAGIC_WORD) return false;
break;
+2 -2
View File
@@ -254,7 +254,7 @@ export function checkPreviousGk(previousGk: number, warStar: WarStar[]) {
*
* @param positionStr
*/
function randomPosition(positionArr: number[], prePoint: Array<number>, curPoint: Array<number>) {
export function randomPosition(positionArr: number[], prePoint: Array<number>, curPoint: Array<number>) {
let range = positionArr.filter(point => {return !prePoint.includes(point) && !curPoint.includes(point)});
if(range.length == 0) { // 如果位置总数不够,就不管prePoint里的
range = positionArr.filter(point => {return !curPoint.includes(point)});
@@ -357,7 +357,7 @@ export function checkQuizParam(param: Array<number>, database?: Array<{id: numb
*
* @param num 题目数量
*/
function randomQuestion(num: number) {
export function randomQuestion(num: number) {
let questions = new Array<DicQuestion>();
gameData.question.forEach(cur => {
questions.push(cur);