Beispiel #1
0
 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);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 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);
     }
 }