百家学宫,名将谱战力
This commit is contained in:
+12
-1
@@ -9,7 +9,8 @@ import Actor from './actor';
|
||||
import fs = require('fs');
|
||||
import path = require('path');
|
||||
import { DicRandomEffectPool } from './dictionary/DicRandomEffectPool';
|
||||
import { HERO_CE_RATIO } from '../consts';
|
||||
import { HERO_CE_RATIO, ABI_STAGE } from '../consts';
|
||||
|
||||
const _ = require('underscore');
|
||||
|
||||
const moment = require('moment');
|
||||
@@ -546,4 +547,14 @@ export function getRandomArr(allarr, ranNum) {
|
||||
result.push(arr.splice(ran, 1)[0]);
|
||||
};
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
// 获取全部属性
|
||||
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)
|
||||
};
|
||||
return attrs;
|
||||
}
|
||||
Reference in New Issue
Block a user