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()); } }
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; } }
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()); } }