pvp保存阵容
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user