예제 #1
0
        public static void CalcUnitLevelStatus(UnitParam unit, int unitLv, ref BaseStatus status)
        {
            GrowParam growParam = MonoSingleton <GameManager> .GetInstanceDirect().GetGrowParam((string)unit.grow);

            if (growParam != null && growParam.curve != null)
            {
                growParam.CalcLevelCurveStatus(unitLv, ref status, unit.ini_status, unit.max_status);
            }
            else
            {
                unit.ini_status.param.CopyTo(status.param);
                if (unit.ini_status.enchant_resist != null)
                {
                    unit.ini_status.enchant_resist.CopyTo(status.enchant_resist);
                }
            }
            FixParam fixParam = MonoSingleton <GameManager> .GetInstanceDirect().MasterParam.FixParam;

            status.enchant_assist.esa_fire    = (OShort)fixParam.EsaAssist;
            status.enchant_assist.esa_water   = (OShort)fixParam.EsaAssist;
            status.enchant_assist.esa_wind    = (OShort)fixParam.EsaAssist;
            status.enchant_assist.esa_thunder = (OShort)fixParam.EsaAssist;
            status.enchant_assist.esa_shine   = (OShort)fixParam.EsaAssist;
            status.enchant_assist.esa_dark    = (OShort)fixParam.EsaAssist;
            status.enchant_resist.esa_fire    = (OShort)fixParam.EsaResist;
            status.enchant_resist.esa_water   = (OShort)fixParam.EsaResist;
            status.enchant_resist.esa_wind    = (OShort)fixParam.EsaResist;
            status.enchant_resist.esa_thunder = (OShort)fixParam.EsaResist;
            status.enchant_resist.esa_shine   = (OShort)fixParam.EsaResist;
            status.enchant_resist.esa_dark    = (OShort)fixParam.EsaResist;
            status.param.rec = (OShort)fixParam.IniValRec;
        }
예제 #2
0
        public static void CalcUnitLevelStatus(UnitParam unit, int unitLv, ref BaseStatus status)
        {
            GrowParam growParam = MonoSingleton <GameManager> .GetInstanceDirect().GetGrowParam((string)unit.grow);

            if (growParam != null && growParam.curve != null)
            {
                growParam.CalcLevelCurveStatus(unitLv, ref status, unit.ini_status, unit.max_status);
            }
            else
            {
                unit.ini_status.CopyTo(status);
            }
        }