Example #1
0
    private Stat.Resister GetResisterAll()
    {
        Stat.Resister resister = new Stat.Resister();

        for (int i = 0; i < m_Wearables.Length; i++)
        {
            resister.strike  += m_Wearables[i].Resister.strike;
            resister.slash   += m_Wearables[i].Resister.slash;
            resister.fire    += m_Wearables[i].Resister.fire;
            resister.ice     += m_Wearables[i].Resister.ice;
            resister.thunder += m_Wearables[i].Resister.thunder;
        }

        return(resister);
    }
Example #2
0
    void InitEquip()
    {
        CDataManager dataMgr = CDataManager.Inst;

        CWearable body = dataMgr.EquipmentContainer.GetEquipment(PartsType.BODY, m_inventoryInfo.curBodyIdx) as CWearable;
        CWearable arm  = dataMgr.EquipmentContainer.GetEquipment(PartsType.ARM, m_inventoryInfo.curArmIdx) as CWearable;
        CWearable head = dataMgr.EquipmentContainer.GetEquipment(PartsType.HEAD, m_inventoryInfo.curHeadIdx) as CWearable;
        CWearable leg  = dataMgr.EquipmentContainer.GetEquipment(PartsType.LEG, m_inventoryInfo.curLegIdx) as CWearable;

        ChangeEquip(body);
        ChangeEquip(arm);
        ChangeEquip(head);
        ChangeEquip(leg);

        m_totalResister = GetResisterAll();
    }
Example #3
0
 public void ResisterSet(Stat.Resister resister)
 {
     m_baseStat.resister = resister;
 }