public Mem_shipBase(int rid, int getNo, Mst_ship mst_data) : this() { Rid = rid; GetNo = getNo; Ship_id = mst_data.Id; Level = 1; Exp = 0; Nowhp = mst_data.Taik; List <int> list = Comm_UserDatas.Instance.Add_Slot(mst_data.Defeq); for (int i = 0; i < mst_data.Slot_num; i++) { if (list.Count() > i) { Slot.Add(list[i]); Mem_slotitem mem_slotitem = Comm_UserDatas.Instance.User_slot[list[i]]; mem_slotitem.Equip(rid); } else { Slot.Add(mst_data.Defeq[i]); } Onslot.Add(mst_data.Maxeq[i]); } C_houg = 0; C_raig = 0; C_tyku = 0; C_souk = 0; C_kaihi = 0; C_taisen = 0; C_taik = 0; C_taik_powerup = 0; C_luck = 0; Fuel = mst_data.Fuel_max; Bull = mst_data.Bull_max; Locked = 0; Cond = 40; Lov = 50; }
public Mem_shipBase(int rid, int getNo, Mst_ship mst_data) : this() { this.Rid = rid; this.GetNo = getNo; this.Ship_id = mst_data.Id; this.Level = 1; this.Exp = 0; this.Nowhp = mst_data.Taik; List <int> list = Comm_UserDatas.Instance.Add_Slot(mst_data.Defeq); for (int i = 0; i < mst_data.Slot_num; i++) { if (Enumerable.Count <int>(list) > i) { this.Slot.Add(list.get_Item(i)); Mem_slotitem mem_slotitem = Comm_UserDatas.Instance.User_slot.get_Item(list.get_Item(i)); mem_slotitem.Equip(rid); } else { this.Slot.Add(mst_data.Defeq.get_Item(i)); } this.Onslot.Add(mst_data.Maxeq.get_Item(i)); } this.C_houg = 0; this.C_raig = 0; this.C_tyku = 0; this.C_souk = 0; this.C_kaihi = 0; this.C_taisen = 0; this.C_taik = 0; this.C_taik_powerup = 0; this.C_luck = 0; this.Fuel = mst_data.Fuel_max; this.Bull = mst_data.Bull_max; this.Locked = 0; this.Cond = 40; this.Lov = 50; }