예제 #1
0
        public void AddCurrentBlockEXP(int value)
        {
            _currentBlockExp += (int)(value * _baseEXPRatio);
            int currentMaxEXP = FunctionBlockModule.GetCurrentLevelEXP(BlockEXPMap, currentBlockLevel);

            if (_currentBlockExp > currentMaxEXP)
            {
                currentBlockLevel++;
                CurrentBlockMaxEXP = FunctionBlockModule.GetCurrentLevelEXP(BlockEXPMap, currentBlockLevel);
                _currentBlockExp  -= currentMaxEXP;
            }
        }
예제 #2
0
 public FunctionBlockLevelInfo(FunctionBlock block)
 {
     BlockEXPMap        = FunctionBlockModule.GetBlockEXPMapData(block.FunctionBlockID);
     CurrentBlockMaxEXP = FunctionBlockModule.GetCurrentLevelEXP(BlockEXPMap, currentBlockLevel);
 }