import createBoom from "./createBoom";
import createCandy2 from "./createCandy2";
import createDonut from "./createDonut";
import createEgg from "./createEgg";
import createGift2 from "./createGift2";
import createIceCream from "./createIceCream";
import createGift3 from "./createGift3";

const createItem = (scale) => {
    const funcs = [createDonut,createBoom,createIceCream];
    // const funcs = [createBoom, createIceCream, createDonut, createCandy2, createGift2, createGift3, createEgg];
    const i = Math.floor(Math.random() * funcs.length);
    const mc = funcs[i](scale);
    return mc;
}

export default createItem;