<?php

    global $QUALITY;
    global $RUNE_STAT;

    $a = "VARIALEA";

    $FILTER_CATALOG = [
        "element" => 0,
        "name" => "",
        "min_stars" => 1,
        "max_stars" => 5
    ];

    $FILTER_FUSION = [
        "product" => 0
    ];

    $FILTER_MONSTER = [
        "element" => 0,
        "name" => "",
        "min_stars" => 1,
        "max_stars" => 6,
        "in_storage" => false,
        "without_runes" => false
    ];

    $FILTER_RUNECRAFT = [
        "monster_name" => "",
        "monster_min_stars" => 5,
        "monster_max_stars" => 6,
        "monster_in_storage" => false,
        "rune_min_stars" => 5,
        "rune_max_stars" => 6,
        "rune_min_level" => 0,
        "rune_max_level" => 15,
        "rune_min_quality" => $QUALITY["HERO"],
        "rune_max_quality" => $QUALITY["LEGEND"],
        "rune_min_original_quality" => $QUALITY["HERO"],
        "rune_max_original_quality" => $QUALITY["LEGEND"],
        "rune_min_efficiency" => 0,
        "rune_max_efficiency" => 100,
        "rune_min_max_efficiency" => 0,
        "rune_max_max_efficiency" => 100,
        "rune_slot" => [],
        "grind" => 1,
        "grind_min_quality" => $QUALITY["RARE"],
        "grind_stat" => [
            $RUNE_STAT["HP%"],
            $RUNE_STAT["ATK%"],
            $RUNE_STAT["DEF%"],
            $RUNE_STAT["SPD"],
            $RUNE_STAT["CRD"],
            $RUNE_STAT["CRR"],
            $RUNE_STAT["ACC"]
        ],
        "gem" => 1,
        "gem_min_quality" => $QUALITY["RARE"],
        "gem_stat_from" => [
            $RUNE_STAT["HP"],
            $RUNE_STAT["ATK"],
            $RUNE_STAT["DEF"],
            $RUNE_STAT["RES"]
        ],
        "gem_stat_to" => [
            $RUNE_STAT["HP%"],
            $RUNE_STAT["ATK%"],
            $RUNE_STAT["DEF%"],
            $RUNE_STAT["SPD"],
            $RUNE_STAT["CRD"],
            $RUNE_STAT["CRR"],
            $RUNE_STAT["ACC"]
        ]
    ];

    $FILTER_RUNEUPGRADE = [
        "monster_min_stars" => 5,
        "monster_max_stars" => 6,
        "monster_name" => "",
        "monster_in_storage" => false,
        "rune_min_stars" => 5,
        "rune_max_stars" => 6,
        "rune_min_level" => 0,
        "rune_max_level" => 15,
        "rune_min_quality" => $QUALITY["NORMAL"],
        "rune_max_quality" => $QUALITY["LEGEND"],
        "rune_min_original_quality" => $QUALITY["NORMAL"],
        "rune_max_original_quality" => $QUALITY["LEGEND"],
        "rune_min_efficiency" => 0,
        "rune_max_efficiency" => 100,
        "rune_min_max_efficiency" => 0,
        "rune_max_max_efficiency" => 100,
        "rune_slot" => [],
        "alternative_min_stars" => 5,
        "alternative_min_original_quality" => 0,
        "alternative_min_level" => 0,
        "alternative_condition" => 3,
        "alternative_source" => 0
    ];

    $FILTER_SKILLUP = [
        "min_stars" => 5,
        "max_stars" => 6,
        "min_natural_stars" => 5,
        "max_natural_stars" => 5,
        "in_storage" => false,
        "without_runes" => false,
        "family" => false,
        "maxed" => false,
        "2a" => false,
        "homunculus" => false
    ];

    $FILTER_RUNE = [
        "type" => [],
        "main" => [],
        "sub" => [],
        "slot" => [],
        "min_quality" => $QUALITY["NORMAL"],
        "max_quality" => $QUALITY["LEGEND"],
        "min_original_quality" => $QUALITY["NORMAL"],
        "max_original_quality" => $QUALITY["LEGEND"],
        "min_stars" => 1,
        "max_stars" => 6,
        "min_level" => 0,
        "max_level" => 15,
        "min_efficiency" => 0,
        "max_efficiency" => 100,
        "min_max_efficiency" => 0,
        "max_max_efficiency" => 100,
        "assigned" => 1,
        "group" => "SLOT"
    ];

    $FILTER_RUN = [
        "area_type" => 0,
        "area" => 0,
        "stage" => 0,
        "difficulty" => 0,
        "date_min" => null,
        "date_max" => null,
        "defeat" => false,
        "helper" => false,
        "number" => 20,
    ];
    
    $FILTER_TEAM = [
        "name" => "",
        "area" => null
    ];
?>
