Distributions = Distributions or {};

local distributionTable = {


    zippeestore =
    {
        counter = {
            rolls = 1,
            items = {

				"KCMweapons.HandCrossbow", 0.5,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.3,
            }
        },

        shelves = {
            procedural = true,
            procList = {
                {name="StoreShelfSnacks", min=1, max=99},
            }
        },
    },

    grocerystorage =
    {
        bin = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.5,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.3,
            }
        },


    },


    grocery =
    {


        counter ={
            rolls = 4,
            items = {
				"KCMweapons.HandCrossbow", 0.5,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.3,
				"KCMweapons.LargeCrossbow", 0.3,
				"KCMweapons.CrossbowBoltLarge",0.6,
				"KCMweapons.CrossbowBoltLargeBox",0.2,
            },
            junk = {
                rolls = 4,
                items = {
                }
            }
        },

 
    },
    

    gigamart =
    {

        counter ={
            rolls = 4,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            junk = {
                rolls = 4,
                items = {
                }
            }
        },
        
    },

    fossoil =
    {
        counter ={
            rolls = 4,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
            }
        },



    },
	


    loggingfactory =
    {
        crate = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.4,
				"KCMweapons.CrossbowBoltLargeBox",0.3,
            }
        },
    },

    all =
    {

        dresser = {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            }
        },

        inventorymale = {
            rolls = 1,
            items = {
 				"KCMweapons.HandCrossbow", 0.2,
				"KCMweapons.CrossbowBolt",0.1,
            }
        },
        inventoryfemale = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.2,
				"KCMweapons.CrossbowBolt",0.1,
            }
        },


        crate = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            }
        },



        bin = {
            rolls = 1,
            items = {
				"KCMweapons.CrossbowBolt",3,
				"KCMweapons.CrossbowBoltLarge",2,
            }
        },
	

        metal_shelves ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            }
        },


    },

    shed =
    {
        other ={
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
    },
	


    garagestorage =
    {
        other ={
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
    
        },

    },
    
    garage =
    {
        metal_shelves ={
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            }
        },
    },

    bar =
    {
        shelves ={
            rolls = 4,
            items = {

            },
            
            junk = {
                rolls = 5,
                items = {

                },
            }
        },

        counter ={
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.7,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.4,
				"KCMweapons.LargeCrossbow", 0.3,
				"KCMweapons.CrossbowBoltLarge",0.4,
				"KCMweapons.CrossbowBoltLargeBox",0.3,
				"KCMweapons.KCM_Compound", 0.1,
				"KCMweapons.KCM_Compound02", 0.1,
            },
    
            junk = {
                rolls = 5,
                items = {

                },
            }
        },

        bin = {
            rolls = 1,
            items = {

				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltLarge",0.4,

            }
        },
    },
    


    policestorage = {
        locker ={
            rolls = 4,
            items = {
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 1,
				"KCMweapons.KCM_Compound02", 0.8,
            },
        },

        metal_shelves =
        {
            rolls = 4,
            items = {
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 1,
				"KCMweapons.KCM_Compound02", 0.8,
            }
        },
    },
    
    armystorage = {
        locker ={
            rolls = 2,
            items = {
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.8,
				"KCMweapons.KCM_Compound02", 0.6,
            },
        },
        
        metal_shelves =
        {
            rolls = 2,
            items = {
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
            }
        },
    },


    gunstore = {
        counter ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 4,
				"KCMweapons.CrossbowBolt",10,
				"KCMweapons.CrossbowBoltBox",10,
				"KCMweapons.LargeCrossbow", 3,
				"KCMweapons.CrossbowBoltLarge",10,
				"KCMweapons.CrossbowBoltLargeBox",10,
				"KCMweapons.KCM_Compound", 2,
				"KCMweapons.KCM_Compound02", 1,
            },
            dontSpawnAmmo = true,
        },

        displaycase ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 4,
				"KCMweapons.CrossbowBolt",10,
				"KCMweapons.CrossbowBoltBox",10,
				"KCMweapons.LargeCrossbow", 3,
				"KCMweapons.CrossbowBoltLarge",10,
				"KCMweapons.CrossbowBoltLargeBox",10,
				"KCMweapons.KCM_Compound", 2,
				"KCMweapons.KCM_Compound02", 1,
            },
            dontSpawnAmmo = true,
        },

        locker ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 4,
				"KCMweapons.CrossbowBolt",10,
				"KCMweapons.CrossbowBoltBox",10,
				"KCMweapons.LargeCrossbow", 3,
				"KCMweapons.CrossbowBoltLarge",10,
				"KCMweapons.CrossbowBoltLargeBox",10,
				"KCMweapons.KCM_Compound", 2,
				"KCMweapons.KCM_Compound02", 1,
            },
            dontSpawnAmmo = true,
        },

        metal_shelves ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 4,
				"KCMweapons.CrossbowBolt",10,
				"KCMweapons.CrossbowBoltBox",10,
				"KCMweapons.LargeCrossbow", 3,
				"KCMweapons.CrossbowBoltLarge",10,
				"KCMweapons.CrossbowBoltLargeBox",10,
				"KCMweapons.KCM_Compound", 2,
				"KCMweapons.KCM_Compound02", 1,
            },
            dontSpawnAmmo = true,
        },
    },

    gunstorestorage ={
        all={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 4,
				"KCMweapons.CrossbowBolt",10,
				"KCMweapons.CrossbowBoltBox",10,
				"KCMweapons.LargeCrossbow", 3,
				"KCMweapons.CrossbowBoltLarge",10,
				"KCMweapons.CrossbowBoltLargeBox",10,
				"KCMweapons.KCM_Compound", 2,
				"KCMweapons.KCM_Compound02", 1,
            },
    
            dontSpawnAmmo = true,
        },
    },


    
    generalstorestorage = {
        other = {
            rolls = 5,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
            },
        },
    },

    generalstore = {
        other = {
            rolls = 5,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
            },
        },
    },

    storageunit = {
        all ={
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.8,
				"KCMweapons.CrossbowBolt",0.8,
				"KCMweapons.CrossbowBoltBox",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
    },


    cornerstore = {
        counter ={
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.4,
				"KCMweapons.CrossbowBolt",0.4,
				"KCMweapons.CrossbowBoltBox",0.2,
            }
        },

    },

    sportstore = {
        shelves = {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
    },

    sportstorage = {
        metal_shelves = {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
            },
        },
    
    },

    
    hunting = {
        locker = {
            rolls = 2,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            }
        },
        
        metal_shelves ={
            rolls = 3,
            items = {
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
            },
        },
    },
    
    Bag_WeaponBag = {
        rolls = 2,
        items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
        },
        fillRand = 0,
    },
    

    Bag_SurvivorBag = {
        rolls = 5,
        items = {
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
        },
        -- only two map allowed
        maxMap = 2,
        -- this mean 90% chance on normal sandbox settings to have an annoted map
        stashChance = 10,
        fillRand = 0,
    },


    GunCache1 = {
        GunBox = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            dontSpawnAmmo = true,
        },

        counter = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
    
        Bag_DuffelBagTINT = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            fillRand = 3,
        },
    },

    GunCache2 = {
        GunBox = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            dontSpawnAmmo = true,
        },
    
        Bag_DuffelBagTINT = {
            rolls = 1,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            fillRand=3,
        },
    },

    security =
    {
        locker =
        {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
            dontSpawnAmmo = true,
        },
    },
    
    armysurplus = {
        shelves = {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
        
        metal_shelves = {
            rolls = 3,
            items = {
				"KCMweapons.HandCrossbow", 0.6,
				"KCMweapons.CrossbowBolt",0.6,
				"KCMweapons.CrossbowBoltBox",0.2,
				"KCMweapons.LargeCrossbow", 0.5,
				"KCMweapons.CrossbowBoltLarge",0.5,
				"KCMweapons.CrossbowBoltLargeBox",0.4,
				"KCMweapons.KCM_Compound", 0.3,
				"KCMweapons.KCM_Compound02", 0.2,
            },
        },
    },
}

table.insert(Distributions, 1, distributionTable);

--for mod compat:
SuburbsDistributions = distributionTable;
