修复错别字
This commit is contained in:
@@ -34,7 +34,7 @@ export async function getTowerStatus(role: RoleType) {
|
||||
let towerRec = await getTowerRecByLv(roleId, towerLv);
|
||||
|
||||
return {
|
||||
canHungUp: canHunUp(towerLv),
|
||||
canHungUp: canHungUp(towerLv),
|
||||
canSendTask: towerLv - 1 >= dicParam.TOWER_SEARCH.TOWER_SEARCH_STARTLIMITED,
|
||||
sendTaskEnableLv: dicParam.TOWER_SEARCH.TOWER_SEARCH_STARTLIMITED,
|
||||
curLv: towerLv,
|
||||
@@ -223,7 +223,7 @@ export async function towerBattleEnd(sid: string, roleId: string, serverId: numb
|
||||
|
||||
let inc = 0;
|
||||
let dicTower = gameData.tower.get(towerLv);
|
||||
console.log('towerBattleEnd', towerLv, dicTower?.warArray, warStatus)
|
||||
// console.log('towerBattleEnd', towerLv, dicTower?.warArray, warStatus)
|
||||
if(dicTower && dicTower.warArray) {
|
||||
let wars = dicTower.warArray.filter(warId => {
|
||||
let ws = warStatus.find(cur => cur.warId == warId);
|
||||
@@ -295,13 +295,13 @@ export async function checkAndStartHungUp(roleId: string, roleName: string, towe
|
||||
* @param towerLv
|
||||
* @returns
|
||||
*/
|
||||
export function canHunUp(towerLv: number) {
|
||||
export function canHungUp(towerLv: number) {
|
||||
return towerLv - 1 >= dicParam.TOWER_HANG_UP.TOWER_HANG_UP_ENABLE_LV
|
||||
}
|
||||
|
||||
export async function calcuHangUpReward(role: RoleType, speedUp = false, speedUpCnt = 1, curTime = new Date()) {
|
||||
let { roleId, towerLv = 1, hangUpSpdUpCnt = 0, lastSpdUpTime, vipStartTime } = role;
|
||||
if (!canHunUp(towerLv)) {
|
||||
if (!canHungUp(towerLv)) {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user