public void AddSoul(int soulId, int soulType) { if (m_Package.Souls.Count >= GameConfigs.GetInt("Inventory_Slots_Per_Tab", 200)) { PlayerMailLogic pm = new PlayerMailLogic(); pm.SetUser(m_UserId); pm.AddNewMail("package full", soulType, 1); pm.SendNotification(); } m_Package.Souls.Add(soulId, soulType); }
public void AddGear(int gear, int gearType) { if(m_Package.Gears.Count >= GameConfigs.GetInt("Inventory_Slots_Per_Tab", 200)) { PlayerMailLogic pm = new PlayerMailLogic(); pm.SetUser(m_UserId); pm.AddNewMail("package full", gearType, 1); pm.SendNotification(); } m_Package.Gears.Add(gear, gearType); }
public void AddEpigraph(int Type, int Level) { if (m_Package.Epigraphs.Count >= GameConfigs.GetInt("Inventory_Slots_Per_Tab", 200)) { PlayerMailLogic pm = new PlayerMailLogic(); pm.SetUser(m_UserId); pm.AddNewMail("package full", Type, 1); pm.SendNotification(); } m_Package.Epigraphs.Add(Type, Level); }
public void AddInventory(ItemListItem item) { if (m_Package.Inventories.ContainsKey(item.Id)) { m_Package.Inventories[item.Id] += item.Count; if (m_Package.Inventories[item.Id] > GameConfigs.GetInt("Inventory_Item_Max_Count", 9999)) { int count = m_Package.Inventories[item.Id] - GameConfigs.GetInt("Inventory_Item_Max_Count", 9999); m_Package.Inventories[item.Id] = GameConfigs.GetInt("Inventory_Item_Max_Count", 9999); PlayerMailLogic pm = new PlayerMailLogic(); pm.SetUser(m_UserId); pm.AddNewMail("package full", item.Id, item.Count); pm.SendNotification(); } } else { m_Package.Inventories.Add(item.Id, item.Count); } }