Example #1
0
        private void _AddBufferRate(FarmDataRoot root)
        {
            root.Buffer.Count += _Request.WeaponData.GetTotalBet() * root.Buffer.Rate;

            if(root.Buffer.Count < 1000)
            {
                return;
            }

            root.Buffer.WinScore += root.Buffer.Count / 1000;
            root.Buffer.Count = root.Buffer.Count % 1000;
        }
Example #2
0
 public FarmDataRoot FindDataRoot(FarmDataRoot.BlockNode.BLOCK_NAME block_name, FarmDataRoot.BufferNode.BUFFER_NAME buffer_name)
 {
     var data = DataRootRoots.First(s => s.Block.BlockName == block_name && s.Buffer.BufferName == buffer_name);
     return data;
 }
Example #3
0
 private void _SetDefaultBufferData(FarmDataRoot farm_data_root, int rate, int top, int gate)
 {
     farm_data_root.Buffer.Rate = rate;
     farm_data_root.Buffer.Top = top;
     farm_data_root.Buffer.Gate = gate;
 }