Пример #1
0
 protected virtual bool BuildMonsterPerStarLvData(ref ActorMeta actorMeta, ActorStarLv starLv, ref ActorPerStarLvData perStarLvData)
 {
     return(false);
 }
Пример #2
0
        protected virtual bool BuildHeroPerStarLvData(ref ActorMeta actorMeta, ActorStarLv starLv, ref ActorPerStarLvData perStarLvData)
        {
            ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey((uint)perStarLvData.TheActorMeta.ConfigId);

            if (dataByKey == null)
            {
                base.ErrorMissingHeroConfig((uint)perStarLvData.TheActorMeta.ConfigId);
                return(false);
            }
            perStarLvData.PerLvHp  = (int)dataByKey.iHpGrowth;
            perStarLvData.PerLvAd  = (int)dataByKey.iAtkGrowth;
            perStarLvData.PerLvAp  = (int)dataByKey.iSpellGrowth;
            perStarLvData.PerLvDef = (int)dataByKey.iDefGrowth;
            perStarLvData.PerLvRes = (int)dataByKey.iResistGrowth;
            return(true);
        }
Пример #3
0
        protected virtual bool BuildOrganPerStarLvData(ref ActorMeta actorMeta, ActorStarLv starLv, ref ActorPerStarLvData perStarLvData)
        {
            ResOrganCfgInfo dataCfgInfoByCurLevelDiff = OrganDataHelper.GetDataCfgInfoByCurLevelDiff(perStarLvData.TheActorMeta.ConfigId);

            if (dataCfgInfoByCurLevelDiff == null)
            {
                base.ErrorMissingOrganConfig((uint)perStarLvData.TheActorMeta.ConfigId);
                return(false);
            }
            perStarLvData.PerLvHp  = dataCfgInfoByCurLevelDiff.iHPLvlup;
            perStarLvData.PerLvAd  = dataCfgInfoByCurLevelDiff.iATTLvlup;
            perStarLvData.PerLvAp  = dataCfgInfoByCurLevelDiff.iINTLvlup;
            perStarLvData.PerLvDef = dataCfgInfoByCurLevelDiff.iDEFLvlup;
            perStarLvData.PerLvRes = dataCfgInfoByCurLevelDiff.iRESLvlup;
            return(true);
        }
Пример #4
0
        public override bool GetActorStaticPerStarLvData(ref ActorMeta actorMeta, ActorStarLv starLv, ref ActorPerStarLvData perStarLvData)
        {
            perStarLvData.TheActorMeta = actorMeta;
            perStarLvData.StarLv       = starLv;
            ActorPerLvDataBuilder builder = null;

            this._actorPerStarLvDataBuilder.TryGetValue((uint)actorMeta.ActorType, out builder);
            return((builder != null) && builder(ref actorMeta, starLv, ref perStarLvData));
        }
Пример #5
0
 public virtual bool GetActorStaticPerStarLvData(ref ActorMeta actorMeta, ActorStarLv starLv, ref ActorPerStarLvData perStarLvData)
 {
     return(false);
 }