Exemplo n.º 1
0
 object OnLootSpawn(LootContainer container)
 {
     if (!initialized || container == null)
     {
         return(null);
     }
     if (CustomLootSpawns && (bool)CustomLootSpawns?.Call("IsLootBox", container.GetComponent <BaseEntity>()))
     {
         return(null);
     }
     if (PopulateContainer(container))
     {
         ItemManager.DoRemoves();
         return(true);
     }
     return(null);
 }