体力:修改体力逻辑
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user