private int GetTeamRolePoint(DJRoomRoleData djRoomRoleData, int otherTeamAvgDJPoint, bool isWinner) { int selfPointClass = this.GetDJPointClass(djRoomRoleData.DJPoint); int otherPointClass = this.GetDJPointClass(otherTeamAvgDJPoint); int absDJPoint = Math.Abs(selfPointClass - otherPointClass); int retPoint = this.GetRetPoint(selfPointClass, isWinner); if (0 != absDJPoint) { if (1 == absDJPoint) { if (selfPointClass > otherPointClass) { if (!isWinner) { retPoint -= 10; } } else if (isWinner) { retPoint += 10; } } else if (2 == absDJPoint) { if (selfPointClass > otherPointClass) { if (!isWinner) { retPoint -= 15; } } else if (isWinner) { retPoint += 15; } } else if (3 == absDJPoint) { if (selfPointClass > otherPointClass) { if (!isWinner) { retPoint -= 20; } } else if (isWinner) { retPoint += 20; } } } return(retPoint); }
/// <summary> /// 获取点将积分 /// </summary> /// <returns></returns> private int GetTeamRolePoint(DJRoomRoleData djRoomRoleData, int otherTeamAvgDJPoint, bool isWinner) { int retPoint = 0; int selfPointClass = GetDJPointClass(djRoomRoleData.DJPoint); int otherPointClass = GetDJPointClass(otherTeamAvgDJPoint); int absDJPoint = Math.Abs(selfPointClass - otherPointClass); retPoint = GetRetPoint(selfPointClass, isWinner); if (0 == absDJPoint) //同级别 { //不处理 } else if (1 == absDJPoint) { if (selfPointClass > otherPointClass) { if (isWinner) { //不变 } else { retPoint -= 10; //多扣除10分 } } else { if (isWinner) { retPoint += 10; //多加10分 } else { //不变 } } } else if (2 == absDJPoint) { if (selfPointClass > otherPointClass) { if (isWinner) { //不变 } else { retPoint -= 15; //多扣除15分 } } else { if (isWinner) { retPoint += 15; //多加15分 } else { //不变 } } } else if (3 == absDJPoint) { if (selfPointClass > otherPointClass) { if (isWinner) { //不变 } else { retPoint -= 20; //多扣除20分 } } else { if (isWinner) { retPoint += 20; //多加20分 } else { //不变 } } } return(retPoint); }