@c3d.gg/mwi-types 0.2.5 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +110 -495
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/domains/abilities/abilities.json +3331 -0
  5. package/dist/domains/abilities/constants.d.ts +3 -0
  6. package/dist/domains/abilities/constants.d.ts.map +1 -0
  7. package/dist/domains/abilities/constants.js +97 -0
  8. package/dist/domains/abilities/constants.js.map +1 -0
  9. package/dist/domains/abilities/index.d.ts +3 -0
  10. package/dist/domains/abilities/index.d.ts.map +1 -0
  11. package/dist/domains/abilities/index.js +2 -0
  12. package/dist/domains/abilities/index.js.map +1 -0
  13. package/dist/domains/abilities/types.d.ts +37 -0
  14. package/dist/domains/abilities/types.d.ts.map +1 -0
  15. package/dist/domains/abilities/types.js +2 -0
  16. package/dist/domains/abilities/types.js.map +1 -0
  17. package/dist/domains/actions/action_categories.json +356 -0
  18. package/dist/domains/actions/action_types.json +57 -0
  19. package/dist/domains/actions/actions.json +41966 -0
  20. package/dist/domains/actions/constants.d.ts +7 -0
  21. package/dist/domains/actions/constants.d.ts.map +1 -0
  22. package/dist/domains/actions/constants.js +1501 -0
  23. package/dist/domains/actions/constants.js.map +1 -0
  24. package/dist/domains/actions/index.d.ts +3 -0
  25. package/dist/domains/actions/index.d.ts.map +1 -0
  26. package/dist/domains/actions/index.js +2 -0
  27. package/dist/domains/actions/index.js.map +1 -0
  28. package/dist/domains/actions/types.d.ts +74 -0
  29. package/dist/domains/actions/types.d.ts.map +1 -0
  30. package/dist/domains/actions/types.js +2 -0
  31. package/dist/domains/actions/types.js.map +1 -0
  32. package/dist/domains/actions/utils.d.ts +9 -0
  33. package/dist/domains/actions/utils.d.ts.map +1 -0
  34. package/dist/domains/actions/utils.js +27 -0
  35. package/dist/domains/actions/utils.js.map +1 -0
  36. package/dist/domains/avatar/avatar_outfits.json +572 -0
  37. package/dist/domains/avatar/avatars.json +512 -0
  38. package/dist/domains/avatar/constants.d.ts +3 -0
  39. package/dist/domains/avatar/constants.d.ts.map +1 -0
  40. package/dist/domains/avatar/constants.js +185 -0
  41. package/dist/domains/avatar/constants.js.map +1 -0
  42. package/dist/domains/avatar/index.d.ts +3 -0
  43. package/dist/domains/avatar/index.d.ts.map +1 -0
  44. package/dist/domains/avatar/index.js +2 -0
  45. package/dist/domains/avatar/index.js.map +1 -0
  46. package/dist/domains/avatar/types.d.ts +22 -0
  47. package/dist/domains/avatar/types.d.ts.map +1 -0
  48. package/dist/domains/avatar/types.js +2 -0
  49. package/dist/domains/avatar/types.js.map +1 -0
  50. package/dist/domains/buffs/buff_types.json +474 -0
  51. package/dist/domains/buffs/community_buff_types.json +119 -0
  52. package/dist/domains/buffs/constants.d.ts +4 -0
  53. package/dist/domains/buffs/constants.d.ts.map +1 -0
  54. package/dist/domains/buffs/constants.js +181 -0
  55. package/dist/domains/buffs/constants.js.map +1 -0
  56. package/dist/domains/buffs/index.d.ts +3 -0
  57. package/dist/domains/buffs/index.d.ts.map +1 -0
  58. package/dist/domains/buffs/index.js +2 -0
  59. package/dist/domains/buffs/index.js.map +1 -0
  60. package/dist/domains/buffs/types.d.ts +27 -0
  61. package/dist/domains/buffs/types.d.ts.map +1 -0
  62. package/dist/domains/buffs/types.js +2 -0
  63. package/dist/domains/buffs/types.js.map +1 -0
  64. package/dist/domains/chat/chat_channel_types.json +128 -0
  65. package/dist/domains/chat/chat_icons.json +4352 -0
  66. package/dist/domains/chat/constants.d.ts +3 -0
  67. package/dist/domains/chat/constants.d.ts.map +1 -0
  68. package/dist/domains/chat/constants.js +461 -0
  69. package/dist/domains/chat/constants.js.map +1 -0
  70. package/dist/domains/chat/index.d.ts +3 -0
  71. package/dist/domains/chat/index.d.ts.map +1 -0
  72. package/dist/domains/chat/index.js +2 -0
  73. package/dist/domains/chat/index.js.map +1 -0
  74. package/dist/domains/chat/types.d.ts +20 -0
  75. package/dist/domains/chat/types.d.ts.map +1 -0
  76. package/dist/domains/chat/types.js +2 -0
  77. package/dist/domains/chat/types.js.map +1 -0
  78. package/dist/domains/combat/combat_style.json +68 -0
  79. package/dist/domains/combat/combat_trigger_comparator.json +26 -0
  80. package/dist/domains/combat/combat_trigger_condition.json +596 -0
  81. package/dist/domains/combat/combat_trigger_dependency.json +30 -0
  82. package/dist/domains/combat/constants.d.ts +6 -0
  83. package/dist/domains/combat/constants.d.ts.map +1 -0
  84. package/dist/domains/combat/constants.js +83 -0
  85. package/dist/domains/combat/constants.js.map +1 -0
  86. package/dist/domains/combat/damage_type.json +22 -0
  87. package/dist/domains/combat/index.d.ts +3 -0
  88. package/dist/domains/combat/index.d.ts.map +1 -0
  89. package/dist/domains/combat/index.js +2 -0
  90. package/dist/domains/combat/index.js.map +1 -0
  91. package/dist/domains/combat/types.d.ts +143 -0
  92. package/dist/domains/combat/types.d.ts.map +1 -0
  93. package/dist/domains/combat/types.js +2 -0
  94. package/dist/domains/combat/types.js.map +1 -0
  95. package/dist/domains/game-mode/constants.d.ts +3 -0
  96. package/dist/domains/game-mode/constants.d.ts.map +1 -0
  97. package/dist/domains/game-mode/constants.js +7 -0
  98. package/dist/domains/game-mode/constants.js.map +1 -0
  99. package/dist/domains/game-mode/game_mode.json +32 -0
  100. package/dist/domains/game-mode/index.d.ts +3 -0
  101. package/dist/domains/game-mode/index.d.ts.map +1 -0
  102. package/dist/domains/game-mode/index.js +2 -0
  103. package/dist/domains/game-mode/index.js.map +1 -0
  104. package/dist/domains/game-mode/types.d.ts +14 -0
  105. package/dist/domains/game-mode/types.d.ts.map +1 -0
  106. package/dist/domains/game-mode/types.js +2 -0
  107. package/dist/domains/game-mode/types.js.map +1 -0
  108. package/dist/domains/guild/constants.d.ts +2 -0
  109. package/dist/domains/guild/constants.d.ts.map +1 -0
  110. package/dist/domains/guild/constants.js +7 -0
  111. package/dist/domains/guild/constants.js.map +1 -0
  112. package/dist/domains/guild/guild_character_role.json +58 -0
  113. package/dist/domains/guild/index.d.ts +3 -0
  114. package/dist/domains/guild/index.d.ts.map +1 -0
  115. package/dist/domains/guild/index.js +2 -0
  116. package/dist/domains/guild/index.js.map +1 -0
  117. package/dist/domains/guild/types.d.ts +17 -0
  118. package/dist/domains/guild/types.d.ts.map +1 -0
  119. package/dist/domains/guild/types.js +2 -0
  120. package/dist/domains/guild/types.js.map +1 -0
  121. package/dist/domains/house/constants.d.ts +4 -0
  122. package/dist/domains/house/constants.d.ts.map +1 -0
  123. package/dist/domains/house/constants.js +39 -0
  124. package/dist/domains/house/constants.js.map +1 -0
  125. package/dist/domains/house/house_rooms.json +5553 -0
  126. package/dist/domains/house/index.d.ts +3 -0
  127. package/dist/domains/house/index.d.ts.map +1 -0
  128. package/dist/domains/house/index.js +2 -0
  129. package/dist/domains/house/index.js.map +1 -0
  130. package/dist/domains/house/types.d.ts +16 -0
  131. package/dist/domains/house/types.d.ts.map +1 -0
  132. package/dist/domains/house/types.js +2 -0
  133. package/dist/domains/house/types.js.map +1 -0
  134. package/dist/domains/items/constants.d.ts +8 -0
  135. package/dist/domains/items/constants.d.ts.map +1 -0
  136. package/dist/domains/items/constants.js +1969 -0
  137. package/dist/domains/items/constants.js.map +1 -0
  138. package/dist/domains/items/equipment_types.json +152 -0
  139. package/dist/domains/items/index.d.ts +3 -0
  140. package/dist/domains/items/index.d.ts.map +1 -0
  141. package/dist/domains/items/index.js +2 -0
  142. package/dist/domains/items/index.js.map +1 -0
  143. package/dist/domains/items/item_categories.json +50 -0
  144. package/dist/domains/items/item_locations.json +220 -0
  145. package/dist/domains/items/items.json +65871 -0
  146. package/dist/domains/items/types.d.ts +308 -0
  147. package/dist/domains/items/types.d.ts.map +1 -0
  148. package/dist/domains/items/types.js +2 -0
  149. package/dist/domains/items/types.js.map +1 -0
  150. package/dist/domains/items/utils.d.ts +10 -0
  151. package/dist/domains/items/utils.d.ts.map +1 -0
  152. package/dist/domains/items/utils.js +37 -0
  153. package/dist/domains/items/utils.js.map +1 -0
  154. package/dist/domains/leaderboard/constants.d.ts +3 -0
  155. package/dist/domains/leaderboard/constants.d.ts.map +1 -0
  156. package/dist/domains/leaderboard/constants.js +32 -0
  157. package/dist/domains/leaderboard/constants.js.map +1 -0
  158. package/dist/domains/leaderboard/index.d.ts +3 -0
  159. package/dist/domains/leaderboard/index.d.ts.map +1 -0
  160. package/dist/domains/leaderboard/index.js +2 -0
  161. package/dist/domains/leaderboard/index.js.map +1 -0
  162. package/dist/domains/leaderboard/leaderboard_categories.json +149 -0
  163. package/dist/domains/leaderboard/leaderboard_types.json +56 -0
  164. package/dist/domains/leaderboard/types.d.ts +21 -0
  165. package/dist/domains/leaderboard/types.d.ts.map +1 -0
  166. package/dist/domains/leaderboard/types.js +2 -0
  167. package/dist/domains/leaderboard/types.js.map +1 -0
  168. package/dist/domains/level/constants.d.ts +2 -0
  169. package/dist/domains/level/constants.d.ts.map +1 -0
  170. package/dist/domains/level/constants.js +153 -0
  171. package/dist/domains/level/constants.js.map +1 -0
  172. package/dist/domains/level/index.d.ts +2 -0
  173. package/dist/domains/level/index.d.ts.map +1 -0
  174. package/dist/domains/level/index.js +2 -0
  175. package/dist/domains/level/index.js.map +1 -0
  176. package/dist/domains/monsters/constants.d.ts +2 -0
  177. package/dist/domains/monsters/constants.d.ts.map +1 -0
  178. package/dist/domains/monsters/constants.js +80 -0
  179. package/dist/domains/monsters/constants.js.map +1 -0
  180. package/dist/domains/monsters/index.d.ts +3 -0
  181. package/dist/domains/monsters/index.d.ts.map +1 -0
  182. package/dist/domains/monsters/index.js +2 -0
  183. package/dist/domains/monsters/index.js.map +1 -0
  184. package/dist/domains/monsters/monsters.json +9313 -0
  185. package/dist/domains/monsters/types.d.ts +21 -0
  186. package/dist/domains/monsters/types.d.ts.map +1 -0
  187. package/dist/domains/monsters/types.js +2 -0
  188. package/dist/domains/monsters/types.js.map +1 -0
  189. package/dist/domains/monsters/utils.d.ts +6 -0
  190. package/dist/domains/monsters/utils.d.ts.map +1 -0
  191. package/dist/domains/monsters/utils.js +21 -0
  192. package/dist/domains/monsters/utils.js.map +1 -0
  193. package/dist/domains/name/constants.d.ts +2 -0
  194. package/dist/domains/name/constants.d.ts.map +1 -0
  195. package/dist/domains/name/constants.js +142 -0
  196. package/dist/domains/name/constants.js.map +1 -0
  197. package/dist/domains/name/index.d.ts +3 -0
  198. package/dist/domains/name/index.d.ts.map +1 -0
  199. package/dist/domains/name/index.js +2 -0
  200. package/dist/domains/name/index.js.map +1 -0
  201. package/dist/domains/name/name_colors.json +975 -0
  202. package/dist/domains/name/types.d.ts +10 -0
  203. package/dist/domains/name/types.d.ts.map +1 -0
  204. package/dist/domains/name/types.js +2 -0
  205. package/dist/domains/name/types.js.map +1 -0
  206. package/dist/domains/player/index.d.ts +2 -0
  207. package/dist/domains/player/index.d.ts.map +1 -0
  208. package/dist/domains/player/index.js +2 -0
  209. package/dist/domains/player/index.js.map +1 -0
  210. package/dist/domains/player/types.d.ts +23 -0
  211. package/dist/domains/player/types.d.ts.map +1 -0
  212. package/dist/domains/player/types.js +2 -0
  213. package/dist/domains/player/types.js.map +1 -0
  214. package/dist/{generated/types/recipes.d.ts → domains/recipes/constants.d.ts} +7 -95
  215. package/dist/domains/recipes/constants.d.ts.map +1 -0
  216. package/dist/domains/recipes/constants.js +2655 -0
  217. package/dist/domains/recipes/constants.js.map +1 -0
  218. package/dist/domains/recipes/index.d.ts +4 -0
  219. package/dist/domains/recipes/index.d.ts.map +1 -0
  220. package/dist/domains/recipes/index.js +3 -0
  221. package/dist/domains/recipes/index.js.map +1 -0
  222. package/dist/domains/recipes/recipes.json +21268 -0
  223. package/dist/domains/recipes/types.d.ts +65 -0
  224. package/dist/domains/recipes/types.d.ts.map +1 -0
  225. package/dist/domains/recipes/types.js +2 -0
  226. package/dist/domains/recipes/types.js.map +1 -0
  227. package/dist/domains/recipes/utils.d.ts +11 -0
  228. package/dist/domains/recipes/utils.d.ts.map +1 -0
  229. package/dist/domains/recipes/utils.js +78 -0
  230. package/dist/domains/recipes/utils.js.map +1 -0
  231. package/dist/domains/shared/constants.d.ts +2 -0
  232. package/dist/domains/shared/constants.d.ts.map +1 -0
  233. package/dist/domains/shared/constants.js +22 -0
  234. package/dist/domains/shared/constants.js.map +1 -0
  235. package/dist/domains/shared/index.d.ts +3 -0
  236. package/dist/domains/shared/index.d.ts.map +1 -0
  237. package/dist/domains/shared/index.js +2 -0
  238. package/dist/domains/shared/index.js.map +1 -0
  239. package/dist/domains/shared/openable_loot_drop.json +1276 -0
  240. package/dist/domains/shared/types.d.ts +28 -0
  241. package/dist/domains/shared/types.d.ts.map +1 -0
  242. package/dist/domains/shared/types.js +2 -0
  243. package/dist/domains/shared/types.js.map +1 -0
  244. package/dist/domains/shop/buyable_upgrades.json +338 -0
  245. package/dist/domains/shop/constants.d.ts +5 -0
  246. package/dist/domains/shop/constants.d.ts.map +1 -0
  247. package/dist/domains/shop/constants.js +109 -0
  248. package/dist/domains/shop/constants.js.map +1 -0
  249. package/dist/domains/shop/index.d.ts +3 -0
  250. package/dist/domains/shop/index.d.ts.map +1 -0
  251. package/dist/domains/shop/index.js +2 -0
  252. package/dist/domains/shop/index.js.map +1 -0
  253. package/dist/domains/shop/purchase_bundles.json +226 -0
  254. package/dist/domains/shop/shop_categories.json +12 -0
  255. package/dist/domains/shop/shop_items.json +758 -0
  256. package/dist/domains/shop/types.d.ts +55 -0
  257. package/dist/domains/shop/types.d.ts.map +1 -0
  258. package/dist/domains/shop/types.js +2 -0
  259. package/dist/domains/shop/types.js.map +1 -0
  260. package/dist/domains/skills/constants.d.ts +2 -0
  261. package/dist/domains/skills/constants.d.ts.map +1 -0
  262. package/dist/domains/skills/constants.js +21 -0
  263. package/dist/domains/skills/constants.js.map +1 -0
  264. package/dist/domains/skills/index.d.ts +3 -0
  265. package/dist/domains/skills/index.d.ts.map +1 -0
  266. package/dist/domains/skills/index.js +2 -0
  267. package/dist/domains/skills/index.js.map +1 -0
  268. package/dist/domains/skills/skills.json +128 -0
  269. package/dist/domains/skills/types.d.ts +10 -0
  270. package/dist/domains/skills/types.d.ts.map +1 -0
  271. package/dist/domains/skills/types.js +2 -0
  272. package/dist/domains/skills/types.js.map +1 -0
  273. package/dist/domains/skills/utils.d.ts +3 -0
  274. package/dist/domains/skills/utils.d.ts.map +1 -0
  275. package/dist/domains/skills/utils.js +7 -0
  276. package/dist/domains/skills/utils.js.map +1 -0
  277. package/dist/domains/tasks/constants.d.ts +3 -0
  278. package/dist/domains/tasks/constants.d.ts.map +1 -0
  279. package/dist/domains/tasks/constants.js +18 -0
  280. package/dist/domains/tasks/constants.js.map +1 -0
  281. package/dist/domains/tasks/index.d.ts +3 -0
  282. package/dist/domains/tasks/index.d.ts.map +1 -0
  283. package/dist/domains/tasks/index.js +2 -0
  284. package/dist/domains/tasks/index.js.map +1 -0
  285. package/dist/domains/tasks/random_task_type.json +56 -0
  286. package/dist/domains/tasks/task_shop_items.json +42 -0
  287. package/dist/domains/tasks/types.d.ts +18 -0
  288. package/dist/domains/tasks/types.d.ts.map +1 -0
  289. package/dist/domains/tasks/types.js +2 -0
  290. package/dist/domains/tasks/types.js.map +1 -0
  291. package/dist/index.d.ts +20 -1
  292. package/dist/index.d.ts.map +1 -1
  293. package/dist/index.js +19 -3
  294. package/dist/index.js.map +1 -1
  295. package/package.json +159 -68
  296. package/src/domains/abilities/abilities.json +3331 -0
  297. package/src/domains/actions/action_categories.json +356 -0
  298. package/src/domains/actions/action_types.json +57 -0
  299. package/src/domains/actions/actions.json +41966 -0
  300. package/src/domains/avatar/avatar_outfits.json +572 -0
  301. package/src/domains/avatar/avatars.json +512 -0
  302. package/src/domains/buffs/buff_types.json +474 -0
  303. package/src/domains/buffs/community_buff_types.json +119 -0
  304. package/src/domains/chat/chat_channel_types.json +128 -0
  305. package/src/domains/chat/chat_icons.json +4352 -0
  306. package/src/domains/combat/combat_style.json +68 -0
  307. package/src/domains/combat/combat_trigger_comparator.json +26 -0
  308. package/src/domains/combat/combat_trigger_condition.json +596 -0
  309. package/src/domains/combat/combat_trigger_dependency.json +30 -0
  310. package/src/domains/combat/damage_type.json +22 -0
  311. package/src/domains/game-mode/game_mode.json +32 -0
  312. package/src/domains/guild/guild_character_role.json +58 -0
  313. package/src/domains/house/house_rooms.json +5553 -0
  314. package/src/domains/items/equipment_types.json +152 -0
  315. package/src/domains/items/item_categories.json +50 -0
  316. package/src/domains/items/item_locations.json +220 -0
  317. package/src/domains/items/items.json +65871 -0
  318. package/src/domains/leaderboard/leaderboard_categories.json +149 -0
  319. package/src/domains/leaderboard/leaderboard_types.json +56 -0
  320. package/src/domains/monsters/monsters.json +9313 -0
  321. package/src/domains/name/name_colors.json +975 -0
  322. package/src/domains/recipes/recipes.json +21268 -0
  323. package/src/domains/shared/openable_loot_drop.json +1276 -0
  324. package/src/domains/shop/buyable_upgrades.json +338 -0
  325. package/src/domains/shop/purchase_bundles.json +226 -0
  326. package/src/domains/shop/shop_categories.json +12 -0
  327. package/src/domains/shop/shop_items.json +758 -0
  328. package/src/domains/skills/skills.json +128 -0
  329. package/src/domains/tasks/random_task_type.json +56 -0
  330. package/src/domains/tasks/task_shop_items.json +42 -0
  331. package/LICENSE +0 -21
  332. package/dist/generated/index.d.ts +0 -30
  333. package/dist/generated/index.d.ts.map +0 -1
  334. package/dist/generated/index.js +0 -34
  335. package/dist/generated/index.js.map +0 -1
  336. package/dist/generated/localization/en/translations.d.ts +0 -32
  337. package/dist/generated/localization/en/translations.d.ts.map +0 -1
  338. package/dist/generated/localization/en/translations.js +0 -2894
  339. package/dist/generated/localization/en/translations.js.map +0 -1
  340. package/dist/generated/localization/index.d.ts +0 -7
  341. package/dist/generated/localization/index.d.ts.map +0 -1
  342. package/dist/generated/localization/index.js +0 -8
  343. package/dist/generated/localization/index.js.map +0 -1
  344. package/dist/generated/localization/utils.d.ts +0 -14
  345. package/dist/generated/localization/utils.d.ts.map +0 -1
  346. package/dist/generated/localization/utils.js +0 -28
  347. package/dist/generated/localization/utils.js.map +0 -1
  348. package/dist/generated/localization/zh/translations.d.ts +0 -32
  349. package/dist/generated/localization/zh/translations.d.ts.map +0 -1
  350. package/dist/generated/localization/zh/translations.js +0 -2894
  351. package/dist/generated/localization/zh/translations.js.map +0 -1
  352. package/dist/generated/types/abilities.d.ts +0 -12
  353. package/dist/generated/types/abilities.d.ts.map +0 -1
  354. package/dist/generated/types/abilities.js +0 -477
  355. package/dist/generated/types/abilities.js.map +0 -1
  356. package/dist/generated/types/action-categories.d.ts +0 -39
  357. package/dist/generated/types/action-categories.d.ts.map +0 -1
  358. package/dist/generated/types/action-categories.js +0 -803
  359. package/dist/generated/types/action-categories.js.map +0 -1
  360. package/dist/generated/types/actions.d.ts +0 -144
  361. package/dist/generated/types/actions.d.ts.map +0 -1
  362. package/dist/generated/types/actions.js +0 -48406
  363. package/dist/generated/types/actions.js.map +0 -1
  364. package/dist/generated/types/avatar.d.ts +0 -34
  365. package/dist/generated/types/avatar.d.ts.map +0 -1
  366. package/dist/generated/types/avatar.js +0 -1000
  367. package/dist/generated/types/avatar.js.map +0 -1
  368. package/dist/generated/types/avatars.d.ts +0 -34
  369. package/dist/generated/types/avatars.d.ts.map +0 -1
  370. package/dist/generated/types/avatars.js +0 -1110
  371. package/dist/generated/types/avatars.js.map +0 -1
  372. package/dist/generated/types/buff-types.d.ts +0 -50
  373. package/dist/generated/types/buff-types.d.ts.map +0 -1
  374. package/dist/generated/types/buff-types.js +0 -819
  375. package/dist/generated/types/buff-types.js.map +0 -1
  376. package/dist/generated/types/chat-channel-types.d.ts +0 -19
  377. package/dist/generated/types/chat-channel-types.d.ts.map +0 -1
  378. package/dist/generated/types/chat-channel-types.js +0 -302
  379. package/dist/generated/types/chat-channel-types.js.map +0 -1
  380. package/dist/generated/types/chat-icons.d.ts +0 -56
  381. package/dist/generated/types/chat-icons.d.ts.map +0 -1
  382. package/dist/generated/types/chat-icons.js +0 -6656
  383. package/dist/generated/types/chat-icons.js.map +0 -1
  384. package/dist/generated/types/combat-styles.d.ts +0 -21
  385. package/dist/generated/types/combat-styles.d.ts.map +0 -1
  386. package/dist/generated/types/combat-styles.js +0 -125
  387. package/dist/generated/types/combat-styles.js.map +0 -1
  388. package/dist/generated/types/community-buffs.d.ts +0 -53
  389. package/dist/generated/types/community-buffs.d.ts.map +0 -1
  390. package/dist/generated/types/community-buffs.js +0 -222
  391. package/dist/generated/types/community-buffs.js.map +0 -1
  392. package/dist/generated/types/damage-types.d.ts +0 -17
  393. package/dist/generated/types/damage-types.d.ts.map +0 -1
  394. package/dist/generated/types/damage-types.js +0 -60
  395. package/dist/generated/types/damage-types.js.map +0 -1
  396. package/dist/generated/types/equipment-types.d.ts +0 -17
  397. package/dist/generated/types/equipment-types.d.ts.map +0 -1
  398. package/dist/generated/types/equipment-types.js +0 -249
  399. package/dist/generated/types/equipment-types.js.map +0 -1
  400. package/dist/generated/types/game-modes.d.ts +0 -49
  401. package/dist/generated/types/game-modes.d.ts.map +0 -1
  402. package/dist/generated/types/game-modes.js +0 -118
  403. package/dist/generated/types/game-modes.js.map +0 -1
  404. package/dist/generated/types/guild-character-roles.d.ts +0 -17
  405. package/dist/generated/types/guild-character-roles.d.ts.map +0 -1
  406. package/dist/generated/types/guild-character-roles.js +0 -60
  407. package/dist/generated/types/guild-character-roles.js.map +0 -1
  408. package/dist/generated/types/house-rooms.d.ts +0 -46
  409. package/dist/generated/types/house-rooms.d.ts.map +0 -1
  410. package/dist/generated/types/house-rooms.js +0 -5699
  411. package/dist/generated/types/house-rooms.js.map +0 -1
  412. package/dist/generated/types/item-categories.d.ts +0 -17
  413. package/dist/generated/types/item-categories.d.ts.map +0 -1
  414. package/dist/generated/types/item-categories.js +0 -96
  415. package/dist/generated/types/item-categories.js.map +0 -1
  416. package/dist/generated/types/item-locations.d.ts +0 -17
  417. package/dist/generated/types/item-locations.d.ts.map +0 -1
  418. package/dist/generated/types/item-locations.js +0 -258
  419. package/dist/generated/types/item-locations.js.map +0 -1
  420. package/dist/generated/types/items.d.ts +0 -73
  421. package/dist/generated/types/items.d.ts.map +0 -1
  422. package/dist/generated/types/items.js +0 -69551
  423. package/dist/generated/types/items.js.map +0 -1
  424. package/dist/generated/types/leaderboard-categories.d.ts +0 -33
  425. package/dist/generated/types/leaderboard-categories.d.ts.map +0 -1
  426. package/dist/generated/types/leaderboard-categories.js +0 -393
  427. package/dist/generated/types/leaderboard-categories.js.map +0 -1
  428. package/dist/generated/types/leaderboard-types.d.ts +0 -30
  429. package/dist/generated/types/leaderboard-types.d.ts.map +0 -1
  430. package/dist/generated/types/leaderboard-types.js +0 -163
  431. package/dist/generated/types/leaderboard-types.js.map +0 -1
  432. package/dist/generated/types/leaderboards.d.ts +0 -74
  433. package/dist/generated/types/leaderboards.d.ts.map +0 -1
  434. package/dist/generated/types/leaderboards.js +0 -457
  435. package/dist/generated/types/leaderboards.js.map +0 -1
  436. package/dist/generated/types/monsters.d.ts +0 -97
  437. package/dist/generated/types/monsters.d.ts.map +0 -1
  438. package/dist/generated/types/monsters.js +0 -9857
  439. package/dist/generated/types/monsters.js.map +0 -1
  440. package/dist/generated/types/name-colors.d.ts +0 -44
  441. package/dist/generated/types/name-colors.d.ts.map +0 -1
  442. package/dist/generated/types/name-colors.js +0 -1891
  443. package/dist/generated/types/name-colors.js.map +0 -1
  444. package/dist/generated/types/player-data.d.ts +0 -376
  445. package/dist/generated/types/player-data.d.ts.map +0 -1
  446. package/dist/generated/types/player-data.js +0 -54
  447. package/dist/generated/types/player-data.js.map +0 -1
  448. package/dist/generated/types/purchase-bundles.d.ts +0 -50
  449. package/dist/generated/types/purchase-bundles.d.ts.map +0 -1
  450. package/dist/generated/types/purchase-bundles.js +0 -358
  451. package/dist/generated/types/purchase-bundles.js.map +0 -1
  452. package/dist/generated/types/random-tasks.d.ts +0 -33
  453. package/dist/generated/types/random-tasks.d.ts.map +0 -1
  454. package/dist/generated/types/random-tasks.js +0 -162
  455. package/dist/generated/types/random-tasks.js.map +0 -1
  456. package/dist/generated/types/recipes.d.ts.map +0 -1
  457. package/dist/generated/types/recipes.js +0 -26046
  458. package/dist/generated/types/recipes.js.map +0 -1
  459. package/dist/generated/types/shop-categories.d.ts +0 -17
  460. package/dist/generated/types/shop-categories.d.ts.map +0 -1
  461. package/dist/generated/types/shop-categories.js +0 -42
  462. package/dist/generated/types/shop-categories.js.map +0 -1
  463. package/dist/generated/types/shop-items.d.ts +0 -35
  464. package/dist/generated/types/shop-items.d.ts.map +0 -1
  465. package/dist/generated/types/shop-items.js +0 -1313
  466. package/dist/generated/types/shop-items.js.map +0 -1
  467. package/dist/generated/types/skills.d.ts +0 -15
  468. package/dist/generated/types/skills.d.ts.map +0 -1
  469. package/dist/generated/types/skills.js +0 -219
  470. package/dist/generated/types/skills.js.map +0 -1
  471. package/dist/generated/types/task-shop-items.d.ts +0 -38
  472. package/dist/generated/types/task-shop-items.d.ts.map +0 -1
  473. package/dist/generated/types/task-shop-items.js +0 -160
  474. package/dist/generated/types/task-shop-items.js.map +0 -1
@@ -1,1313 +0,0 @@
1
- export const SHOPITEM_HRIDS = [
2
- '/shop_items/acrobats_ribbon',
3
- '/shop_items/bishops_scroll',
4
- '/shop_items/chaotic_chain',
5
- '/shop_items/cheese_alembic',
6
- '/shop_items/cheese_brush',
7
- '/shop_items/cheese_chisel',
8
- '/shop_items/cheese_enhancer',
9
- '/shop_items/cheese_hammer',
10
- '/shop_items/cheese_hatchet',
11
- '/shop_items/cheese_mace',
12
- '/shop_items/cheese_needle',
13
- '/shop_items/cheese_pot',
14
- '/shop_items/cheese_shears',
15
- '/shop_items/cheese_spatula',
16
- '/shop_items/cheese_spear',
17
- '/shop_items/cheese_sword',
18
- '/shop_items/chimerical_essence',
19
- '/shop_items/chimerical_quiver',
20
- '/shop_items/corsair_crest',
21
- '/shop_items/cursed_ball',
22
- '/shop_items/damaged_anchor',
23
- '/shop_items/dodocamel_plume',
24
- '/shop_items/enchanted_cloak',
25
- '/shop_items/enchanted_essence',
26
- '/shop_items/griffin_leather',
27
- '/shop_items/griffin_talon',
28
- '/shop_items/jackalope_antler',
29
- '/shop_items/knights_ingot',
30
- '/shop_items/kraken_fang',
31
- '/shop_items/kraken_leather',
32
- '/shop_items/maelstrom_plating',
33
- '/shop_items/magicians_cloth',
34
- '/shop_items/manticore_sting',
35
- '/shop_items/marksman_brooch',
36
- '/shop_items/mystic_aura',
37
- '/shop_items/pirate_essence',
38
- '/shop_items/regal_jewel',
39
- '/shop_items/royal_cloth',
40
- '/shop_items/sinister_cape',
41
- '/shop_items/sinister_essence',
42
- '/shop_items/sundering_jewel',
43
- '/shop_items/trainee_alchemy_charm',
44
- '/shop_items/trainee_attack_charm',
45
- '/shop_items/trainee_brewing_charm',
46
- '/shop_items/trainee_cheesesmithing_charm',
47
- '/shop_items/trainee_cooking_charm',
48
- '/shop_items/trainee_crafting_charm',
49
- '/shop_items/trainee_defense_charm',
50
- '/shop_items/trainee_enhancing_charm',
51
- '/shop_items/trainee_foraging_charm',
52
- '/shop_items/trainee_intelligence_charm',
53
- '/shop_items/trainee_magic_charm',
54
- '/shop_items/trainee_melee_charm',
55
- '/shop_items/trainee_milking_charm',
56
- '/shop_items/trainee_ranged_charm',
57
- '/shop_items/trainee_stamina_charm',
58
- '/shop_items/trainee_tailoring_charm',
59
- '/shop_items/trainee_woodcutting_charm',
60
- '/shop_items/wooden_bow',
61
- '/shop_items/wooden_crossbow',
62
- '/shop_items/wooden_fire_staff',
63
- '/shop_items/wooden_nature_staff',
64
- '/shop_items/wooden_water_staff',
65
- ];
66
- export const SHOP_CATEGORIES = [
67
- '/shop_categories/dungeon',
68
- '/shop_categories/general',
69
- ];
70
- export const CURRENCY_ITEMS = [
71
- '/items/chimerical_token',
72
- '/items/coin',
73
- '/items/enchanted_token',
74
- '/items/guardian_aura',
75
- '/items/pirate_token',
76
- '/items/sinister_token',
77
- ];
78
- export const SHOPITEMS = new Map([
79
- [
80
- '/shop_items/acrobats_ribbon',
81
- {
82
- hrid: '/shop_items/acrobats_ribbon',
83
- category: '/shop_categories/dungeon',
84
- itemHrid: '/items/acrobats_ribbon',
85
- costs: [
86
- {
87
- itemHrid: '/items/sinister_token',
88
- count: 2000,
89
- },
90
- ],
91
- sortIndex: 45,
92
- },
93
- ],
94
- [
95
- '/shop_items/bishops_scroll',
96
- {
97
- hrid: '/shop_items/bishops_scroll',
98
- category: '/shop_categories/dungeon',
99
- itemHrid: '/items/bishops_scroll',
100
- costs: [
101
- {
102
- itemHrid: '/items/enchanted_token',
103
- count: 2000,
104
- },
105
- ],
106
- sortIndex: 53,
107
- },
108
- ],
109
- [
110
- '/shop_items/chaotic_chain',
111
- {
112
- hrid: '/shop_items/chaotic_chain',
113
- category: '/shop_categories/dungeon',
114
- itemHrid: '/items/chaotic_chain',
115
- costs: [
116
- {
117
- itemHrid: '/items/sinister_token',
118
- count: 3000,
119
- },
120
- ],
121
- sortIndex: 47,
122
- },
123
- ],
124
- [
125
- '/shop_items/cheese_alembic',
126
- {
127
- hrid: '/shop_items/cheese_alembic',
128
- category: '/shop_categories/general',
129
- itemHrid: '/items/cheese_alembic',
130
- costs: [
131
- {
132
- itemHrid: '/items/coin',
133
- count: 5000,
134
- },
135
- ],
136
- sortIndex: 18,
137
- },
138
- ],
139
- [
140
- '/shop_items/cheese_brush',
141
- {
142
- hrid: '/shop_items/cheese_brush',
143
- category: '/shop_categories/general',
144
- itemHrid: '/items/cheese_brush',
145
- costs: [
146
- {
147
- itemHrid: '/items/coin',
148
- count: 5000,
149
- },
150
- ],
151
- sortIndex: 10,
152
- },
153
- ],
154
- [
155
- '/shop_items/cheese_chisel',
156
- {
157
- hrid: '/shop_items/cheese_chisel',
158
- category: '/shop_categories/general',
159
- itemHrid: '/items/cheese_chisel',
160
- costs: [
161
- {
162
- itemHrid: '/items/coin',
163
- count: 5000,
164
- },
165
- ],
166
- sortIndex: 14,
167
- },
168
- ],
169
- [
170
- '/shop_items/cheese_enhancer',
171
- {
172
- hrid: '/shop_items/cheese_enhancer',
173
- category: '/shop_categories/general',
174
- itemHrid: '/items/cheese_enhancer',
175
- costs: [
176
- {
177
- itemHrid: '/items/coin',
178
- count: 5000,
179
- },
180
- ],
181
- sortIndex: 19,
182
- },
183
- ],
184
- [
185
- '/shop_items/cheese_hammer',
186
- {
187
- hrid: '/shop_items/cheese_hammer',
188
- category: '/shop_categories/general',
189
- itemHrid: '/items/cheese_hammer',
190
- costs: [
191
- {
192
- itemHrid: '/items/coin',
193
- count: 5000,
194
- },
195
- ],
196
- sortIndex: 13,
197
- },
198
- ],
199
- [
200
- '/shop_items/cheese_hatchet',
201
- {
202
- hrid: '/shop_items/cheese_hatchet',
203
- category: '/shop_categories/general',
204
- itemHrid: '/items/cheese_hatchet',
205
- costs: [
206
- {
207
- itemHrid: '/items/coin',
208
- count: 5000,
209
- },
210
- ],
211
- sortIndex: 12,
212
- },
213
- ],
214
- [
215
- '/shop_items/cheese_mace',
216
- {
217
- hrid: '/shop_items/cheese_mace',
218
- category: '/shop_categories/general',
219
- itemHrid: '/items/cheese_mace',
220
- costs: [
221
- {
222
- itemHrid: '/items/coin',
223
- count: 5000,
224
- },
225
- ],
226
- sortIndex: 4,
227
- },
228
- ],
229
- [
230
- '/shop_items/cheese_needle',
231
- {
232
- hrid: '/shop_items/cheese_needle',
233
- category: '/shop_categories/general',
234
- itemHrid: '/items/cheese_needle',
235
- costs: [
236
- {
237
- itemHrid: '/items/coin',
238
- count: 5000,
239
- },
240
- ],
241
- sortIndex: 15,
242
- },
243
- ],
244
- [
245
- '/shop_items/cheese_pot',
246
- {
247
- hrid: '/shop_items/cheese_pot',
248
- category: '/shop_categories/general',
249
- itemHrid: '/items/cheese_pot',
250
- costs: [
251
- {
252
- itemHrid: '/items/coin',
253
- count: 5000,
254
- },
255
- ],
256
- sortIndex: 17,
257
- },
258
- ],
259
- [
260
- '/shop_items/cheese_shears',
261
- {
262
- hrid: '/shop_items/cheese_shears',
263
- category: '/shop_categories/general',
264
- itemHrid: '/items/cheese_shears',
265
- costs: [
266
- {
267
- itemHrid: '/items/coin',
268
- count: 5000,
269
- },
270
- ],
271
- sortIndex: 11,
272
- },
273
- ],
274
- [
275
- '/shop_items/cheese_spatula',
276
- {
277
- hrid: '/shop_items/cheese_spatula',
278
- category: '/shop_categories/general',
279
- itemHrid: '/items/cheese_spatula',
280
- costs: [
281
- {
282
- itemHrid: '/items/coin',
283
- count: 5000,
284
- },
285
- ],
286
- sortIndex: 16,
287
- },
288
- ],
289
- [
290
- '/shop_items/cheese_spear',
291
- {
292
- hrid: '/shop_items/cheese_spear',
293
- category: '/shop_categories/general',
294
- itemHrid: '/items/cheese_spear',
295
- costs: [
296
- {
297
- itemHrid: '/items/coin',
298
- count: 5000,
299
- },
300
- ],
301
- sortIndex: 3,
302
- },
303
- ],
304
- [
305
- '/shop_items/cheese_sword',
306
- {
307
- hrid: '/shop_items/cheese_sword',
308
- category: '/shop_categories/general',
309
- itemHrid: '/items/cheese_sword',
310
- costs: [
311
- {
312
- itemHrid: '/items/coin',
313
- count: 5000,
314
- },
315
- ],
316
- sortIndex: 2,
317
- },
318
- ],
319
- [
320
- '/shop_items/chimerical_essence',
321
- {
322
- hrid: '/shop_items/chimerical_essence',
323
- category: '/shop_categories/dungeon',
324
- itemHrid: '/items/chimerical_essence',
325
- costs: [
326
- {
327
- itemHrid: '/items/chimerical_token',
328
- count: 1,
329
- },
330
- ],
331
- sortIndex: 37,
332
- },
333
- ],
334
- [
335
- '/shop_items/chimerical_quiver',
336
- {
337
- hrid: '/shop_items/chimerical_quiver',
338
- category: '/shop_categories/dungeon',
339
- itemHrid: '/items/chimerical_quiver',
340
- costs: [
341
- {
342
- itemHrid: '/items/chimerical_token',
343
- count: 35000,
344
- },
345
- ],
346
- sortIndex: 43,
347
- },
348
- ],
349
- [
350
- '/shop_items/corsair_crest',
351
- {
352
- hrid: '/shop_items/corsair_crest',
353
- category: '/shop_categories/dungeon',
354
- itemHrid: '/items/corsair_crest',
355
- costs: [
356
- {
357
- itemHrid: '/items/pirate_token',
358
- count: 2000,
359
- },
360
- ],
361
- sortIndex: 59,
362
- },
363
- ],
364
- [
365
- '/shop_items/cursed_ball',
366
- {
367
- hrid: '/shop_items/cursed_ball',
368
- category: '/shop_categories/dungeon',
369
- itemHrid: '/items/cursed_ball',
370
- costs: [
371
- {
372
- itemHrid: '/items/sinister_token',
373
- count: 3000,
374
- },
375
- ],
376
- sortIndex: 48,
377
- },
378
- ],
379
- [
380
- '/shop_items/damaged_anchor',
381
- {
382
- hrid: '/shop_items/damaged_anchor',
383
- category: '/shop_categories/dungeon',
384
- itemHrid: '/items/damaged_anchor',
385
- costs: [
386
- {
387
- itemHrid: '/items/pirate_token',
388
- count: 2000,
389
- },
390
- ],
391
- sortIndex: 60,
392
- },
393
- ],
394
- [
395
- '/shop_items/dodocamel_plume',
396
- {
397
- hrid: '/shop_items/dodocamel_plume',
398
- category: '/shop_categories/dungeon',
399
- itemHrid: '/items/dodocamel_plume',
400
- costs: [
401
- {
402
- itemHrid: '/items/chimerical_token',
403
- count: 3000,
404
- },
405
- ],
406
- sortIndex: 41,
407
- },
408
- ],
409
- [
410
- '/shop_items/enchanted_cloak',
411
- {
412
- hrid: '/shop_items/enchanted_cloak',
413
- category: '/shop_categories/dungeon',
414
- itemHrid: '/items/enchanted_cloak',
415
- costs: [
416
- {
417
- itemHrid: '/items/enchanted_token',
418
- count: 27000,
419
- },
420
- ],
421
- sortIndex: 56,
422
- },
423
- ],
424
- [
425
- '/shop_items/enchanted_essence',
426
- {
427
- hrid: '/shop_items/enchanted_essence',
428
- category: '/shop_categories/dungeon',
429
- itemHrid: '/items/enchanted_essence',
430
- costs: [
431
- {
432
- itemHrid: '/items/enchanted_token',
433
- count: 1,
434
- },
435
- ],
436
- sortIndex: 50,
437
- },
438
- ],
439
- [
440
- '/shop_items/griffin_leather',
441
- {
442
- hrid: '/shop_items/griffin_leather',
443
- category: '/shop_categories/dungeon',
444
- itemHrid: '/items/griffin_leather',
445
- costs: [
446
- {
447
- itemHrid: '/items/chimerical_token',
448
- count: 600,
449
- },
450
- ],
451
- sortIndex: 38,
452
- },
453
- ],
454
- [
455
- '/shop_items/griffin_talon',
456
- {
457
- hrid: '/shop_items/griffin_talon',
458
- category: '/shop_categories/dungeon',
459
- itemHrid: '/items/griffin_talon',
460
- costs: [
461
- {
462
- itemHrid: '/items/chimerical_token',
463
- count: 3000,
464
- },
465
- ],
466
- sortIndex: 42,
467
- },
468
- ],
469
- [
470
- '/shop_items/jackalope_antler',
471
- {
472
- hrid: '/shop_items/jackalope_antler',
473
- category: '/shop_categories/dungeon',
474
- itemHrid: '/items/jackalope_antler',
475
- costs: [
476
- {
477
- itemHrid: '/items/chimerical_token',
478
- count: 1200,
479
- },
480
- ],
481
- sortIndex: 40,
482
- },
483
- ],
484
- [
485
- '/shop_items/knights_ingot',
486
- {
487
- hrid: '/shop_items/knights_ingot',
488
- category: '/shop_categories/dungeon',
489
- itemHrid: '/items/knights_ingot',
490
- costs: [
491
- {
492
- itemHrid: '/items/enchanted_token',
493
- count: 2000,
494
- },
495
- ],
496
- sortIndex: 52,
497
- },
498
- ],
499
- [
500
- '/shop_items/kraken_fang',
501
- {
502
- hrid: '/shop_items/kraken_fang',
503
- category: '/shop_categories/dungeon',
504
- itemHrid: '/items/kraken_fang',
505
- costs: [
506
- {
507
- itemHrid: '/items/pirate_token',
508
- count: 3000,
509
- },
510
- ],
511
- sortIndex: 63,
512
- },
513
- ],
514
- [
515
- '/shop_items/kraken_leather',
516
- {
517
- hrid: '/shop_items/kraken_leather',
518
- category: '/shop_categories/dungeon',
519
- itemHrid: '/items/kraken_leather',
520
- costs: [
521
- {
522
- itemHrid: '/items/pirate_token',
523
- count: 2000,
524
- },
525
- ],
526
- sortIndex: 62,
527
- },
528
- ],
529
- [
530
- '/shop_items/maelstrom_plating',
531
- {
532
- hrid: '/shop_items/maelstrom_plating',
533
- category: '/shop_categories/dungeon',
534
- itemHrid: '/items/maelstrom_plating',
535
- costs: [
536
- {
537
- itemHrid: '/items/pirate_token',
538
- count: 2000,
539
- },
540
- ],
541
- sortIndex: 61,
542
- },
543
- ],
544
- [
545
- '/shop_items/magicians_cloth',
546
- {
547
- hrid: '/shop_items/magicians_cloth',
548
- category: '/shop_categories/dungeon',
549
- itemHrid: '/items/magicians_cloth',
550
- costs: [
551
- {
552
- itemHrid: '/items/sinister_token',
553
- count: 2000,
554
- },
555
- ],
556
- sortIndex: 46,
557
- },
558
- ],
559
- [
560
- '/shop_items/manticore_sting',
561
- {
562
- hrid: '/shop_items/manticore_sting',
563
- category: '/shop_categories/dungeon',
564
- itemHrid: '/items/manticore_sting',
565
- costs: [
566
- {
567
- itemHrid: '/items/chimerical_token',
568
- count: 1000,
569
- },
570
- ],
571
- sortIndex: 39,
572
- },
573
- ],
574
- [
575
- '/shop_items/marksman_brooch',
576
- {
577
- hrid: '/shop_items/marksman_brooch',
578
- category: '/shop_categories/dungeon',
579
- itemHrid: '/items/marksman_brooch',
580
- costs: [
581
- {
582
- itemHrid: '/items/pirate_token',
583
- count: 2000,
584
- },
585
- ],
586
- sortIndex: 58,
587
- },
588
- ],
589
- [
590
- '/shop_items/mystic_aura',
591
- {
592
- hrid: '/shop_items/mystic_aura',
593
- category: '/shop_categories/general',
594
- itemHrid: '/items/mystic_aura',
595
- costs: [
596
- {
597
- itemHrid: '/items/guardian_aura',
598
- count: 1,
599
- },
600
- ],
601
- sortIndex: 1,
602
- },
603
- ],
604
- [
605
- '/shop_items/pirate_essence',
606
- {
607
- hrid: '/shop_items/pirate_essence',
608
- category: '/shop_categories/dungeon',
609
- itemHrid: '/items/pirate_essence',
610
- costs: [
611
- {
612
- itemHrid: '/items/pirate_token',
613
- count: 1,
614
- },
615
- ],
616
- sortIndex: 57,
617
- },
618
- ],
619
- [
620
- '/shop_items/regal_jewel',
621
- {
622
- hrid: '/shop_items/regal_jewel',
623
- category: '/shop_categories/dungeon',
624
- itemHrid: '/items/regal_jewel',
625
- costs: [
626
- {
627
- itemHrid: '/items/enchanted_token',
628
- count: 3000,
629
- },
630
- ],
631
- sortIndex: 54,
632
- },
633
- ],
634
- [
635
- '/shop_items/royal_cloth',
636
- {
637
- hrid: '/shop_items/royal_cloth',
638
- category: '/shop_categories/dungeon',
639
- itemHrid: '/items/royal_cloth',
640
- costs: [
641
- {
642
- itemHrid: '/items/enchanted_token',
643
- count: 2000,
644
- },
645
- ],
646
- sortIndex: 51,
647
- },
648
- ],
649
- [
650
- '/shop_items/sinister_cape',
651
- {
652
- hrid: '/shop_items/sinister_cape',
653
- category: '/shop_categories/dungeon',
654
- itemHrid: '/items/sinister_cape',
655
- costs: [
656
- {
657
- itemHrid: '/items/sinister_token',
658
- count: 27000,
659
- },
660
- ],
661
- sortIndex: 49,
662
- },
663
- ],
664
- [
665
- '/shop_items/sinister_essence',
666
- {
667
- hrid: '/shop_items/sinister_essence',
668
- category: '/shop_categories/dungeon',
669
- itemHrid: '/items/sinister_essence',
670
- costs: [
671
- {
672
- itemHrid: '/items/sinister_token',
673
- count: 1,
674
- },
675
- ],
676
- sortIndex: 44,
677
- },
678
- ],
679
- [
680
- '/shop_items/sundering_jewel',
681
- {
682
- hrid: '/shop_items/sundering_jewel',
683
- category: '/shop_categories/dungeon',
684
- itemHrid: '/items/sundering_jewel',
685
- costs: [
686
- {
687
- itemHrid: '/items/enchanted_token',
688
- count: 3000,
689
- },
690
- ],
691
- sortIndex: 55,
692
- },
693
- ],
694
- [
695
- '/shop_items/trainee_alchemy_charm',
696
- {
697
- hrid: '/shop_items/trainee_alchemy_charm',
698
- category: '/shop_categories/general',
699
- itemHrid: '/items/trainee_alchemy_charm',
700
- costs: [
701
- {
702
- itemHrid: '/items/coin',
703
- count: 250000,
704
- },
705
- ],
706
- sortIndex: 28,
707
- },
708
- ],
709
- [
710
- '/shop_items/trainee_attack_charm',
711
- {
712
- hrid: '/shop_items/trainee_attack_charm',
713
- category: '/shop_categories/general',
714
- itemHrid: '/items/trainee_attack_charm',
715
- costs: [
716
- {
717
- itemHrid: '/items/coin',
718
- count: 250000,
719
- },
720
- ],
721
- sortIndex: 32,
722
- },
723
- ],
724
- [
725
- '/shop_items/trainee_brewing_charm',
726
- {
727
- hrid: '/shop_items/trainee_brewing_charm',
728
- category: '/shop_categories/general',
729
- itemHrid: '/items/trainee_brewing_charm',
730
- costs: [
731
- {
732
- itemHrid: '/items/coin',
733
- count: 250000,
734
- },
735
- ],
736
- sortIndex: 27,
737
- },
738
- ],
739
- [
740
- '/shop_items/trainee_cheesesmithing_charm',
741
- {
742
- hrid: '/shop_items/trainee_cheesesmithing_charm',
743
- category: '/shop_categories/general',
744
- itemHrid: '/items/trainee_cheesesmithing_charm',
745
- costs: [
746
- {
747
- itemHrid: '/items/coin',
748
- count: 250000,
749
- },
750
- ],
751
- sortIndex: 23,
752
- },
753
- ],
754
- [
755
- '/shop_items/trainee_cooking_charm',
756
- {
757
- hrid: '/shop_items/trainee_cooking_charm',
758
- category: '/shop_categories/general',
759
- itemHrid: '/items/trainee_cooking_charm',
760
- costs: [
761
- {
762
- itemHrid: '/items/coin',
763
- count: 250000,
764
- },
765
- ],
766
- sortIndex: 26,
767
- },
768
- ],
769
- [
770
- '/shop_items/trainee_crafting_charm',
771
- {
772
- hrid: '/shop_items/trainee_crafting_charm',
773
- category: '/shop_categories/general',
774
- itemHrid: '/items/trainee_crafting_charm',
775
- costs: [
776
- {
777
- itemHrid: '/items/coin',
778
- count: 250000,
779
- },
780
- ],
781
- sortIndex: 24,
782
- },
783
- ],
784
- [
785
- '/shop_items/trainee_defense_charm',
786
- {
787
- hrid: '/shop_items/trainee_defense_charm',
788
- category: '/shop_categories/general',
789
- itemHrid: '/items/trainee_defense_charm',
790
- costs: [
791
- {
792
- itemHrid: '/items/coin',
793
- count: 250000,
794
- },
795
- ],
796
- sortIndex: 33,
797
- },
798
- ],
799
- [
800
- '/shop_items/trainee_enhancing_charm',
801
- {
802
- hrid: '/shop_items/trainee_enhancing_charm',
803
- category: '/shop_categories/general',
804
- itemHrid: '/items/trainee_enhancing_charm',
805
- costs: [
806
- {
807
- itemHrid: '/items/coin',
808
- count: 250000,
809
- },
810
- ],
811
- sortIndex: 29,
812
- },
813
- ],
814
- [
815
- '/shop_items/trainee_foraging_charm',
816
- {
817
- hrid: '/shop_items/trainee_foraging_charm',
818
- category: '/shop_categories/general',
819
- itemHrid: '/items/trainee_foraging_charm',
820
- costs: [
821
- {
822
- itemHrid: '/items/coin',
823
- count: 250000,
824
- },
825
- ],
826
- sortIndex: 21,
827
- },
828
- ],
829
- [
830
- '/shop_items/trainee_intelligence_charm',
831
- {
832
- hrid: '/shop_items/trainee_intelligence_charm',
833
- category: '/shop_categories/general',
834
- itemHrid: '/items/trainee_intelligence_charm',
835
- costs: [
836
- {
837
- itemHrid: '/items/coin',
838
- count: 250000,
839
- },
840
- ],
841
- sortIndex: 31,
842
- },
843
- ],
844
- [
845
- '/shop_items/trainee_magic_charm',
846
- {
847
- hrid: '/shop_items/trainee_magic_charm',
848
- category: '/shop_categories/general',
849
- itemHrid: '/items/trainee_magic_charm',
850
- costs: [
851
- {
852
- itemHrid: '/items/coin',
853
- count: 250000,
854
- },
855
- ],
856
- sortIndex: 36,
857
- },
858
- ],
859
- [
860
- '/shop_items/trainee_melee_charm',
861
- {
862
- hrid: '/shop_items/trainee_melee_charm',
863
- category: '/shop_categories/general',
864
- itemHrid: '/items/trainee_melee_charm',
865
- costs: [
866
- {
867
- itemHrid: '/items/coin',
868
- count: 250000,
869
- },
870
- ],
871
- sortIndex: 34,
872
- },
873
- ],
874
- [
875
- '/shop_items/trainee_milking_charm',
876
- {
877
- hrid: '/shop_items/trainee_milking_charm',
878
- category: '/shop_categories/general',
879
- itemHrid: '/items/trainee_milking_charm',
880
- costs: [
881
- {
882
- itemHrid: '/items/coin',
883
- count: 250000,
884
- },
885
- ],
886
- sortIndex: 20,
887
- },
888
- ],
889
- [
890
- '/shop_items/trainee_ranged_charm',
891
- {
892
- hrid: '/shop_items/trainee_ranged_charm',
893
- category: '/shop_categories/general',
894
- itemHrid: '/items/trainee_ranged_charm',
895
- costs: [
896
- {
897
- itemHrid: '/items/coin',
898
- count: 250000,
899
- },
900
- ],
901
- sortIndex: 35,
902
- },
903
- ],
904
- [
905
- '/shop_items/trainee_stamina_charm',
906
- {
907
- hrid: '/shop_items/trainee_stamina_charm',
908
- category: '/shop_categories/general',
909
- itemHrid: '/items/trainee_stamina_charm',
910
- costs: [
911
- {
912
- itemHrid: '/items/coin',
913
- count: 250000,
914
- },
915
- ],
916
- sortIndex: 30,
917
- },
918
- ],
919
- [
920
- '/shop_items/trainee_tailoring_charm',
921
- {
922
- hrid: '/shop_items/trainee_tailoring_charm',
923
- category: '/shop_categories/general',
924
- itemHrid: '/items/trainee_tailoring_charm',
925
- costs: [
926
- {
927
- itemHrid: '/items/coin',
928
- count: 250000,
929
- },
930
- ],
931
- sortIndex: 25,
932
- },
933
- ],
934
- [
935
- '/shop_items/trainee_woodcutting_charm',
936
- {
937
- hrid: '/shop_items/trainee_woodcutting_charm',
938
- category: '/shop_categories/general',
939
- itemHrid: '/items/trainee_woodcutting_charm',
940
- costs: [
941
- {
942
- itemHrid: '/items/coin',
943
- count: 250000,
944
- },
945
- ],
946
- sortIndex: 22,
947
- },
948
- ],
949
- [
950
- '/shop_items/wooden_bow',
951
- {
952
- hrid: '/shop_items/wooden_bow',
953
- category: '/shop_categories/general',
954
- itemHrid: '/items/wooden_bow',
955
- costs: [
956
- {
957
- itemHrid: '/items/coin',
958
- count: 5000,
959
- },
960
- ],
961
- sortIndex: 6,
962
- },
963
- ],
964
- [
965
- '/shop_items/wooden_crossbow',
966
- {
967
- hrid: '/shop_items/wooden_crossbow',
968
- category: '/shop_categories/general',
969
- itemHrid: '/items/wooden_crossbow',
970
- costs: [
971
- {
972
- itemHrid: '/items/coin',
973
- count: 5000,
974
- },
975
- ],
976
- sortIndex: 5,
977
- },
978
- ],
979
- [
980
- '/shop_items/wooden_fire_staff',
981
- {
982
- hrid: '/shop_items/wooden_fire_staff',
983
- category: '/shop_categories/general',
984
- itemHrid: '/items/wooden_fire_staff',
985
- costs: [
986
- {
987
- itemHrid: '/items/coin',
988
- count: 5000,
989
- },
990
- ],
991
- sortIndex: 9,
992
- },
993
- ],
994
- [
995
- '/shop_items/wooden_nature_staff',
996
- {
997
- hrid: '/shop_items/wooden_nature_staff',
998
- category: '/shop_categories/general',
999
- itemHrid: '/items/wooden_nature_staff',
1000
- costs: [
1001
- {
1002
- itemHrid: '/items/coin',
1003
- count: 5000,
1004
- },
1005
- ],
1006
- sortIndex: 8,
1007
- },
1008
- ],
1009
- [
1010
- '/shop_items/wooden_water_staff',
1011
- {
1012
- hrid: '/shop_items/wooden_water_staff',
1013
- category: '/shop_categories/general',
1014
- itemHrid: '/items/wooden_water_staff',
1015
- costs: [
1016
- {
1017
- itemHrid: '/items/coin',
1018
- count: 5000,
1019
- },
1020
- ],
1021
- sortIndex: 7,
1022
- },
1023
- ],
1024
- ]);
1025
- export function isShopItemHrid(value) {
1026
- return SHOPITEM_HRIDS.includes(value);
1027
- }
1028
- export function getShopItem(hrid) {
1029
- return SHOPITEMS.get(hrid);
1030
- }
1031
- export function requireShopItem(hrid) {
1032
- const shopitem = SHOPITEMS.get(hrid);
1033
- if (!shopitem) {
1034
- throw new Error(`ShopItem not found: ${hrid}`);
1035
- }
1036
- return shopitem;
1037
- }
1038
- export function getAllShopItems() {
1039
- return Array.from(SHOPITEMS.values());
1040
- }
1041
- export const SHOP_ITEMS_BY_CATEGORY = {
1042
- '/shop_categories/dungeon': [
1043
- '/shop_items/acrobats_ribbon',
1044
- '/shop_items/bishops_scroll',
1045
- '/shop_items/chaotic_chain',
1046
- '/shop_items/chimerical_essence',
1047
- '/shop_items/chimerical_quiver',
1048
- '/shop_items/corsair_crest',
1049
- '/shop_items/cursed_ball',
1050
- '/shop_items/damaged_anchor',
1051
- '/shop_items/dodocamel_plume',
1052
- '/shop_items/enchanted_cloak',
1053
- '/shop_items/enchanted_essence',
1054
- '/shop_items/griffin_leather',
1055
- '/shop_items/griffin_talon',
1056
- '/shop_items/jackalope_antler',
1057
- '/shop_items/knights_ingot',
1058
- '/shop_items/kraken_fang',
1059
- '/shop_items/kraken_leather',
1060
- '/shop_items/maelstrom_plating',
1061
- '/shop_items/magicians_cloth',
1062
- '/shop_items/manticore_sting',
1063
- '/shop_items/marksman_brooch',
1064
- '/shop_items/pirate_essence',
1065
- '/shop_items/regal_jewel',
1066
- '/shop_items/royal_cloth',
1067
- '/shop_items/sinister_cape',
1068
- '/shop_items/sinister_essence',
1069
- '/shop_items/sundering_jewel',
1070
- ],
1071
- '/shop_categories/general': [
1072
- '/shop_items/cheese_alembic',
1073
- '/shop_items/cheese_brush',
1074
- '/shop_items/cheese_chisel',
1075
- '/shop_items/cheese_enhancer',
1076
- '/shop_items/cheese_hammer',
1077
- '/shop_items/cheese_hatchet',
1078
- '/shop_items/cheese_mace',
1079
- '/shop_items/cheese_needle',
1080
- '/shop_items/cheese_pot',
1081
- '/shop_items/cheese_shears',
1082
- '/shop_items/cheese_spatula',
1083
- '/shop_items/cheese_spear',
1084
- '/shop_items/cheese_sword',
1085
- '/shop_items/mystic_aura',
1086
- '/shop_items/trainee_alchemy_charm',
1087
- '/shop_items/trainee_attack_charm',
1088
- '/shop_items/trainee_brewing_charm',
1089
- '/shop_items/trainee_cheesesmithing_charm',
1090
- '/shop_items/trainee_cooking_charm',
1091
- '/shop_items/trainee_crafting_charm',
1092
- '/shop_items/trainee_defense_charm',
1093
- '/shop_items/trainee_enhancing_charm',
1094
- '/shop_items/trainee_foraging_charm',
1095
- '/shop_items/trainee_intelligence_charm',
1096
- '/shop_items/trainee_magic_charm',
1097
- '/shop_items/trainee_melee_charm',
1098
- '/shop_items/trainee_milking_charm',
1099
- '/shop_items/trainee_ranged_charm',
1100
- '/shop_items/trainee_stamina_charm',
1101
- '/shop_items/trainee_tailoring_charm',
1102
- '/shop_items/trainee_woodcutting_charm',
1103
- '/shop_items/wooden_bow',
1104
- '/shop_items/wooden_crossbow',
1105
- '/shop_items/wooden_fire_staff',
1106
- '/shop_items/wooden_nature_staff',
1107
- '/shop_items/wooden_water_staff',
1108
- ],
1109
- };
1110
- export const SHOP_ITEMS_BY_CURRENCY = {
1111
- '/items/sinister_token': [
1112
- '/shop_items/acrobats_ribbon',
1113
- '/shop_items/chaotic_chain',
1114
- '/shop_items/cursed_ball',
1115
- '/shop_items/magicians_cloth',
1116
- '/shop_items/sinister_cape',
1117
- '/shop_items/sinister_essence',
1118
- ],
1119
- '/items/enchanted_token': [
1120
- '/shop_items/bishops_scroll',
1121
- '/shop_items/enchanted_cloak',
1122
- '/shop_items/enchanted_essence',
1123
- '/shop_items/knights_ingot',
1124
- '/shop_items/regal_jewel',
1125
- '/shop_items/royal_cloth',
1126
- '/shop_items/sundering_jewel',
1127
- ],
1128
- '/items/coin': [
1129
- '/shop_items/cheese_alembic',
1130
- '/shop_items/cheese_brush',
1131
- '/shop_items/cheese_chisel',
1132
- '/shop_items/cheese_enhancer',
1133
- '/shop_items/cheese_hammer',
1134
- '/shop_items/cheese_hatchet',
1135
- '/shop_items/cheese_mace',
1136
- '/shop_items/cheese_needle',
1137
- '/shop_items/cheese_pot',
1138
- '/shop_items/cheese_shears',
1139
- '/shop_items/cheese_spatula',
1140
- '/shop_items/cheese_spear',
1141
- '/shop_items/cheese_sword',
1142
- '/shop_items/trainee_alchemy_charm',
1143
- '/shop_items/trainee_attack_charm',
1144
- '/shop_items/trainee_brewing_charm',
1145
- '/shop_items/trainee_cheesesmithing_charm',
1146
- '/shop_items/trainee_cooking_charm',
1147
- '/shop_items/trainee_crafting_charm',
1148
- '/shop_items/trainee_defense_charm',
1149
- '/shop_items/trainee_enhancing_charm',
1150
- '/shop_items/trainee_foraging_charm',
1151
- '/shop_items/trainee_intelligence_charm',
1152
- '/shop_items/trainee_magic_charm',
1153
- '/shop_items/trainee_melee_charm',
1154
- '/shop_items/trainee_milking_charm',
1155
- '/shop_items/trainee_ranged_charm',
1156
- '/shop_items/trainee_stamina_charm',
1157
- '/shop_items/trainee_tailoring_charm',
1158
- '/shop_items/trainee_woodcutting_charm',
1159
- '/shop_items/wooden_bow',
1160
- '/shop_items/wooden_crossbow',
1161
- '/shop_items/wooden_fire_staff',
1162
- '/shop_items/wooden_nature_staff',
1163
- '/shop_items/wooden_water_staff',
1164
- ],
1165
- '/items/chimerical_token': [
1166
- '/shop_items/chimerical_essence',
1167
- '/shop_items/chimerical_quiver',
1168
- '/shop_items/dodocamel_plume',
1169
- '/shop_items/griffin_leather',
1170
- '/shop_items/griffin_talon',
1171
- '/shop_items/jackalope_antler',
1172
- '/shop_items/manticore_sting',
1173
- ],
1174
- '/items/pirate_token': [
1175
- '/shop_items/corsair_crest',
1176
- '/shop_items/damaged_anchor',
1177
- '/shop_items/kraken_fang',
1178
- '/shop_items/kraken_leather',
1179
- '/shop_items/maelstrom_plating',
1180
- '/shop_items/marksman_brooch',
1181
- '/shop_items/pirate_essence',
1182
- ],
1183
- '/items/guardian_aura': ['/shop_items/mystic_aura'],
1184
- };
1185
- export const SHOP_ITEMS_BY_ITEM_SOLD = {
1186
- '/items/acrobats_ribbon': ['/shop_items/acrobats_ribbon'],
1187
- '/items/bishops_scroll': ['/shop_items/bishops_scroll'],
1188
- '/items/chaotic_chain': ['/shop_items/chaotic_chain'],
1189
- '/items/cheese_alembic': ['/shop_items/cheese_alembic'],
1190
- '/items/cheese_brush': ['/shop_items/cheese_brush'],
1191
- '/items/cheese_chisel': ['/shop_items/cheese_chisel'],
1192
- '/items/cheese_enhancer': ['/shop_items/cheese_enhancer'],
1193
- '/items/cheese_hammer': ['/shop_items/cheese_hammer'],
1194
- '/items/cheese_hatchet': ['/shop_items/cheese_hatchet'],
1195
- '/items/cheese_mace': ['/shop_items/cheese_mace'],
1196
- '/items/cheese_needle': ['/shop_items/cheese_needle'],
1197
- '/items/cheese_pot': ['/shop_items/cheese_pot'],
1198
- '/items/cheese_shears': ['/shop_items/cheese_shears'],
1199
- '/items/cheese_spatula': ['/shop_items/cheese_spatula'],
1200
- '/items/cheese_spear': ['/shop_items/cheese_spear'],
1201
- '/items/cheese_sword': ['/shop_items/cheese_sword'],
1202
- '/items/chimerical_essence': ['/shop_items/chimerical_essence'],
1203
- '/items/chimerical_quiver': ['/shop_items/chimerical_quiver'],
1204
- '/items/corsair_crest': ['/shop_items/corsair_crest'],
1205
- '/items/cursed_ball': ['/shop_items/cursed_ball'],
1206
- '/items/damaged_anchor': ['/shop_items/damaged_anchor'],
1207
- '/items/dodocamel_plume': ['/shop_items/dodocamel_plume'],
1208
- '/items/enchanted_cloak': ['/shop_items/enchanted_cloak'],
1209
- '/items/enchanted_essence': ['/shop_items/enchanted_essence'],
1210
- '/items/griffin_leather': ['/shop_items/griffin_leather'],
1211
- '/items/griffin_talon': ['/shop_items/griffin_talon'],
1212
- '/items/jackalope_antler': ['/shop_items/jackalope_antler'],
1213
- '/items/knights_ingot': ['/shop_items/knights_ingot'],
1214
- '/items/kraken_fang': ['/shop_items/kraken_fang'],
1215
- '/items/kraken_leather': ['/shop_items/kraken_leather'],
1216
- '/items/maelstrom_plating': ['/shop_items/maelstrom_plating'],
1217
- '/items/magicians_cloth': ['/shop_items/magicians_cloth'],
1218
- '/items/manticore_sting': ['/shop_items/manticore_sting'],
1219
- '/items/marksman_brooch': ['/shop_items/marksman_brooch'],
1220
- '/items/mystic_aura': ['/shop_items/mystic_aura'],
1221
- '/items/pirate_essence': ['/shop_items/pirate_essence'],
1222
- '/items/regal_jewel': ['/shop_items/regal_jewel'],
1223
- '/items/royal_cloth': ['/shop_items/royal_cloth'],
1224
- '/items/sinister_cape': ['/shop_items/sinister_cape'],
1225
- '/items/sinister_essence': ['/shop_items/sinister_essence'],
1226
- '/items/sundering_jewel': ['/shop_items/sundering_jewel'],
1227
- '/items/trainee_alchemy_charm': ['/shop_items/trainee_alchemy_charm'],
1228
- '/items/trainee_attack_charm': ['/shop_items/trainee_attack_charm'],
1229
- '/items/trainee_brewing_charm': ['/shop_items/trainee_brewing_charm'],
1230
- '/items/trainee_cheesesmithing_charm': [
1231
- '/shop_items/trainee_cheesesmithing_charm',
1232
- ],
1233
- '/items/trainee_cooking_charm': ['/shop_items/trainee_cooking_charm'],
1234
- '/items/trainee_crafting_charm': ['/shop_items/trainee_crafting_charm'],
1235
- '/items/trainee_defense_charm': ['/shop_items/trainee_defense_charm'],
1236
- '/items/trainee_enhancing_charm': ['/shop_items/trainee_enhancing_charm'],
1237
- '/items/trainee_foraging_charm': ['/shop_items/trainee_foraging_charm'],
1238
- '/items/trainee_intelligence_charm': [
1239
- '/shop_items/trainee_intelligence_charm',
1240
- ],
1241
- '/items/trainee_magic_charm': ['/shop_items/trainee_magic_charm'],
1242
- '/items/trainee_melee_charm': ['/shop_items/trainee_melee_charm'],
1243
- '/items/trainee_milking_charm': ['/shop_items/trainee_milking_charm'],
1244
- '/items/trainee_ranged_charm': ['/shop_items/trainee_ranged_charm'],
1245
- '/items/trainee_stamina_charm': ['/shop_items/trainee_stamina_charm'],
1246
- '/items/trainee_tailoring_charm': ['/shop_items/trainee_tailoring_charm'],
1247
- '/items/trainee_woodcutting_charm': ['/shop_items/trainee_woodcutting_charm'],
1248
- '/items/wooden_bow': ['/shop_items/wooden_bow'],
1249
- '/items/wooden_crossbow': ['/shop_items/wooden_crossbow'],
1250
- '/items/wooden_fire_staff': ['/shop_items/wooden_fire_staff'],
1251
- '/items/wooden_nature_staff': ['/shop_items/wooden_nature_staff'],
1252
- '/items/wooden_water_staff': ['/shop_items/wooden_water_staff'],
1253
- };
1254
- export function getShopItemsByCategory(category) {
1255
- const hrids = SHOP_ITEMS_BY_CATEGORY[category] || [];
1256
- return hrids.map((hrid) => SHOPITEMS.get(hrid)).filter(Boolean);
1257
- }
1258
- export function getShopItemsByCurrency(currency) {
1259
- const hrids = SHOP_ITEMS_BY_CURRENCY[currency] || [];
1260
- return hrids.map((hrid) => SHOPITEMS.get(hrid)).filter(Boolean);
1261
- }
1262
- export function getShopItemsForItem(itemHrid) {
1263
- const hrids = SHOP_ITEMS_BY_ITEM_SOLD[itemHrid] || [];
1264
- return hrids.map((hrid) => SHOPITEMS.get(hrid)).filter(Boolean);
1265
- }
1266
- export function canAffordShopItem(item, inventory) {
1267
- return item.costs.every((cost) => (inventory[cost.itemHrid] || 0) >= cost.count);
1268
- }
1269
- export function calculateTotalShopCost(items) {
1270
- const totalCost = {};
1271
- items.forEach((item) => {
1272
- item.costs.forEach((cost) => {
1273
- const currency = cost.itemHrid;
1274
- totalCost[currency] = (totalCost[currency] || 0) + cost.count;
1275
- });
1276
- });
1277
- return totalCost;
1278
- }
1279
- export function findCheapestShopItem(itemHrid, preferredCurrency) {
1280
- const shopItems = getShopItemsForItem(itemHrid);
1281
- if (shopItems.length === 0)
1282
- return undefined;
1283
- if (shopItems.length === 1)
1284
- return shopItems[0];
1285
- // If preferred currency specified, filter to those first
1286
- if (preferredCurrency) {
1287
- const preferred = shopItems.filter((item) => item.costs.some((c) => c.itemHrid === preferredCurrency));
1288
- if (preferred.length > 0) {
1289
- // Sort by cost amount for the preferred currency
1290
- return preferred.sort((a, b) => {
1291
- const aCost = a.costs.find((c) => c.itemHrid === preferredCurrency)?.count || 0;
1292
- const bCost = b.costs.find((c) => c.itemHrid === preferredCurrency)?.count || 0;
1293
- return aCost - bCost;
1294
- })[0];
1295
- }
1296
- }
1297
- // Return first item by sort index as fallback
1298
- return shopItems.sort((a, b) => a.sortIndex - b.sortIndex)[0];
1299
- }
1300
- export function sortShopItemsByIndex(items) {
1301
- return [...items].sort((a, b) => a.sortIndex - b.sortIndex);
1302
- }
1303
- export function groupShopItemsByCategory() {
1304
- const grouped = new Map();
1305
- for (const category of SHOP_CATEGORIES) {
1306
- const items = getShopItemsByCategory(category);
1307
- if (items.length > 0) {
1308
- grouped.set(category, sortShopItemsByIndex(items));
1309
- }
1310
- }
1311
- return grouped;
1312
- }
1313
- //# sourceMappingURL=shop-items.js.map