pvp保存阵容

This commit is contained in:
mamengke01
2021-01-07 20:36:17 +08:00
parent 5bfac1723c
commit 2470f7582f
8 changed files with 119 additions and 36 deletions

View File

@@ -496,7 +496,7 @@ export function reduceCe(ce: number = 0) {
}
export function getRandNum(min, max) {
let randNum = min + Math.floor(Math.random()*(max - min + 1));
let randNum = min + Math.floor(Math.random() * (max - min + 1));
return randNum;
}
@@ -516,10 +516,10 @@ export function getRandomArr(allarr, ranNum) {
// 获取全部属性
export function getAllAttrStage () {
export function getAllAttrStage() {
let attrs = new Array<number>(); // 有升级的属性 1-hp 2-atk 3-def 4-mdef 5-agi 6-luk
for(let stage = ABI_STAGE.START + 1; stage <= ABI_STAGE.END; stage++) {
attrs.push(stage)
for (let stage = ABI_STAGE.START + 1; stage <= ABI_STAGE.END; stage++) {
attrs.push(stage)
};
return attrs;
}
}