刷事件debug接口
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user