local pickupConsts = require("ui.pickupConsts")
local resourceConsts = {}
resourceConsts.INT_MAX = 2147483647
resourceConsts.SUBMENU_MAX_INDEX = 9
resourceConsts.WALLET_KRATOS = "HERO"
resourceConsts.WALLET_BROK = "BROK00"
resourceConsts.WALLET_SINDRI = "SINDRI00"
resourceConsts.WALLET_LOST_ITEMS = "LOST_ITEMS"
resourceConsts.WALLET_KRATOS_SAVEONLY = "HERO_SAVEONLY"
resourceConsts.RESOURCE_FLAG_DISPLAY_UI = "DisplayUI"
resourceConsts.RESOURCE_FLAG_RESOURCE = "Resource"
resourceConsts.RESOURCE_FLAG_RECIPE = "Recipe"
resourceConsts.RESOURCE_FLAG_RUNE = "Rune"
resourceConsts.RESOURCE_FLAG_ARTIFACT = "Artifact"
resourceConsts.RESOURCE_FLAG_PICKUP = "Pickup"
resourceConsts.RESOURCE_FLAG_EXPERIENCE = "Experience"
resourceConsts.RESOURCE_FLAG_SON_LANGUAGE = "SonLanguage"
resourceConsts.RESOURCE_FLAG_LORE = "Lore"
resourceConsts.RESOURCE_FLAG_QUEST_ITEM = "QuestItem"
resourceConsts.RESOURCE_FLAG_CRITICAL_PATH = "CriticalPath"
resourceConsts.RESOURCE_FLAG_TUTORIAL = "Tutorial"
resourceConsts.RESOURCE_FLAG_BEASTIARY = "Beastiary"
resourceConsts.RESOURCE_FLAG_UNIQUE = "UniqueResource"
resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE = "ResurrectionStone"
resourceConsts.RESOURCE_FLAG_LOST_ITEM = "LostItem"
resourceConsts.RESOURCE_FLAG_SAVEONLY = "SaveOnly"
resourceConsts.RESOURCE_FLAG_STORY_ITEM = "StoryItem"
resourceConsts.RESOURCE_FLAG_AXE_FLAME = "AxeFlame"
resourceConsts.RESOURCE_FLAG_BLADE_FLAME = "BladeFlame"
resourceConsts.RESOURCE_FLAG_CRAFT = "Craft"
resourceConsts.RESOURCE_FLAG_UPGRADE = "Upgrade"
resourceConsts.RESOURCE_FLAG_BUY = "Buy"
resourceConsts.RESOURCE_FLAG_SELL = "Sell"
resourceConsts.RESOURCE_FLAG_SKILL_TREE = "SkillTree"
resourceConsts.RESOURCE_FLAG_GENERATE_RUNE = "GenerateRune"
resourceConsts.RESOURCE_FLAG_ROLL_CONDITION = "RollCondition"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_RECIPE = "WeaponSpecial_Recipe"
resourceConsts.RESOURCE_HEALTH_UPGRADE = "HealthUpgrade"
resourceConsts.RESOURCE_RAGE_UPGRADE = "RageUpgrade"
resourceConsts.RESOURCE_FLAG_KRATOS = "Kratos"
resourceConsts.RESOURCE_FLAG_SON = "Son"
resourceConsts.RESOURCE_FLAG_BROK = "Brok"
resourceConsts.RESOURCE_FLAG_SINDRI = "Sindri"
resourceConsts.RESOURCE_FLAG_ECONOMY = "Economy"
resourceConsts.RESOURCE_FLAG_COMMON = "Common"
resourceConsts.RESOURCE_FLAG_RARE = "Rare"
resourceConsts.RESOURCE_FLAG_LEGENDARY = "Legendary"
resourceConsts.RESOURCE_FLAG_EPIC = "Epic"
resourceConsts.RESOURCE_FLAG_PERFECT = "Perfect"
resourceConsts.RESOURCE_FLAG_UNIQUE_RUNE = "UniqueRune"
resourceConsts.RESOURCE_FLAG_TIER_01 = "Tier01"
resourceConsts.RESOURCE_FLAG_TIER_02 = "Tier02"
resourceConsts.RESOURCE_FLAG_TIER_03 = "Tier03"
resourceConsts.RESOURCE_FLAG_TIER_04 = "Tier04"
resourceConsts.RESOURCE_FLAG_TIER_05 = "Tier05"
resourceConsts.RESOURCE_FLAG_TIER_06 = "Tier06"
resourceConsts.RESOURCE_FLAG_TIER_07 = "Tier07"
resourceConsts.RESOURCE_FLAG_TIER_08 = "Tier08"
resourceConsts.RESOURCE_FLAG_TIER_09 = "Tier09"
resourceConsts.MAX_TIER = 7
resourceConsts.RESOURCE_FLAG_PRIMARY_WEAPON = pickupConsts.Slot_PrimaryWeapon
resourceConsts.RESOURCE_FLAG_ARMOR_CHEST = pickupConsts.Slot_ArmorChest
resourceConsts.RESOURCE_FLAG_ARMOR_LEGS = pickupConsts.Slot_ArmorLegs
resourceConsts.RESOURCE_FLAG_ARMOR_WRIST = pickupConsts.Slot_ArmorWrist
resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET = pickupConsts.Slot_ArmorTrinket
resourceConsts.RESOURCE_FLAG_SON_ARMOR = pickupConsts.Slot_SonArmor
resourceConsts.RESOURCE_FLAG_SOCKET_WEAPON = "SocketWeapon"
resourceConsts.RESOURCE_FLAG_SOCKET_ARMOR = "SocketArmor"
resourceConsts.RESOURCE_FLAG_AXE = pickupConsts.Axe
resourceConsts.RESOURCE_FLAG_BLADES = pickupConsts.Blades
resourceConsts.RESOURCE_FLAG_SON_BOW = pickupConsts.SonBow
resourceConsts.RESOURCE_FLAG_QUIVER = "Quiver"
resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT = "WeaponComponent"
resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES = "WeaponComponent_Blades"
resourceConsts.RESOURCE_FLAG_WEAPON_PERK = "Perk"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT = "WeaponSpecial_Light"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY = "WeaponSpecial_Heavy"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT = "WeaponSpecial_Blades_Light"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY = "WeaponSpecial_Blades_Heavy"
resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_SON = "SonSpecial"
resourceConsts.RESOURCE_FLAG_SKILL_TREE_NODE_LEVEL = "NodeLevel"
resourceConsts.RESOURCE_FLAG_SKILL_ARROW_LIGHT = "LightArrow"
resourceConsts.RESOURCE_FLAG_SKILL_ARROW_ELECTRIC = "ElectricArrow"
resourceConsts.RESOURCE_FLAG_DUMMY = "Dummy"
resourceConsts.RESOURCE_FLAG_ARTIFACT_TOY_PARENT = "ArtifactToyParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_TOY = "ArtifactToy"
resourceConsts.RESOURCE_FLAG_ARTIFACT_MASK_PARENT = "ArtifactMaskParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_MASK = "ArtifactMask"
resourceConsts.RESOURCE_FLAG_ARTIFACT_SHIP_PARENT = "ArtifactShipParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_SHIP = "ArtifactShip"
resourceConsts.RESOURCE_FLAG_ARTIFACT_ALFHEIM_PARENT = "ArtifactAlfheimParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_ALFHEIM = "ArtifactAlfheim"
resourceConsts.RESOURCE_FLAG_ARTIFACT_CUP_PARENT = "ArtifactCupParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_CUP = "ArtifactCup"
resourceConsts.RESOURCE_FLAG_ARTIFACT_HORN_PARENT = "ArtifactHornParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_HORN = "ArtifactHorn"
resourceConsts.RESOURCE_FLAG_ARTIFACT_BROOCH_PARENT = "ArtifactBroochParent"
resourceConsts.RESOURCE_FLAG_ARTIFACT_BROOCH = "ArtifactBrooch"
resourceConsts.RESOURCE_FLAG_AB_RUNIC_CONCUSSION = "AB_Runic_Concussion"
resourceConsts.RESOURCE_FLAG_AB_FOCUS_ATTACK = "AB_Focus_Attack"
resourceConsts.RESOURCE_FLAG_AB_RUNIC_FROST = "AB_Runic_Frost"
resourceConsts.RESOURCE_FLAG_AB_RESISTANCE_ARMOR = "AB_Resistance_Armor"
resourceConsts.RESOURCE_FLAG_ARMOR_SPEED = "Speed"
resourceConsts.RESOURCE_FLAG_ARMOR_DEFENSE = "Defense"
resourceConsts.RESOURCE_FLAG_ARMOR_OFFENSE = "Offense"
resourceConsts.RESOURCE_FLAG_ARMOR_HULDRA_BROK = "HuldraBrok"
resourceConsts.RESOURCE_FLAG_ARMOR_HULDRA_SINDRI = "HuldraSindri"
resourceConsts.RESOURCE_FLAG_ARMOR_TYR = "Tyr"
resourceConsts.RESOURCE_FLAG_ARMOR_TRAVELER = "Traveler"
resourceConsts.RESOURCE_FLAG_ARMOR_VALKYRIE = "Valkyrie"
resourceConsts.RESOURCE_FLAG_ARMOR_MUSPELHEIM = "Muspelheim"
resourceConsts.RESOURCE_FLAG_ARMOR_NIFLHEIM = "Niflheim"
resourceConsts.RESOURCE_FLAG_ARMOR_GOLEM = "Golem"
resourceConsts.RESOURCE_FLAG_TAG_AURA = "Tag_Aura"
resourceConsts.RESOURCE_FLAG_TAG_ATTACK = "Tag_Attack"
resourceConsts.RESOURCE_FLAG_TAG_PROTECTION = "Tag_Protection"
resourceConsts.RESOURCE_FLAG_TAG_TEMPORAL_SHIFT = "Tag_TemporalShift"
resourceConsts.RESOURCE_FLAG_TAG_RESTORE_RAGE = "Tag_RestoreRage"
resourceConsts.RESOURCE_FLAG_TAG_RESTORE_BLIGHT = "Tag_RestoreBlight"
resourceConsts.RESOURCE_FLAG_TAG_RESTORE_HEALTH = "Tag_RestoreHealth"
resourceConsts.RESOURCE_FLAG_TAG_RESTORE_COOLDOWN = "Tag_RestoreCooldown"
resourceConsts.RESOURCE_FLAG_TAG_BUFF_RUNIC = "Tag_BuffRunic"
resourceConsts.RESOURCE_FLAG_TAG_BUFF_STRENGTH = "Tag_BuffStrength"
resourceConsts.RESOURCE_FLAG_TAG_BUFF_DEFENSE = "Tag_BuffDefense"
resourceConsts.RESOURCE_FLAG_TAG_BUFF_RANDOM = "Tag_BuffRandom"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_FROST = "Tag_ResistFrost"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_FIRE = "Tag_ResistFire"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_BLIND = "Tag_ResistBlind"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_POISON = "Tag_ResistPoison"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_DARK_ONE = "Tag_ResistDarkOne"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_VALKYRIE = "Tag_ResistValkyrie"
resourceConsts.RESOURCE_FLAG_TAG_RESIST_NIFLHEIM = "Tag_ResistNiflheim"
resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_TRAIT = "Tag_EnhanceTrait"
resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_AXE_RUNIC = "Tag_EnhanceAxeRunic"
resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_AXE_BLADE_RUNIC = "Tag_EnhanceAxeBladeRunic"
resourceConsts.RESOURCE_FLAG_B_OVAL = "B_Oval"
resourceConsts.RESOURCE_FLAG_B_SQUARE = "B_Square"
resourceConsts.RESOURCE_FLAG_B_SHARD = "B_Shard"
resourceConsts.RESOURCE_FLAG_B_TRIANGLE = "B_Triangle"
resourceConsts.RESOURCE_FLAG_B_DIAMOND = "B_Diamond"
resourceConsts.RESOURCE_FLAG_C_OVAL = "C_Oval"
resourceConsts.RESOURCE_FLAG_C_SQUARE = "C_Square"
resourceConsts.RESOURCE_FLAG_C_SHARD = "C_Shard"
resourceConsts.RESOURCE_FLAG_C_TRIANGLE = "C_Triangle"
resourceConsts.RESOURCE_FLAG_C_DIAMOND = "C_Diamond"
resourceConsts.RESOURCE_FLAG_M_OVAL = "M_Oval"
resourceConsts.RESOURCE_FLAG_M_SQUARE = "M_Square"
resourceConsts.RESOURCE_FLAG_M_SHARD = "M_Shard"
resourceConsts.RESOURCE_FLAG_M_TRIANGLE = "M_Triangle"
resourceConsts.RESOURCE_FLAG_M_DIAMOND = "M_Diamond"
resourceConsts.RESOURCE_FLAG_S_OVAL = "S_Oval"
resourceConsts.RESOURCE_FLAG_S_SQUARE = "S_Square"
resourceConsts.RESOURCE_FLAG_S_SHARD = "S_Shard"
resourceConsts.RESOURCE_FLAG_S_TRIANGLE = "S_Triangle"
resourceConsts.RESOURCE_FLAG_S_DIAMOND = "S_Diamond"
resourceConsts.RESOURCE_FLAG_X_OVAL = "X_Oval"
resourceConsts.RESOURCE_FLAG_X_SQUARE = "X_Square"
resourceConsts.RESOURCE_FLAG_X_SHARD = "X_Shard"
resourceConsts.RESOURCE_FLAG_X_TRIANGLE = "X_Triangle"
resourceConsts.RESOURCE_FLAG_X_DIAMOND = "X_Diamond"
resourceConsts.RESOURCE_FLAG_CRYSTAL1 = "Crystal1"
resourceConsts.RESOURCE_FLAG_CRYSTAL2 = "Crystal2"
resourceConsts.RESOURCE_FLAG_BROOCH1 = "Brooch1"
resourceConsts.RESOURCE_FLAG_BROOCH2 = "Brooch2"
resourceConsts.RESOURCE_FLAG_BROOCH3 = "Brooch3"
resourceConsts.RESOURCE_FLAG_REALM1 = "Realm1"
resourceConsts.RESOURCE_FLAG_REALM2 = "Realm2"
resourceConsts.RESOURCE_FLAG_REALM3 = "Realm3"
resourceConsts.RESOURCE_FLAG_REALM4 = "Realm4"
resourceConsts.RESOURCE_FLAG_JEWELRY1 = "Jewelry1"
resourceConsts.RESOURCE_FLAG_JEWELRY2 = "Jewelry2"
resourceConsts.RESOURCE_FLAG_JEWELRY3 = "Jewelry3"
resourceConsts.RESOURCE_FLAG_JEWELRY4 = "Jewelry4"
resourceConsts.RESOURCE_FLAG_JEWELRY5 = "Jewelry5"
resourceConsts.RESOURCE_FLAG_JEWELRY6 = "Jewelry6"
resourceConsts.RESOURCE_FLAG_JEWELRY7 = "Jewelry7"
resourceConsts.RESOURCE_FLAG_RELIC1 = "Relic1"
resourceConsts.RESOURCE_FLAG_RELIC2 = "Relic2"
resourceConsts.RESOURCE_FLAG_RELIC3 = "Relic3"
resourceConsts.RESOURCE_FLAG_RELIC4 = "Relic4"
resourceConsts.RESOURCE_FLAG_RELIC5 = "Relic5"
resourceConsts.RESOURCE_FLAG_RELIC6 = "Relic6"
resourceConsts.RESOURCE_FLAG_PRISTINE = "Pristine"
resourceConsts.RESOURCE_FLAG_CRACKED = "Cracked"
resourceConsts.RESOURCE_FLAG_CHIPPED = "Chipped"
resourceConsts.RESOURCE_FLAG_ROUGH = "Rough"
resourceConsts.RESOURCE_FLAG_DONOTDISPLAYRUNE = "DoNotDisplay"
resourceConsts.INFO_CARD_ID_DEFAULT = 1
resourceConsts.INFO_CARD_ID_GEM = 2
resourceConsts.INFO_CARD_ID_WEAPON = 3
resourceConsts.RARITY_FLAGS = {
  resourceConsts.RESOURCE_FLAG_ECONOMY,
  resourceConsts.RESOURCE_FLAG_COMMON,
  resourceConsts.RESOURCE_FLAG_RARE,
  resourceConsts.RESOURCE_FLAG_LEGENDARY,
  resourceConsts.RESOURCE_FLAG_EPIC,
  resourceConsts.RESOURCE_FLAG_PERFECT
}
resourceConsts.TIER_FLAGS = {
  resourceConsts.RESOURCE_FLAG_TIER_01,
  resourceConsts.RESOURCE_FLAG_TIER_02,
  resourceConsts.RESOURCE_FLAG_TIER_03,
  resourceConsts.RESOURCE_FLAG_TIER_04,
  resourceConsts.RESOURCE_FLAG_TIER_05,
  resourceConsts.RESOURCE_FLAG_TIER_06,
  resourceConsts.RESOURCE_FLAG_TIER_07,
  resourceConsts.RESOURCE_FLAG_TIER_08,
  resourceConsts.RESOURCE_FLAG_TIER_09
}
resourceConsts.ARMOR_FLAGS = {
  resourceConsts.RESOURCE_FLAG_ARMOR_SPEED,
  resourceConsts.RESOURCE_FLAG_ARMOR_DEFENSE,
  resourceConsts.RESOURCE_FLAG_ARMOR_OFFENSE,
  resourceConsts.RESOURCE_FLAG_ARMOR_HULDRA_BROK,
  resourceConsts.RESOURCE_FLAG_ARMOR_HULDRA_SINDRI,
  resourceConsts.RESOURCE_FLAG_ARMOR_TYR,
  resourceConsts.RESOURCE_FLAG_ARMOR_TRAVELER,
  resourceConsts.RESOURCE_FLAG_ARMOR_VALKYRIE,
  resourceConsts.RESOURCE_FLAG_ARMOR_MUSPELHEIM,
  resourceConsts.RESOURCE_FLAG_ARMOR_NIFLHEIM,
  resourceConsts.RESOURCE_FLAG_ARMOR_GOLEM
}
resourceConsts.RUNIC_ATTACK_FLAGS = {
  resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT,
  resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY,
  resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT,
  resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY,
  resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_SON
}
resourceConsts.RESOURCE_XP = "EconomyXP"
resourceConsts.PICKUP_XP_RESOURCES = {
  [pickupConsts.Axe] = "AxeXP",
  [pickupConsts.Blades] = "BladesXP"
}
resourceConsts.SOCKET_TYPE_WEAPON = "SocketWeapon"
resourceConsts.SOCKET_TYPE_ARMOR = "SocketArmor"
resourceConsts.RUNE_SHAPE_FLAGS = {
  resourceConsts.RESOURCE_FLAG_B_OVAL,
  resourceConsts.RESOURCE_FLAG_B_SQUARE,
  resourceConsts.RESOURCE_FLAG_B_SHARD,
  resourceConsts.RESOURCE_FLAG_B_TRIANGLE,
  resourceConsts.RESOURCE_FLAG_B_DIAMOND,
  resourceConsts.RESOURCE_FLAG_C_OVAL,
  resourceConsts.RESOURCE_FLAG_C_SQUARE,
  resourceConsts.RESOURCE_FLAG_C_SHARD,
  resourceConsts.RESOURCE_FLAG_C_TRIANGLE,
  resourceConsts.RESOURCE_FLAG_C_DIAMOND,
  resourceConsts.RESOURCE_FLAG_M_OVAL,
  resourceConsts.RESOURCE_FLAG_M_SQUARE,
  resourceConsts.RESOURCE_FLAG_M_SHARD,
  resourceConsts.RESOURCE_FLAG_M_TRIANGLE,
  resourceConsts.RESOURCE_FLAG_M_DIAMOND,
  resourceConsts.RESOURCE_FLAG_S_OVAL,
  resourceConsts.RESOURCE_FLAG_S_SQUARE,
  resourceConsts.RESOURCE_FLAG_S_SHARD,
  resourceConsts.RESOURCE_FLAG_S_TRIANGLE,
  resourceConsts.RESOURCE_FLAG_S_DIAMOND,
  resourceConsts.RESOURCE_FLAG_X_OVAL,
  resourceConsts.RESOURCE_FLAG_X_SQUARE,
  resourceConsts.RESOURCE_FLAG_X_SHARD,
  resourceConsts.RESOURCE_FLAG_X_TRIANGLE,
  resourceConsts.RESOURCE_FLAG_X_DIAMOND,
  resourceConsts.RESOURCE_FLAG_CRYSTAL1,
  resourceConsts.RESOURCE_FLAG_CRYSTAL2,
  resourceConsts.RESOURCE_FLAG_BROOCH1,
  resourceConsts.RESOURCE_FLAG_BROOCH2,
  resourceConsts.RESOURCE_FLAG_BROOCH3,
  resourceConsts.RESOURCE_FLAG_REALM1,
  resourceConsts.RESOURCE_FLAG_REALM2,
  resourceConsts.RESOURCE_FLAG_REALM3,
  resourceConsts.RESOURCE_FLAG_REALM4,
  resourceConsts.RESOURCE_FLAG_JEWELRY1,
  resourceConsts.RESOURCE_FLAG_JEWELRY2,
  resourceConsts.RESOURCE_FLAG_JEWELRY3,
  resourceConsts.RESOURCE_FLAG_JEWELRY4,
  resourceConsts.RESOURCE_FLAG_JEWELRY5,
  resourceConsts.RESOURCE_FLAG_JEWELRY6,
  resourceConsts.RESOURCE_FLAG_JEWELRY7,
  resourceConsts.RESOURCE_FLAG_RELIC1,
  resourceConsts.RESOURCE_FLAG_RELIC2,
  resourceConsts.RESOURCE_FLAG_RELIC3,
  resourceConsts.RESOURCE_FLAG_RELIC4,
  resourceConsts.RESOURCE_FLAG_RELIC5,
  resourceConsts.RESOURCE_FLAG_RELIC6
}
resourceConsts.RUNE_QUALITY_FLAGS = {
  resourceConsts.RESOURCE_FLAG_PRISTINE,
  resourceConsts.RESOURCE_FLAG_CRACKED,
  resourceConsts.RESOURCE_FLAG_CHIPPED,
  resourceConsts.RESOURCE_FLAG_ROUGH
}
resourceConsts.RECIPE_MAX_INPUTS = 4
resourceConsts.RECIPE_SUBMENUS_VENDOR_ONLY = {
  [resourceConsts.RESOURCE_FLAG_BUY] = true,
  [resourceConsts.RESOURCE_FLAG_SELL] = true,
  LostItems = true
}
resourceConsts.RECIPE_SUBMENUS_SON_SELECTIONS = {
  [resourceConsts.RESOURCE_FLAG_SON_ARMOR] = true,
  [resourceConsts.RESOURCE_FLAG_SON_BOW] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_SON] = true,
  [resourceConsts.RESOURCE_FLAG_QUIVER] = true
}
resourceConsts.RECIPE_SUBMENUS_BLADES_SELECTIONS = {
  [resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES] = true,
  [resourceConsts.RESOURCE_FLAG_BLADES] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY] = true
}
resourceConsts.RECIPE_SUBMENUS_HAS_CATEGORY_INCLUDES = {RunicAttacks = true}
resourceConsts.RECIPE_SUBMENUS_MAIN_SELECTIONS = {
  [resourceConsts.RESOURCE_FLAG_CRAFT] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_CHEST,
    resourceConsts.RESOURCE_FLAG_ARMOR_WRIST,
    resourceConsts.RESOURCE_FLAG_ARMOR_LEGS,
    resourceConsts.RESOURCE_FLAG_SON_ARMOR,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES,
    resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET
  },
  [resourceConsts.RESOURCE_FLAG_UPGRADE] = {
    resourceConsts.RESOURCE_FLAG_AXE,
    resourceConsts.RESOURCE_FLAG_BLADES,
    resourceConsts.RESOURCE_FLAG_SON_BOW,
    resourceConsts.RESOURCE_FLAG_QUIVER,
    resourceConsts.RESOURCE_FLAG_ARMOR_CHEST,
    resourceConsts.RESOURCE_FLAG_ARMOR_WRIST,
    resourceConsts.RESOURCE_FLAG_ARMOR_LEGS,
    resourceConsts.RESOURCE_FLAG_SON_ARMOR,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES,
    resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET
  },
  [resourceConsts.RESOURCE_FLAG_BUY] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_CHEST,
    resourceConsts.RESOURCE_FLAG_ARMOR_WRIST,
    resourceConsts.RESOURCE_FLAG_ARMOR_LEGS,
    resourceConsts.RESOURCE_FLAG_SON_ARMOR,
    resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES,
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT,
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY,
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT,
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY,
    resourceConsts.RESOURCE_FLAG_RUNE,
    resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE,
    resourceConsts.RESOURCE_FLAG_RESOURCE
  },
  [resourceConsts.RESOURCE_FLAG_SELL] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_CHEST,
    resourceConsts.RESOURCE_FLAG_ARMOR_WRIST,
    resourceConsts.RESOURCE_FLAG_ARMOR_LEGS,
    resourceConsts.RESOURCE_FLAG_SON_ARMOR,
    resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT,
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES,
    resourceConsts.RESOURCE_FLAG_ARTIFACT,
    resourceConsts.RESOURCE_FLAG_RUNE,
    resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE,
    resourceConsts.RESOURCE_FLAG_RESOURCE
  },
  LostItems = {"LostItems"}
}
resourceConsts.RECIPE_SUBMENUS_CATEGORY_SELECTIONS = {
  [resourceConsts.RESOURCE_FLAG_ARMOR_CHEST] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_CHEST
  },
  [resourceConsts.RESOURCE_FLAG_ARMOR_WRIST] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_WRIST
  },
  [resourceConsts.RESOURCE_FLAG_ARMOR_LEGS] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_LEGS
  },
  [resourceConsts.RESOURCE_FLAG_SON_ARMOR] = {
    resourceConsts.RESOURCE_FLAG_SON_ARMOR
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES
  },
  [resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET] = {
    resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET
  },
  [resourceConsts.RESOURCE_FLAG_AXE] = {
    resourceConsts.RESOURCE_FLAG_AXE
  },
  [resourceConsts.RESOURCE_FLAG_BLADES] = {
    resourceConsts.RESOURCE_FLAG_BLADES
  },
  [resourceConsts.RESOURCE_FLAG_SON_BOW] = {
    resourceConsts.RESOURCE_FLAG_SON_BOW
  },
  [resourceConsts.RESOURCE_FLAG_QUIVER] = {
    resourceConsts.RESOURCE_FLAG_QUIVER
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT
  },
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY
  },
  [resourceConsts.RESOURCE_FLAG_RUNE] = {
    resourceConsts.RESOURCE_FLAG_RUNE
  },
  [resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE] = {
    resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE
  },
  [resourceConsts.RESOURCE_FLAG_ARTIFACT] = {
    resourceConsts.RESOURCE_FLAG_ARTIFACT
  },
  [resourceConsts.RESOURCE_FLAG_RESOURCE] = {
    resourceConsts.RESOURCE_FLAG_RESOURCE
  },
  LostItems = {"LostItems"}
}
resourceConsts.RECIPE_SUBMENUS_CATEGORY_EXTRA_INCLUDE_FLAGS = {
  [resourceConsts.RESOURCE_FLAG_SON_BOW] = {
    resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_SON
  }
}
resourceConsts.RECIPE_SUBMENUS_HIDE_ATTR_CAT_SELECTIONS = {
  [resourceConsts.RESOURCE_FLAG_SON_ARMOR] = true,
  [resourceConsts.RESOURCE_FLAG_SON_BOW] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_SON] = true,
  [resourceConsts.RESOURCE_FLAG_QUIVER] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_LIGHT] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_HEAVY] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_LIGHT] = true,
  [resourceConsts.RESOURCE_FLAG_WEAPON_SPECIAL_BLADES_HEAVY] = true,
  [resourceConsts.RESOURCE_FLAG_RUNE] = true,
  [resourceConsts.RESOURCE_FLAG_ARTIFACT] = true,
  [resourceConsts.RESOURCE_FLAG_RESOURCE] = true
}
resourceConsts.RESOURCE_LORE_CATEGORY_FLAGS = {
  "Tryptich",
  "LoreMarker",
  "RuneRead",
  "Scroll",
  "MimirLore",
  "Location"
}
resourceConsts.SORTING_GROUP_RARITY_STATS = "Rarity_Stats"
resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS = "Rarity_Stats_Effects"
resourceConsts.RECIPE_SUBMENUS_CATEGORY_SORTING_GROUP_INDEX = {
  [resourceConsts.RESOURCE_FLAG_ARMOR_CHEST] = resourceConsts.SORTING_GROUP_RARITY_STATS,
  [resourceConsts.RESOURCE_FLAG_ARMOR_WRIST] = resourceConsts.SORTING_GROUP_RARITY_STATS,
  [resourceConsts.RESOURCE_FLAG_ARMOR_LEGS] = resourceConsts.SORTING_GROUP_RARITY_STATS,
  [resourceConsts.RESOURCE_FLAG_SON_ARMOR] = nil,
  [resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT] = resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS,
  [resourceConsts.RESOURCE_FLAG_WEAPON_COMPONENT_BLADES] = resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS,
  [resourceConsts.RESOURCE_FLAG_ARMOR_TRINKET] = resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS,
  [resourceConsts.RESOURCE_FLAG_AXE] = nil,
  [resourceConsts.RESOURCE_FLAG_BLADES] = nil,
  [resourceConsts.RESOURCE_FLAG_SON_BOW] = nil,
  [resourceConsts.RESOURCE_FLAG_QUIVER] = nil,
  [resourceConsts.RESOURCE_FLAG_RUNE] = resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS,
  [resourceConsts.RESOURCE_FLAG_RESURRECTION_STONE] = nil,
  [resourceConsts.RESOURCE_FLAG_ARTIFACT] = nil,
  [resourceConsts.RESOURCE_FLAG_RESOURCE] = nil,
  LostItems = nil
}
resourceConsts.POWER_LEVEL_SORTING = "PowerLevel"
resourceConsts.RARITY_SORTING = {
  resourceConsts.RESOURCE_FLAG_PERFECT,
  resourceConsts.RESOURCE_FLAG_EPIC,
  resourceConsts.RESOURCE_FLAG_LEGENDARY,
  resourceConsts.RESOURCE_FLAG_RARE,
  resourceConsts.RESOURCE_FLAG_COMMON
}
resourceConsts.EFFECTS_SORTING = {
  resourceConsts.RESOURCE_FLAG_TAG_AURA,
  resourceConsts.RESOURCE_FLAG_TAG_ATTACK,
  resourceConsts.RESOURCE_FLAG_TAG_PROTECTION,
  resourceConsts.RESOURCE_FLAG_TAG_TEMPORAL_SHIFT,
  resourceConsts.RESOURCE_FLAG_TAG_RESTORE_RAGE,
  resourceConsts.RESOURCE_FLAG_TAG_RESTORE_BLIGHT,
  resourceConsts.RESOURCE_FLAG_TAG_RESTORE_HEALTH,
  resourceConsts.RESOURCE_FLAG_TAG_RESTORE_COOLDOWN,
  resourceConsts.RESOURCE_FLAG_TAG_BUFF_RUNIC,
  resourceConsts.RESOURCE_FLAG_TAG_BUFF_STRENGTH,
  resourceConsts.RESOURCE_FLAG_TAG_BUFF_DEFENSE,
  resourceConsts.RESOURCE_FLAG_TAG_BUFF_RANDOM,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_FROST,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_FIRE,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_BLIND,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_POISON,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_DARK_ONE,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_VALKYRIE,
  resourceConsts.RESOURCE_FLAG_TAG_RESIST_NIFLHEIM,
  resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_TRAIT,
  resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_AXE_RUNIC,
  resourceConsts.RESOURCE_FLAG_TAG_ENHANCE_AXE_BLADE_RUNIC
}
resourceConsts.SORTING_GROUPS = {
  [resourceConsts.SORTING_GROUP_RARITY_STATS] = {
    resourceConsts.RARITY_SORTING,
    "Strength",
    "Runic",
    "Defense",
    "Resistance",
    "Luck",
    "Focus",
    resourceConsts.POWER_LEVEL_SORTING
  },
  [resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS] = {
    resourceConsts.RARITY_SORTING,
    "Strength",
    "Runic",
    "Defense",
    "Resistance",
    "Luck",
    "Focus",
    resourceConsts.EFFECTS_SORTING,
    resourceConsts.POWER_LEVEL_SORTING
  }
}
resourceConsts.SORTING_GROUPS_NAMES = {
  [resourceConsts.SORTING_GROUP_RARITY_STATS] = {
    "Rarity",
    "Strength",
    "Runic",
    "Defense",
    "Resistance",
    "Luck",
    "Focus",
    "PowerLevel"
  },
  [resourceConsts.SORTING_GROUP_RARITY_STATS_EFFECTS] = {
    "Rarity",
    "Strength",
    "Runic",
    "Defense",
    "Resistance",
    "Luck",
    "Focus",
    "Effect",
    "PowerLevel"
  }
}
return resourceConsts
