Beispiel #1
0
 internal void SetData(RelicBase relicBase)
 {
     _relicBase = relicBase;
     _template  = RelicTemplateData.GetData(relicBase.tplId);
     if (_template == null)
     {
         return;
     }
     imgRelic.url = ResPath.GetUiImagePath(PackageName.RELIC, _template.szImg);
 }
Beispiel #2
0
    public override void OnCharBoutEnd(object obj)
    {
        FighterData charData = obj as FighterData;

        if (0 == charData.armor)
        {
            //获得护甲
            BattleModel   battleModel = BattleModel.Inst;
            RelicTemplate relicTplt   = RelicTemplateData.GetData(this.tplId);
            if (relicTplt != null)
            {
                battleModel.AddArmor(battleModel.selfData, relicTplt.nVal);
            }
        }

        return;
    }