示例#1
0
        void IFloatingCalculator.Calculate(RequsetFishData[] fish_data)
        {
            var octs = fish_data.Where(x => x.FishType == FISH_TYPE.SPECIAL_BIG_OCTOPUS_BOMB);

            foreach(var oct in octs)
            {
                oct.FishOdds += oct.GraveGoods.Sum(x => x.GetRealOdds());
            }
        }
示例#2
0
        void IFloatingCalculator.Calculate(RequsetFishData[] fish_data)
        {
            var whales = fish_data.Where(x => x.FishType == FISH_TYPE.WHALE_COLOR);

            foreach(var whale in whales)
            {
                var random = Random.Instance.NextInt(0, 7);
                whale.FishOdds = _OddsDatas.Find(x => x.Rate == random)
                                            .Odds;
            }
        }
示例#3
0
文件: King.cs 项目: jiowchern/Regulus
        void IFloatingCalculator.Calculate(RequsetFishData[] fish_data)
        {
            var kings = fish_data.Where(x => x.FishStatus == FISH_STATUS.KING);

            foreach(var king in kings.Where(king => king.GraveGoods.Any()))
            {
                if(king.GraveGoods.Any(x => x.FishType != king.FishType))
                {
                    // _OnException.Invoke("king.GraveGoods抄府辰篈ぃ才");
                    Singleton<Log>.Instance.WriteInfo("king.GraveGoods抄府辰篈ぃ才");

                    LogManager.GetCurrentClassLogger()
                            .Fatal("king.GraveGoods抄府辰篈ぃ才");
                    continue;
                }

                king.FishOdds += king.GraveGoods.Sum(x => x.GetRealOdds());
            }
        }