Exemplo n.º 1
0
 private int GetPropMaxValueLimit(RES_FUNCEFT_TYPE funcType, bool bPvpMode)
 {
     if (bPvpMode)
     {
         ResPropertyValueInfo dataByKey = GameDataMgr.propertyValInfo.GetDataByKey((uint)funcType);
         return((dataByKey == null) ? 0 : dataByKey.iMaxLimitValue);
     }
     return(0);
 }
Exemplo n.º 2
0
        private int GetPropMaxValueLimitCdReduce(bool bPvpMode)
        {
            if (!bPvpMode)
            {
                return(0);
            }
            int           iMaxLimitValue = 0;
            SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

            if ((curLvelContext != null) && (curLvelContext.m_cooldownReduceUpperLimit > 0))
            {
                return((int)curLvelContext.m_cooldownReduceUpperLimit);
            }
            ResPropertyValueInfo dataByKey = GameDataMgr.propertyValInfo.GetDataByKey((uint)20);

            if (dataByKey != null)
            {
                iMaxLimitValue = dataByKey.iMaxLimitValue;
            }
            return(iMaxLimitValue);
        }
Exemplo n.º 3
0
        private int GetPropMaxValueLimitCdReduce(bool bPvpMode)
        {
            if (bPvpMode)
            {
                int           result         = 0;
                SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext();

                if (curLvelContext != null && curLvelContext.m_cooldownReduceUpperLimit > 0u)
                {
                    result = (int)curLvelContext.m_cooldownReduceUpperLimit;
                }
                else
                {
                    ResPropertyValueInfo dataByKey = GameDataMgr.propertyValInfo.GetDataByKey(20u);
                    if (dataByKey != null)
                    {
                        result = dataByKey.iMaxLimitValue;
                    }
                }
                return(result);
            }
            return(0);
        }
Exemplo n.º 4
0
        private int GetPropMinValueLimit(RES_FUNCEFT_TYPE funcType, bool bPvpMode)
        {
            ResPropertyValueInfo dataByKey = GameDataMgr.propertyValInfo.GetDataByKey((uint)((byte)funcType));

            return((dataByKey != null) ? dataByKey.iMinLimitValue : 0);
        }