export const eventsDefault = {
    torch_event: {
        id: 'torch_event',
        w: 10,
        bound: 0,
        time: 'all',
        maxDuration: 9600, //ticks
        is_random: true,
        is_available: false,
        dimension: 'overworld',
        only_on_surface: false
    },
    earth_quake: {
        id: 'earth_quake',
        w: 10,
        bound: 0,
        time: 'all',
        maxDuration: 4000, //ticks
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: false
    },
    bees_attack: {
        id: 'bees_attack',
        w: 10,
        bound: 0,
        time: 'day',
        maxDuration: 600, //ticks
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: true
    },
    skeleton_attack: {
        id: 'skeleton_attack',
        w: 7,
        bound: 0,
        time: 'night',
        maxDuration: 1800, //ticks
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: true
    },
    blood_moon: {
        id: 'blood_moon',
        w: 10,
        bound: 0,
        time: 'night',
        maxDuration: 3000, //ticks + depend on daytime
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: true
    },
    sticky_rain: {
        id: 'sticky_rain',
        w: 10,
        bound: 0,
        time: 'all',
        maxDuration: 8000, //ticks
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: true
    },
    zombie_attack: {
        id: 'zombie_attack',
        w: 7,
        bound: 0,
        time: 'night',
        maxDuration: 1800, //ticks
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: true
    },
    solar_eclipse: {
        id: 'solar_eclipse',
        w: 10,
        bound: 0,
        time: 'day',
        maxDuration: 3000, // + time dependence
        is_random: true,
        is_available: true,
        dimension: 'overworld',
        only_on_surface: false
    },
    black_hole: {
        id: 'black_hole',
        w: 0,
        bound: 0,
        time: 'all',
        maxDuration: undefined,
        is_random: false,
        is_available: true,
        nextDay: 3,
        nextTime: 4000,
        dimension: 'overworld',
        only_on_surface: false
    },
    tornado: {
        id: 'tornado',
        w: 0,
        bound: 0,
        time: 'all',
        maxDuration: undefined,
        is_random: false,
        is_available: true,
        nextDay: 1,
        nextTime: 6000,
        dimension: 'overworld',
        only_on_surface: false
    },
    meteorite: {
        id: 'meteorite',
        w: 0,
        bound: 0,
        time: 'night',
        maxDuration: undefined,
        is_random: false,
        is_available: true,
        nextFallDay: 0,
        nextFallTime: 13000,
        dimension: 'overworld',
        only_on_surface: false
    },
    //unused
    /*none: {
        id: 'none',
        w: 40,
        bound: 0,
        time: 'all',
        is_random: true,
        is_available: true,
        dimension: 'all',
        only_on_surface: false
    }*/
};

export const currentEventDefault = {
    id: undefined,
    status: undefined,
    timer: undefined,
    planned_tick: undefined,
    maxDuration: undefined,
    dimension: undefined,
    only_on_surface: undefined,
    forcedEnd: false,
}

export const anyEventAtDayChanceDefault = 60 //%


export const dayTimeRandomIntervals = {
    meteorite: {
        natural: {
            day: {
                min: 3,
                max: 5,
            },
            time: {
                min: 13000,
                max: 17000,
            }
        }
    },
    tornado: {
        natural: {
            day: {
                min: 2,
                max: 7,
            },
            time: {
                min: 1000,
                max: 12000,
            }
        },
        rain: {
            day: {
                min: 2,
                max: 5,
            },
            time: {
                min: 1000,
                max: 23000,
            }
        }
    },
    black_hole: {
        natural: {
            day: {
                min: 3,
                max: 10,
            },
            time: {
                min: 1000,
                max: 22000,
            }
        }
    }
}