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; } }
public FunctionBlockLevelInfo(FunctionBlock block) { BlockEXPMap = FunctionBlockModule.GetBlockEXPMapData(block.FunctionBlockID); CurrentBlockMaxEXP = FunctionBlockModule.GetCurrentLevelEXP(BlockEXPMap, currentBlockLevel); }