体力:修改体力逻辑

This commit is contained in:
luying
2021-06-22 20:33:45 +08:00
parent 43dd3eb400
commit 2baa41ab63
14 changed files with 184 additions and 41 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ export async function addItems(roleId: string, roleName: string, sid: string, go
let role = await RoleModel.findByRoleId(roleId);
for (let key in currencysMap) {
if (key == 'ap') {
let { ap } = await setAp(Date.now(), roleId, sid, null, currencysMap[key]);
let { ap } = await setAp(roleId, role.lv, currencysMap[key], sid, []);
currencysMap.ap = ap;
} else {
currencysMap[key] += role[key];