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); }
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(); }
public void ResisterSet(Stat.Resister resister) { m_baseStat.resister = resister; }