Esempio n. 1
0
 //查叫和亮倒 赔付减分
 private static void ChaJiaoLiangSmallResultGet(this FiveStarRoom fiveStarRoom, int subScoreIndex, int scoreValue)
 {
     for (int j = 0; j < fiveStarRoom.RoomNumber; j++)
     {
         //计算玩家小结算得分
         fiveStarRoom.SmallReultPlayerGetScore(j, subScoreIndex, scoreValue);
     }
 }
Esempio n. 2
0
        //计算分数
        private static void ResultCalculateScore(this FiveStarRoom fiveStarRoom, int huPaiIndex, int deductIndex, int paiTypeMultiple, int maiMaMultiple)
        {
            int unwelcomeCappingMultiple = maiMaMultiple + fiveStarRoom.FiveStarPlayerDic[huPaiIndex].PiaoNum + fiveStarRoom.FiveStarPlayerDic[deductIndex].PiaoNum; //不受封顶番数 影响的 买马 和两人的漂数

            int effectCappingMultiple = paiTypeMultiple * fiveStarRoom.LiangDaoAddMultiple(huPaiIndex, deductIndex);                                                 //受封顶番数影响 基础倍数乘以 亮倒的倍数

            if (effectCappingMultiple > fiveStarRoom.RoomConfig.FengDingFanShu)
            {
                effectCappingMultiple = fiveStarRoom.RoomConfig.FengDingFanShu;//如果 基础倍数加上亮倒倍数 超过封顶番数 则就是封顶番数
            }
            //上面算了 打漂的 倍数 亮倒的倍数 还要赢牌的倍数
            fiveStarRoom.SmallReultPlayerGetScore(huPaiIndex, deductIndex, (unwelcomeCappingMultiple + effectCappingMultiple) * fiveStarRoom.RoomConfig.BottomScore);
        }