装备战力
This commit is contained in:
@@ -48,10 +48,12 @@ export class HeroHandler {
|
||||
let role = await RoleModel.findByRoleId(roleId);
|
||||
if (id == 999999) {
|
||||
items = getDropItems();
|
||||
role.lv = 60;
|
||||
let roleLvInfo = gameData.kingexp.get(role.lv - 1);
|
||||
role.exp = roleLvInfo.sum;
|
||||
await RoleModel.updateRoleInfo(roleId, role);
|
||||
if (role.lv < 60) {
|
||||
role.lv = 60;
|
||||
let roleLvInfo = gameData.kingexp.get(role.lv - 1);
|
||||
role.exp = roleLvInfo.sum;
|
||||
await RoleModel.updateRoleInfo(roleId, role);
|
||||
}
|
||||
}
|
||||
let result = await addItems(roleId, roleName, sid, items );
|
||||
if(!result) {
|
||||
|
||||
@@ -205,14 +205,13 @@ export function getDropItems() {
|
||||
{ id:17007 ,count: 100000 },{ id:17008 ,count: 100000 },{ id:17009 ,count: 100000 },{ id:17010 ,count: 100000 },{ id:17011 ,count: 100000 },{ id:17012 ,count: 100000 },
|
||||
{ id:17013 ,count: 100000 },{ id:17014 ,count: 100000 },{ id:17015 ,count: 100000 },{ id:17016 ,count: 100000 },{ id:17016 ,count: 100000 },{ id:17017 ,count: 100000 },
|
||||
{ id:17018 ,count: 100000 },{ id:17019 ,count: 100000 },{ id:17020 ,count: 100000 },{ id:17021 ,count: 100000 },{ id:17022 ,count: 100000 },{ id:17023 ,count: 100000 },
|
||||
|
||||
{ id:17024 ,count: 100000 },{ id:17025 ,count: 100000 },{ id:17026 ,count: 100000 },{ id:17027 ,count: 100000 },{ id:17028 ,count: 100000 },{ id:17029 ,count: 100000 },
|
||||
{ id:17030 ,count: 100000 },{ id:17031 ,count: 100000 },{ id:17032 ,count: 100000 },{ id:17033 ,count: 100000 },{ id:17034 ,count: 100000 },{ id:17035 ,count: 100000 },
|
||||
{ id:17036 ,count: 100000 },{ id:17037 ,count: 100000 },{ id:17038 ,count: 100000 },{ id:17039 ,count: 100000 },{ id:17040 ,count: 100000 },{ id:17041 ,count: 100000 },
|
||||
{ id:17042 ,count: 100000 },{ id:17043 ,count: 100000 },{ id:17044 ,count: 100000 },{ id:17045 ,count: 100000 },{ id:17046 ,count: 100000 },{ id:17047 ,count: 100000 },
|
||||
{ id:21001 ,count: 100000 },{ id:21002 ,count: 100000 },{ id:31001 ,count: 100000 },{ id:31002 ,count: 100000 },{ id:31003 ,count: 100000 },{ id:33001 ,count: 100000 },
|
||||
{ id:33002 ,count: 100000 },{ id:33003 ,count: 100000 },{ id:40001 ,count: 100000 },{ id:40002 ,count: 100000 },{ id:42001 ,count: 100000 },{ id:42002 ,count: 100000 },
|
||||
{ id:50009 ,count: 100000 },{ id:50010 ,count: 100000 },{ id:60001 ,count: 100000 },{ id:60002 ,count: 100000 },{ id:60060 ,count: 100000 }
|
||||
{ id:50009 ,count: 100000 },{ id:50010 ,count: 100000 },{ id:60001 ,count: 100000 },{ id:60002 ,count: 100000 },{ id:60060 ,count: 100000 },
|
||||
]
|
||||
return items;
|
||||
}
|
||||
@@ -531,7 +531,7 @@ export function calHeroEquipIncAttr(hero: HeroType) {
|
||||
// console.log('refine', dicRefine?dicRefine.upPercent:0 );
|
||||
let valueJewel = jewel.get(i) || 0;
|
||||
// console.log('jewel', valueJewel);
|
||||
let attr = (value1 + (lv - 1) * valueup) * (HERO_CE_RATIO + valueRefine) + valueJewel * HERO_CE_RATIO;
|
||||
let attr = (value1 + lv * valueup) * (HERO_CE_RATIO + valueRefine) + valueJewel * HERO_CE_RATIO;
|
||||
|
||||
attrResult[attrName] += attr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user