Example #1
0
    public static bool check_sleep_encounter(RandomEncounterQuery setup, RandomEncounter encounter)
    {
        if ((RandomRange(1, 10) == 1))
        {
            encounter.Id = 4000;

            if ((SelectedPartyLeader.GetArea() == 1))
            {
                return(false);
            }
            else if ((SelectedPartyLeader.GetArea() == 2))
            {
                if ((SelectedPartyLeader.GetMap() == 5002))
                {
                    var enemy_list = new[] { (14057, 1, 3, 1), (14089, 2, 4, 1), (14291, 1, 4, 6), (14050, 2, 3, 1), (14094, 1, 2, 3), (14090, 2, 4, 1), (14056, 4, 9, 1), (14088, 1, 3, 1), (14047, 2, 4, 1), (14070, 2, 5, 1) };