计算增量方法调整
This commit is contained in:
@@ -13,9 +13,9 @@ import {RoleModel} from '../db/Role';
|
|||||||
//战力计算TODO
|
//战力计算TODO
|
||||||
export function calPlayerCe(hero:any, type: number, args: Array<{id: number}>) {
|
export function calPlayerCe(hero:any, type: number, args: Array<{id: number}>) {
|
||||||
let ce = 0;
|
let ce = 0;
|
||||||
let incCe;
|
let incAttr;
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
incCe = calHeroStarIncCe(hero, args);
|
incAttr = calHeroStarIncAttr(hero, args);
|
||||||
}
|
}
|
||||||
return ce;
|
return ce;
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ export async function calPlayerCeAndSave(sid: string, roleId: string, heros:Arra
|
|||||||
return heros;
|
return heros;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function calHeroStarIncCe (hero:any, args: Array<{id: number}>) {
|
export function calHeroStarIncAttr (hero:any, args: Array<{id: number}>) {
|
||||||
let incCe = 0;
|
let incHp = 0;
|
||||||
return {incCe};//属性增量可以是多个
|
return {incHp};//属性增量可以是多个
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user