From b894a963169ebb59ebca0d5787ec8634ce4291a6 Mon Sep 17 00:00:00 2001 From: Tom Bertrand Date: Wed, 8 Nov 2023 08:29:47 -0500 Subject: [PATCH] update NBQ guide -Add Waypoint section - autoreplace :runes: --- src/pages/NanoBrowserQuest/Guide/guide.css | 10 + src/pages/NanoBrowserQuest/Guide/guide.md | 171 +++++++++----- src/pages/NanoBrowserQuest/Guide/index.tsx | 37 ++- src/pages/NanoBrowserQuest/Guide/utils.tsx | 254 +++++++++++++++++++++ 4 files changed, 410 insertions(+), 62 deletions(-) diff --git a/src/pages/NanoBrowserQuest/Guide/guide.css b/src/pages/NanoBrowserQuest/Guide/guide.css index d5c3c189..f6c6b513 100644 --- a/src/pages/NanoBrowserQuest/Guide/guide.css +++ b/src/pages/NanoBrowserQuest/Guide/guide.css @@ -58,3 +58,13 @@ background-position: -96px; margin: 6px 0; } + + +.item-container.small { +display: inline-block; + width: 26px; + height: 26px; + background-size: 144px; + background-position: -48px; + margin: 3px 0; +} diff --git a/src/pages/NanoBrowserQuest/Guide/guide.md b/src/pages/NanoBrowserQuest/Guide/guide.md index 8e1c7f14..7ebc65be 100644 --- a/src/pages/NanoBrowserQuest/Guide/guide.md +++ b/src/pages/NanoBrowserQuest/Guide/guide.md @@ -1,10 +1,12 @@ # Nano BrowserQuest -![GameGuide](https://user-images.githubusercontent.com/19352322/231320562-854d66fb-0d64-4322-b1c1-6bfcb17e1663.png) +![Nano BrowserQuest Player Guide](https://user-images.githubusercontent.com/19352322/231320562-854d66fb-0d64-4322-b1c1-6bfcb17e1663.png?maxWidth=100%&overflow=hidden); ## Table of Contents 1. [Introduction](#introduction) +1. [Waypoint](#waypoint) +1. [Gold System](#gold-system) 1. [Expansions](#expansions) 1. [Aim of the game](#aim-of-the-game) 1. [Item Guide](#nano-browserquest-item-guide) @@ -29,6 +31,7 @@ 1. [Party chat commands](#party-chat-commands) 1. [Trading Items](#trading-items) 1. [Tips & Tricks](#tips---tricks) +1. [Player base stats per lvl](#player-base-stats-per-lvl) 1. [Bosses](#bosses) 1. [Discord](#discord) @@ -39,13 +42,13 @@ Since it's inception Nano BrowserQuest has been developed into a more complete e # Expansions -## Freezing Lands Expansion [Dec 30, 2021](https://running-coder.medium.com/nanobrowserquest-freezing-lands-2669d719f982) +## Freezing Lands Expansion Released on [Dec 30, 2021](https://running-coder.medium.com/nanobrowserquest-freezing-lands-2669d719f982) ![Freezing Lands](https://user-images.githubusercontent.com/19352322/231320633-2724023b-b0c9-45fa-8832-f43d344600a1.png) The expansion is for free now and it extends the game significantly. It features an all new map with a winter theme, including new enemies and two new bosses to defeat. There is also a bonus map with it's own boss, and recently a brand new "mega-boss". Beyond this a copious amount of new items and upgrades are available with cool animations and hidden attributes making the player ready to take on the more hardcore challenges present in new stages of the game. -## The Lost Temple [Mar 30 2023](https://running-coder.medium.com/ba-nanobrowserquest-the-lost-temple-expansion-9339c1d29268) +## The Lost Temple Released on [Mar 30 2023](https://running-coder.medium.com/ba-nanobrowserquest-the-lost-temple-expansion-9339c1d29268) ![The Lost Temple](https://user-images.githubusercontent.com/19352322/231320692-412809fe-9e32-4466-bc27-bbb4473336da.png) @@ -58,6 +61,19 @@ The addon can be purchased by the red wizard for XNO ![XNO](https://nanobrowserq or BAN ![BAN](https://nanobrowserquest.com/img/3/ban.png) depending on what version of the game you're in. +# Waypoint + +![Waypoints Panel](https://github.com/running-coder/nanolooker/assets/19352322/fe61b4c1-2908-42ee-8b03-acc0162650d1?width=450px&display=inline-block)![Waypoint](https://github.com/running-coder/nanolooker/assets/19352322/f798ac89-5b9f-4fda-8816-24397a143125?width=200px&display=inline-block) + +The waypoints are used for fast map traveling. Some are locked, but once you find and click them, they'll unlock. The first three waypoints are used to travel the 'Classic' map. The Skeleton King is located north in the Volcanic Mountain. Once the boss is killed, the next three waypoints for the 'Freezing Lands' expansion will unlock for free. After you beat the Necromancer, to unlock the 'Woodlands Lost Temple' expansion waypoint, you'll have to purchase the expansion from the red sorcerer in town for XNO/BAN. + +# Gold System + +## Released on [Apr 25 2023](https://running-coder.medium.com/ba-nanobrowserquest-gold-system-1b603de7162e) + +![{"name": "Gold"}](https://nanobrowserquest.com/img/3/item-gold3.png) +In-game gold can be obtained from any mobs and is used for trading items with other players. Join the [Discord #price-discussion channel](https://discord.gg/n2nEBVZrjE) for more information. The harder or higher-level the mob, the more gold it can drop. You can also increase the gold dropped from mobs using items with the **+#% Extra Gold from Enemies** stat, such as Goldwrap, Amulet of Greed, Ring of Greed, or various other items. When you loot gold, it is added to your inventory. However, if you don't store it in your personal Stash and you die, you'll lose half as a death penalty, and that gold will go to Janet Yellen's bank to pay for the redeemed IOUs. If the gold is in your personal Stash, you won't lose any upon death, so be sure to return to town and stash your gold periodically. + ## Aim of the game The aim of the basic game (without the expansion pack) is basically to defeat the Skeleton King and recieve a small XNO payout. This is done by exploring the original map and killing enemies to gain experience and loot. The player levels up and gets stronger with the experience gained from slaying enemies until he/she is ready to take on the Skeleton King. Higher level enemies are harder to kill but also give more EXP as well as better loot. The player can upgrade items in the anvil present in the village where the game starts out. This is done by putting the appropriate level of upgrade scroll into the anvil along with the item which the player aims to upgrade. Further description regarding the anvil can be found here: https://nanolooker.com/nanobrowserquest/. Completing achievements will increase the final XNO payout recieved by the player, so aim to get all of them filled before killing the Skeleton King. Venture in all directions, find secret items, fun NPCs and achievments before heading north to kill the final boss. @@ -376,7 +392,7 @@ Pets can be bought for XNO from the Red Wizard in the village and so far do not | ![{"name": " Pet Egg", "level": 1, "itemClass": "legendary", "bonus": [], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petegg.png) | Pet Egg | Pet Egg Sold by the Red Wizard in the village | | ![{"name": "Dog Pet", "level": 1, "itemClass": "legendary", "bonus": [0], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petdog-1.png) | Pet Dog | Hatched from the Pet Egg | | ![{"name": "Cat Pet", "level": 1, "itemClass": "legendary", "bonus": [1], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petcat-1.png) | Pet Cat | Hatched from the Pet Egg | -| ![{"name": "axolotl Pet", "level": 1, "itemClass": "legendary", bonus": [3], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petaxolotl-1.png) | Pet Axolotl | Hatched from the Pet Egg | +| ![{"name": "Axolotl Pet", "level": 1, "itemClass": "legendary", "bonus": [3], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petaxolotl-1.png) | Pet Axolotl | Hatched from the Pet Egg | | ![{"name": "Bat Pet", "level": 1, "itemClass": "legendary", "bonus": [4], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petbat-1.png) | Pet Bat | Hatched from the Pet Egg | | ![{"name": "Turtle Pet", "level": 1, "itemClass": "legendary", "bonus": [5], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petturtle-1.png) | Pet Turtle | Hatched from the Pet Egg | | ![{"name": "Duck Pet", "level": 1, "itemClass": "legendary", "bonus": [6], "requirement": 11}](https://nanobrowserquest.com/img/3/item-petduck-1.png) | Pet Duck | Hatched from the Pet Egg | @@ -416,16 +432,23 @@ Pets can be bought for XNO from the Red Wizard in the village and so far do not These items are used to upgrade the items found in NBQ. It is done by putting the item into the anvil in the village. The item is put in the left square and the scroll in one of the middle squares of the anvil. One of the squares is "lucky" and will grant the player an extra % chance of success. The upgraded item (if successful) will emerge in the right square. -| Item | Name | Description | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------- | :------------------------------------------------------------------------------------------------------------ | -| ![{"name": "Upgrade scroll", "itemClass": "low", "description": "Upgrade low class items. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradelow.png) | Low class upgrade scroll | Used to upgrade low class items | -| ![{"name": "Upgrade scroll", "itemClass": "medium", "description": "Upgrade medium class items. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgrademedium.png) | Medium class upgrade scroll | Used to upgrade medium class items | -| ![{"name": "Superior upgrade scroll", "itemClass": "high", "description": "Upgrade high class item. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradehigh.png) | Superior upgrade scroll | Used to upgrade high class items | -| ![{"name": "Blessed upgrade scroll", "itemClass": "high", "description": "Upgrade high class item. The chances for a successful upgrade varies depending on the item's level. Blessed scrolls gives a higher chance of successful upgrade." }](https://nanobrowserquest.com/img/3/item-scrollupgradeblessed.png) | Blessed upgrade scroll | Used to upgrade high class items with an increased chance of success | -| ![{"name": "Transmute scroll", "itemClass": "high", "description": "Transmute a ring or an amulet and generate new random stats or an item to have a chance of making it unique. The chances of transmuting stats is fixed while the chances of getting a unique varies. There is a 25% chance your item will be burned during transmutation" }](https://nanobrowserquest.com/img/3/item-scrolltransmute.png) | Transmute scroll | Used to re-roll random attributes or create a unique out of a normal item | -| ![{"name": "Legendary upgrade scroll", "itemClass": "legendary", "description": "Upgrade legendary class item. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradelegendary.png) | Legendary upgrade scroll | Used to upgrade legendary class items | -| ![{"name": "Sacred upgrade scroll", "itemClass": "legendary", "description": "Upgrade legendary class item. The chances for a successful upgrade varies depending on the item's level. Sacred scrolls gives a higher chance of successful upgrade" }](https://nanobrowserquest.com/img/3/item-scrollupgradesacred.png) | Sacred upgrade scroll | Used to upgrade legendary class items with an increased chance of success | -| ![{"name": "Blessed Transmute scroll", "itemClass": "legendary", "description": "Transmute a ring or an amulet and generate new random stats or an item to have a chance of making it unique. The chances of transmuting stats is fixed while the chances of getting a unique varies. There is a 1% chance your item will be burned during transmutation" }](https://nanobrowserquest.com/img/3/item-scrolltransmuteblessed.png) | Blessed Transmute scroll | Used to re-roll random attributes or create a unique out of a normal item with an increased chance of success | +| Item | Name | Description | +| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ![{"name": "Upgrade scroll", "itemClass": "low", "description": "Upgrade low class items. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradelow.png) | Low class upgrade scroll | Used to upgrade low class items | +| ![{"name": "Upgrade scroll", "itemClass": "medium", "description": "Upgrade medium class items. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgrademedium.png) | Medium class upgrade scroll | Used to upgrade medium class items | +| ![{"name": "Superior upgrade scroll", "itemClass": "high", "description": "Upgrade high class item. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradehigh.png) | Superior upgrade scroll | Used to upgrade high class items | +| ![{"name": "Blessed upgrade scroll", "itemClass": "high", "description": "Upgrade high class item. The chances for a successful upgrade varies depending on the item's level. Blessed scrolls gives a higher chance of successful upgrade." }](https://nanobrowserquest.com/img/3/item-scrollupgradeblessed.png) | Blessed upgrade scroll | Used to upgrade high class items with an increased chance of success | +| ![{"name": "Transmute scroll", "itemClass": "high", "description": "Transmute a ring or an amulet and generate new random stats or an item to have a chance of making it unique. The chances of transmuting stats is fixed while the chances of getting a unique varies. There is a 25% chance your item will be burned during transmutation" }](https://nanobrowserquest.com/img/3/item-scrolltransmute.png) | Transmute scroll | Used to re-roll random attributes or create a unique out of a normal item | +| ![{"name": "Legendary upgrade scroll", "itemClass": "legendary", "description": "Upgrade legendary class item. The chances for a successful upgrade varies depending on the item's level." }](https://nanobrowserquest.com/img/3/item-scrollupgradelegendary.png) | Legendary upgrade scroll | Used to upgrade legendary class items | +| ![{"name": "Sacred upgrade scroll", "itemClass": "legendary", "description": "Upgrade legendary class item. The chances for a successful upgrade varies depending on the item's level. Sacred scrolls gives a higher chance of successful upgrade" }](https://nanobrowserquest.com/img/3/item-scrollupgradesacred.png) | Sacred upgrade scroll | Used to upgrade legendary class items with an increased chance of success | +| ![{"name": "Blessed Transmute scroll", "itemClass": "legendary", "description": "Transmute a ring or an amulet and generate new random stats or an item to have a chance of making it unique. The chances of transmuting stats is fixed while the chances of getting a unique varies. There is a 1% chance your item will be burned during transmutation" }](https://nanobrowserquest.com/img/3/item-scrolltransmuteblessed.png) | Blessed Transmute scroll | Used to re-roll random attributes or create a unique out of a normal item with an increased chance of success, 99% | +| ![{"name": "Blessed Magic Element upgrade scroll", "itemClass": "legendary", "description": "Enchant a high or legendary weapon with magic spell offensive skill, 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeelementmagic.png) | Blessed Magic Element Upgrade scroll | Enchant a high or legendary weapon with magic spell offensive skill | +| ![{"name": "Blessed Flame Element upgrade scroll", "itemClass": "legendary", "description": "Enchant a high or legendary weapon with flame spell offensive skill, 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeelementflame.png) | Blessed Flame Element Upgrade scroll | Enchant a high or legendary weapon with flame spell offensive skill | +| ![{"name": "Blessed Lightning Element upgrade scroll", "itemClass": "legendary", "description": "Enchant a high or legendary weapon with lightning spell offensive skill, 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeelementlightning.png) | Blessed Lightning Element Upgrade scroll | Enchant a high or legendary weapon with lightning spell offensive skill | +| ![{"name": "Blessed Cold Element upgrade scroll", "itemClass": "legendary", "description": "Enchant a high or legendary weapon with cold spell offensive skill, 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeelementcold.png) | Blessed Cold Element Upgrade scroll | Enchant a high or legendary weapon with cold spell offensive skill | +| ![{"name": "Blessed Poison Element upgrade scroll", "itemClass": "legendary", "description": "Enchant a high or legendary weapon with poison spell offensive skill, 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeelementpoison.png) | Blessed Poison Element Upgrade scroll | Enchant a high or legendary weapon with poison spell offensive skill | +| ![{"name": "Blessed Random Skill upgrade scroll", "itemClass": "legendary", "description": "Enchant a a high or legendary weapon or shield with a random ability (current ability will be changed or it has a chance to stay unchanged), 99% success" }](https://nanobrowserquest.com/img/3/item-scrollupgradeskillrandom.png) | Blessed Random Skill upgrade scroll | Enchant a a high or legendary weapon or shield with a random ability (current ability will be changed or it has a chance to stay unchanged), 99% success | +| ![{"name": "Pet transmute scroll", "itemClass": "legendary", "description": "Re-roll a Pet type & skin, 99% chance of succeeding" }](https://nanobrowserquest.com/img/3/item-scrolltransmutepet.png) | Pet transmute scroll | Re-roll a Pet type & skin, 99% chance of succeeding | # Various (Potions ie.) @@ -436,17 +459,21 @@ These items are used to upgrade the items found in NBQ. It is done by putting th | ![{"name": "Nano Potion", "description": "Restores health to player by 200 hp" }](https://nanobrowserquest.com/img/3/item-nanopotion.png) | Nano / Banano Potion | Restores health to player by 200 hp | | ![{"name": "Rejuvenation Potion", "description": "Restores health to player by 40 hp" }](https://nanobrowserquest.com/img/3/item-rejuvenationpotion.png) | Rejuvenation Potion | Restores 33% of the player health | | ![{"name": "Firefox Potion", "description": "Restores health to player by 40 hp" }](https://nanobrowserquest.com/img/3/item-firefoxpotion.png) | Firefox Potion | Restore player health to 100% and grands the player temporary immortality | -| ![{"name": "Wirt's leg", "level": 1, "itemClass": "low", "damage": 2, "magicDamage": 1, "requirement": 1}](https://nanobrowserquest.com/img/3/item-wirtleg.png) | Wirt's Leg | Low level weapon with secret special properties | +| ![{"name": "Wirt's leg", "level": 1, "itemClass": "low", "damage": 2, "magicDamage": 1, "requirement": 1}](https://nanobrowserquest.com/img/3/item-wirtleg.png) | Wirt's Leg | A low-level weapon with a secret special ability. Opening the secret level with a unique Wirt's Leg guarantees a 100% drop rate of the Cow King's Horn item from the Cow King. | | ![{"name": "Skeleton King's Thoracic Cage", "description": "The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-skeletonkingcage.png) | Skeleton King's Thoracic Cage | The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter properties | -| ![{"name": "Necromancer's Heart", "description": "The heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-necromancerheart.png) | Necromancer's Heart | SThe heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter | -| ![{"name": "Cow King's horn", "description": "The horn of the Cow King. An unknown magic is still being emitted from the remains." }](https://nanobrowserquest.com/img/3/item-cowkinghorn.png) | Cow King's horn | Secret special properties, opens the Minotaur portal if the boss is spawned | -| ![{"name": "Blue Chest", "description": "The chest may contain a very precious item." }](https://nanobrowserquest.com/img/3/item-chestblue.png) | Blue Chest | Treasure chest awarded for killing the Minotaur (spawns every 6-8 hours) | +| ![{"name": "NFT", "description": "An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward." }](https://nanobrowserquest.com/img/3/item-nft.png) | NFT | An exceptional Non-Fungible Token artifact, return it to Alkor to get a reward. | +| ![{"name": "Wing", "description": "The remnants of a dragon's wing., return it to Olaf to get a reward." }](https://nanobrowserquest.com/img/3/item-wing.png) | Wing | The remnants of a dragon's wing. | +| ![{"name": "Crystal", "description": "An ancient and powerful crystal., return it to Viktor to get a reward." }](https://nanobrowserquest.com/img/3/item-crystal.png) | Crystal | An ancient and powerful crystal. | +| ![{"name": "Skeleton King's Thoracic Cage", "description": "The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-skeletonkingcage.png) | Skeleton King's Thoracic Cage | The thoracic cage of the Skeleton King. An unknown magic is still being emitted from the remains. Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter properties | +| ![{"name": "Necromancer's Heart", "description": "The heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter" }](https://nanobrowserquest.com/img/3/item-necromancerheart.png) | Necromancer's Heart | The heart of the Necromancer. An unknown magic is still being emitted from the remains. . Combined with other ingredients at the anvil, it will open a secret area, lv.45 required to enter | +| ![{"name": "Cow King's horn", "description": "The horn of the Cow King. An unknown magic is still being emitted from the remains." }](https://nanobrowserquest.com/img/3/item-cowkinghorn.png) | Cow King's horn | Secret special properties, opens the Minotaur portal if the boss is spawned (drops 20% from Cow King,or 100% if a unique writ leg was used to open the portal) | +| ![{"name": "Blue Chest", "description": "The chest may contain a very precious item." }](https://nanobrowserquest.com/img/3/item-chestblue.png) | Blue Chest | Treasure chest awarded for killing the Minotaur if your lv. is below 56(spawns every 6-8 hours) | | ![{"name": "Green Chest", "description": "The chest may contain a very precious item." }](https://nanobrowserquest.com/img/3/item-chestgreen.png) | Green Chest | Treasure chest awarded to players above level 56 for killing the Minotaur. Contains higher rewards compared to Blue Chest | | ![{"name": "Red Chest", "description": "The chest may contain a very precious item." }](https://nanobrowserquest.com/img/3/item-chestred.png) | Red Chest | Treasure chest awarded for killing The Butcher. Contains the Demon set items and the most epic rewards the game has to offer | | ![{"name": "Purple Chest", "description": "The chest may contain a very precious item." }](https://nanobrowserquest.com/img/3/item-chestpurple.png) | Purple Chest | Treasure chest awarded for killing Azrael the Death Angel. Contains the most epic rewards the game has to offer | | ![{"name": "Socket Stone", "itemClass": "legendary", "description": "Creates a random number of sockets in a non-socketed item." }](https://nanobrowserquest.com/img/3/item-stonesocket.png) | Socket Stone | Can be used to create more sockets on items that have this possibility (Weapons, Armors, Helms and shields). Can also be used to remove items already put into sockets. This comes with a 50% chance of getting the socketed item back but no risk of burning the base item. Any number of sockets can be created. Chance is random, higher socket numbers being less likely. Once an item has 3 or more sockets (4 on unique items), the stones will no longer work. At this point the player will have to use a Transmute Scroll with 25% risk or Blessed Transmute with 1% risk of burning the item. | | ![{"name": "Pickaxe", "description": "This tool is used for digging." }](https://nanobrowserquest.com/img/3/item-pickaxe.png) | Pickaxe | Drops from the Templar Skeletons. Has a secret purpose. | -| ![{"name": "Soul Stone", "description": "This mysterious gem holds the soul of a hundred warriors." }](https://nanobrowserquest.com/img/3/item-soulstone.png) | Soul Stone | Mysterious gem, drops from the Butcher | +| ![{"name": "Soul Stone", "description": "This mysterious gem holds the soul of a hundred warriors." }](https://nanobrowserquest.com/img/3/item-soulstone.png) | Soul Stone | Mysterious gem, drops from the Butcher goes to the player who used their quantum powder to open the gateway | | ![{"name": "Gold", "description": "Used to trade with the merchant or other players" }](https://nanobrowserquest.com/img/3/item-gold3.png) | Gold | Used to trade with the merchant or other players | | ![{"name": "Poison Powder", "description": "A special kind of powder" }](https://nanobrowserquest.com/img/3/item-powdergreen.png) | Poison Powder | A special kind of powder, dropped by poison rats | | ![{"name": "Illusion Powder", "description": "A special kind of powder" }](https://nanobrowserquest.com/img/3/item-powderblue.png) | Illusion Powder | A special kind of powder, dropped by Bonecrusader | @@ -455,6 +482,15 @@ These items are used to upgrade the items found in NBQ. It is done by putting th | ![{"name": "BTC maxi Powder", "description": "A special kind of powder" }](https://nanobrowserquest.com/img/3/item-powdergold.png) | BTC maxi Powder | A special kind of powder, dropped by Shai-Hulud | | ![{"name": "Quantum Powder", "description": "The ultimate powder that powers the gateway" }](https://nanobrowserquest.com/img/3/item-powderquantum.png) | Quantum Powder | The ultimate powder that powers the gateway | | ![{"name": "Golden Chalice", "description": "Return the Golden Chalice, a one-of-a-kind artifact, to its rightful place" }](https://nanobrowserquest.com/img/3/item-chalice.png) | Golden Chalice | Return the Golden Chalice, a one-of-a-kind artifact, to its rightful place. Dropped by spiders | +| ![{"name": "Bronze Bar", "description": "Common metal, worth 1000 Gold" }](https://nanobrowserquest.com/img/3/item-barbronze.png) | Bronze Bar | Common metal.(drop rate, 1/5000 from rats to Zombie mobs) | +| ![{"name": "Silver Bar", "description": "Rare metal, worth 10,000 Gold" }](https://nanobrowserquest.com/img/3/item-barsilver.png) | Silver Bar | Rare metal.(drop rate, 1/17,500 from frozen rats and above) | +| ![{"name": "Gold Bar", "description": "Precious metal, worth 100,000 Gold" }](https://nanobrowserquest.com/img/3/item-bargold.png) | Gold Bar | Precious metal.(drop rate, 1/200,000 from poison rats and above) | +| ![{"name": "Platinum Bar", "description": "Priceless metal, worth 1,000,000 Gold" }](https://nanobrowserquest.com/img/3/item-barplatinum.png) | Platinum Bar | Priceless metal. Doesn't drop from mobs, can only be purchased at merchant | +| ![{"name": "Dragon Stone", "description": "Blessed by the fire of the dragon, safely upgrade any item to +5" }](https://nanobrowserquest.com/img/3/item-stonedragon.png) | Dragoon Stone | (drop rate 1/25,000 from Oculothorax and above) | +| ![{"name": "Hero emblem", "description": "You've crushed your enemies, saw them driven before you, and heard the lamentation of their women. Safely upgrade any item to +6" }](https://nanobrowserquest.com/img/3/item-stonehero.png) | Hero Emblem | (drop rate 1/100,000 from Oculothorax and above) | +| ![{"name": "IOU", "description": "Written acknowledgment of a debt. Talk to Janet Yellen to exchange it for the gold amountspecifien on it." }](https://nanobrowserquest.com/img/3/item-iou.png) | IOU | (drop rate 1/1,00 from Deathknights and below, 1/3,000 from Zombies and below, 1/13,000 from Shadowveil Guardian and below) | + + | # Secret special quests @@ -597,33 +633,31 @@ You can use Runewords to get extra bonusses by putting runes in socketed normal **Helms** -| NAME | RUNES | STAT BONUSES | -| ----------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -| Live to fight another day | :runesat::runedo::runevie: | +35 Health, +10 Defense, +15 health regeneration per second | -| Bull market wen? | :runebul::runebul: | +20 Health, +5 Attack, +10 Defense, +5 health regeneration per second | -| Mesh network | :runemir::runesat::runehex: | +20 Health, +15 Attack, +5 Defense, +15 Lightning damage | -| Global warming | :runemer::runemer::runeum: | +20 Health, +10 Defense, +25 Flame damage, +20% Flame damage, +25% Flame resistance | -| Crypto Winter | :runetor::runequa::runetor: | +20 Health, +25 Cold damage, +20% Cold damage, +25% Cold resistance, +15% Freeze the enemy for # seconds, -10% Chance of being frozen | -| Halving | :runedur::runekul::runemer: | +40 Health, +15 Attack, +25 Flame damage, +15% Flame damage, +25% Flame resistance, +15% All resistances | -| Censorship-Resistant | :runeber::runejah::runeber: | +40 Health, -15% Enemy lower resistances, 30% Faster cast rate, +25% All resistances | -| Shocking price is undervalued | :runedur::runexno::runekul: | +25 Health, +12 Absorbed damage, +10 Lightning damage, +10% Attack speed, +15% Lightning damage | -| Regulation is coming | :runeshi::runexno::runegul: | +10 Defense, +10 Attack, +20 Poison damage, +15% Poison damage, +10% Attack speed, +10% All resistances, +15 health regeneration per second | -| Ledger Bloat | :runexno::runexno::runefal: | +10 Defense, +45 Health, +25 Magic damage, +15% Magic damage, +20% Magic resistance, +15% Magic find, +15% Attack speed | - -| OMG!😭 Can't believe I won ! -Thank you Walton team ! |:runejah::runeshi::runevod: | +45 Health, +10 Attack, +10 Absorbed damage, +15% Magic find, 15% Faster cast rate, +10% All resistances, +15 health regeneration per second, +20% Prevent enemy health regeneration | +| NAME | RUNES | STAT BONUSES | +| ---------------------------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| Live to fight another day | :runesat::runedo::runevie: | +35 Health, +10 Defense, +15 health regeneration per second | +| Bull market wen? | :runebul::runebul: | +20 Health, +5 Attack, +10 Defense, +5 health regeneration per second | +| Mesh network | :runemir::runesat::runehex: | +20 Health, +15 Attack, +5 Defense, +15 Lightning damage | +| Global warming | :runemer::runemer::runeum: | +20 Health, +10 Defense, +25 Flame damage, +20% Flame damage, +25% Flame resistance | +| Crypto Winter | :runetor::runequa::runetor: | +20 Health, +25 Cold damage, +20% Cold damage, +25% Cold resistance, +15% Freeze the enemy for # seconds, -10% Chance of being frozen | +| Halving | :runedur::runekul::runemer: | +40 Health, +15 Attack, +25 Flame damage, +15% Flame damage, +25% Flame resistance, +15% All resistances | +| Censorship-Resistant | :runeber::runejah::runeber: | +40 Health, -15% Enemy lower resistances, 30% Faster cast rate, +25% All resistances | +| Shocking price is undervalued | :runedur::runexno::runekul: | +25 Health, +12 Absorbed damage, +10 Lightning damage, +10% Attack speed, +15% Lightning damage | +| Regulation is coming | :runeshi::runexno::runegul: | +10 Defense, +10 Attack, +20 Poison damage, +15% Poison damage, +10% Attack speed, +10% All resistances, +15 health regeneration per second | +| Ledger Bloat | :runexno::runexno::runefal: | +10 Defense, +45 Health, +25 Magic damage, +15% Magic damage, +20% Magic resistance, +15% Magic find, +15% Attack speed | +| OMG!😭 Can't believe I won !ÏThank you Walton team ! | :runejah::runeshi::runevod: | +45 Health, +10 Attack, +10 Absorbed damage, +15% Magic find, 15% Faster cast rate, +10% All resistances, +15 health regeneration per second, +20% Prevent enemy health regeneration | # Skull Jewels Skull Jewels come in 5 different levels: level 1 (white), level 2 (white), level 3 (white & blue), level 4 (gray) and level 5 (gold). Similar to other items, Skull Jewels also exist in unique form with a 1% drop chance. Unique versions have an extra attribute added, making them stronger than their regular counterpart. Compared to a higher level skull, a unique (lower) skull is still slightly weaker (same amount of attributes but not as high). -| Item | Name | Dropped By | Drop Rate | -| :------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------- | :--------- | :-------- | -| ![{"name": "Skull Jewel lv.1", "itemClass": "low", "bonus": [2], "requirement": 4}](https://nanobrowserquest.com/img/3/item-jewelskull.png) | Skull Jewel lv.1 | ? | ? | -| ![{"name": "Skull Jewel lv.2", "itemClass": "medium", "bonus": [0,2], "requirement": 8}](https://nanobrowserquest.com/img/3/item-jewelskull.png) | Skull Jewel lv.2 | ? | ? | -| ![{"name": "Skull Jewel lv.3", "itemClass": "high", "bonus": [4,5,22], "requirement": 25}](https://nanobrowserquest.com/img/3/item-jewelskull1.png) | Skull Jewel lv.3 | ? | ? | -| ![{"name": "Skull Jewel lv.4", "itemClass": "high", "bonus": [2,6,21,22], "requirement": 45}](https://nanobrowserquest.com/img/3/item-jewelskull2.png) | Skull Jewel lv.4 | ? | ? | -| ![{"name": "Skull Jewel lv.5", "itemClass": "legendary", "bonus": [5,8,12,15,21], "requirement": 60}](https://nanobrowserquest.com/img/3/item-jewelskull3.png) | Skull Jewel lv.5 | ? | ? | +| Item | Name | Dropped By | Drop Rate | +| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :--------------- | :--------------- | :------------------ | +| ![{"name": "Skull Jewel lv.1","level": 1, "itemClass": "low", "bonus": [2], "requirement": 4}](https://nanobrowserquest.com/img/3/item-jewelskull.png) | Skull Jewel lv.1 | mobs below lv.13 | 1/250 | +| ![{"name": "Skull Jewel lv.2","level": 2, "itemClass": "medium", "bonus": [0,2], "requirement": 8}](https://nanobrowserquest.com/img/3/item-jewelskull.png) | Skull Jewel lv.2 | mobs above lv.13 | 1/250 | +| ![{"name": "Skull Jewel lv.3","level": 3, "itemClass": "high", "bonus": [4,5,22], "requirement": 25}](https://nanobrowserquest.com/img/3/item-jewelskull1.png) | Skull Jewel lv.3 | mobs below lv.30 | 30% chance of 1/250 | +| ![{"name": "Skull Jewel lv.4","level": 4, "itemClass": "high", "bonus": [2,6,21,22], "requirement": 45}](https://nanobrowserquest.com/img/3/item-jewelskull2.png) | Skull Jewel lv.4 | mobs below lv.45 | 10%chance of 1/250 | +| ![{"name": "Skull Jewel lv.5","level": 5, "itemClass": "legendary", "bonus": [5,8,12,15,21], "requirement": 60}](https://nanobrowserquest.com/img/3/item-jewelskull3.png) | Skull Jewel lv.5 | mobs above lv.60 | 5% chance of 1/250 | # Party chat commands @@ -667,22 +701,55 @@ Make sure to join the Nano Browserquest discord to trade your items: 3. For dedicated farmers looking for rare items, a good strategy is to equip damage mods and find the weakest enemy that drops the desired item. Look for places where there are many of them, make sure that you are strong enough to survive a large amount of said enemies with attack-focused items, and finally run into them and kill them as fast as possible. Remember to pick up all dropped loot to see if there is anything good in your inventory. The Lightning damage attributes (currently found on Rai Stone rings and Holy Cow King Talisman) is excellent for this type of farming as it deals damage consistently to everything around you. +# Player base stats per lvl + +When leveling up, your character gets stronger (the higher your level, the more bonus stats (Attack, Defense, HP) you get): + +- **Attack:** min and max dmg scales with the player level + +```javascript +// Attack calculations +let minAttack = + baseDamage + minDamage + Math.round(Math.pow(0.7, Math.floor(playerLevel / 10)) * playerLevel); +let maxAttack = + baseDamage + maxDamage + Math.round(Math.pow(1.075, Math.floor(playerLevel / 10)) * playerLevel); +``` + +- **Defense:** scales with the player level + +```javascript +// Defense calculations +let defense = baseDefense + Math.round(Math.pow(1.05, Math.floor(playerLevel / 10)) * playerLevel); +``` + +- **HP:** scales with the player level + +```javascript +// HP calculations +let hp = baseHP(80) + 6 * playerLevel; +``` + # Bosses -| Name | Description | Description | Drops | -| :-------------------- | :---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| keleton King | ![Skeleton King](https://cdn.discordapp.com/emojis/976432201887531058.webp?size=100&quality=lossless) | First Boss of the game, awards a Nano faucet payout for completing achievements(the more you complete before killing the boss the higher your payout),After this boss is killed, The Freezing Lands waypoints will unlock to continue your adventure, lv.16 required to enter its lair | Golden set & Skeleton King's Thoracic Cage | -| Necromancer | ![Necromancer](https://cdn.discordapp.com/emojis/976842075679113226.webp?size=100&quality=lossless) | Freezing Lands Boss, lv.43 required to enter its lair | 1% Necromancer Death Wish ring | -| Cow King | ![CowKing](https://cdn.discordapp.com/emojis/1157364026565722283.webp?size=100&quality=lossless) | Secret Area Boss, lv.45 required to enter the portal | Diamond set, 5% Holy Cow Talisman | -| Minotaur | ![Minotaur](https://cdn.discordapp.com/emojis/1157364041895903273.webp?size=100&quality=lossless) | Secret Area Boss, lv.50 required to enter the portal can be opened using the cow king horn item | Minotaur set items,blue chest if player lv is below 56 else green chest if lv56 and above, 5% minotaur ring | -| Arachneia | ![Arachneia](https://cdn.discordapp.com/emojis/1157668012699156500.webp?size=100&quality=lossless) | First Lost Temple boss her crypt will open once all 6 magic stones are activated | random Spiders in the crypt drops the Chalice and Blood powder | -| Zul'Gurak | ![ZulGurak](https://cdn.discordapp.com/emojis/1163287656218771507.webp?size=100&quality=lossless) | Powerful wizard that protects the Lost temple entrance | 1% wizard ring,1% mystical ring | -| Shai-Hulud | ![Shai-Hulud](https://cdn.discordapp.com/emojis/1157667989513052250.webp?size=100&quality=lossless) | Powerful physical damage Worm that protects Azrael lv.67 required to enter the temple | gold powder | -| Azrael | ![Azrael](https://cdn.discordapp.com/emojis/1156685409233944726.webp?size=100&quality=lossless) | Lost temple final boss requires lv.69 to enter the final room | 1% bad omen ring, purple chest, 2% mystical ring,mystical set items | -| Gorefiend the Butcher | ![Gorefiend](https://cdn.discordapp.com/emojis/1156685096888303748.webp?size=100&quality=lossless) | Boss accessible when using the quantum powder lv.68 required to enter the gateway portal | soulstone, red chest,demon set items | +| Name | Description | Description | Drops | +| :-------------------- | :----------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| keleton King | ![Skeleton King](https://cdn.discordapp.com/emojis/976432201887531058.webp?size=100&quality=lossless) | First Boss of the game, awards a Nano faucet payout for completing achievements(the more you complete before killing the boss the higher your payout),After this boss is killed, The Freezing Lands waypoints will unlock to continue your adventure, lv.16 required to enter its lair | Golden set & Skeleton King's Thoracic Cage | +| Skeleton Commander | ![Skeleton CommanderÏ](https://cdn.discordapp.com/emojis/1174371184855498802.webp?size=100&quality=lossless) | Freezing Lands Cemetery Boss | Chest that requires the skeleton key to be opened and containing the Sapphire sword | +| Necromancer | ![Necromancer](https://cdn.discordapp.com/emojis/976842075679113226.webp?size=100&quality=lossless) | Freezing Lands Boss, lv.43 required to enter its lair | 1% Necromancer Death Wish ring | +| Cow King | ![CowKing](https://cdn.discordapp.com/emojis/1157364026565722283.webp?size=100&quality=lossless) | Secret Area Boss, lv.45 required to enter the portal | Diamond set, 5% Holy Cow Talisman | +| Minotaur | ![Minotaur](https://cdn.discordapp.com/emojis/1157364041895903273.webp?size=100&quality=lossless) | Secret Area Boss, lv.50 required to enter the portal can be opened using the cow king horn,The Minotaur randomly spawns every 6-8 hours or has a 20% chance of spawning if the cow level gets fully cleared. item | Minotaur set items,blue chest if player lv is below 56 else green chest if lv56 and above, 5% minotaur ring | +| Arachneia | ![Arachneia](https://cdn.discordapp.com/emojis/1157668012699156500.webp?size=100&quality=lossless) | First Lost Temple boss her crypt will open once all 6 magic stones are activated | random Spiders in the crypt drops the Chalice and Blood powder | +| Zul'Gurak | ![ZulGurak](https://cdn.discordapp.com/emojis/1163287656218771507.webp?size=100&quality=lossless) | Powerful wizard that protects the Lost temple entrance | 1% wizard ring,1% mystical ring | +| Shai-Hulud | ![Shai-Hulud](https://cdn.discordapp.com/emojis/1157667989513052250.webp?size=100&quality=lossless) | Powerful physical damage Worm that protects Azrael lv.67 required to enter the temple | gold powder | +| Azrael | ![Azrael](https://cdn.discordapp.com/emojis/1156685409233944726.webp?size=100&quality=lossless) | Lost temple final boss requires lv.69 to enter the final room | 1% bad omen ring, purple chest, 2% mystical ring,mystical set items | +| Gorefiend the Butcher | ![Gorefiend](https://cdn.discordapp.com/emojis/1156685096888303748.webp?size=100&quality=lossless) | Boss accessible when using the quantum powder lv.68 required to enter the gateway portal | soulstone, red chest,demon set items | # Discord To engage with other players, report any problems, list your items for trade or check the release notes, you can join the Discord server. [Join Discord](https://discord.gg/GerkX8BfYy) + +``` + +``` diff --git a/src/pages/NanoBrowserQuest/Guide/index.tsx b/src/pages/NanoBrowserQuest/Guide/index.tsx index ff4c0d02..850c02a3 100644 --- a/src/pages/NanoBrowserQuest/Guide/index.tsx +++ b/src/pages/NanoBrowserQuest/Guide/index.tsx @@ -6,12 +6,13 @@ import { useTranslation } from "react-i18next"; import ReactMarkdown from "react-markdown"; import { Card, Col, Row, Tooltip, Typography } from "antd"; +import qs from "qs"; import remarkGfm from "remark-gfm"; import Header from "./components/Header"; import guide from "./guide.md"; -import { getItemAttributes } from "./utils"; +import { getItemAttributes, getItemClassFromBaseLevel, runeKind } from "./utils"; const { Title } = Typography; @@ -24,6 +25,18 @@ const NanoBrowserQuestGuidePage: React.FC = () => { fetch(guide) .then(response => response.text()) .then(text => { + text = text.replace(/:rune([a-z]+):/gi, (match, capturedLetters: string) => { + //@ts-ignore + const rune = runeKind[capturedLetters]; + console.log("~~~~rune", rune); + const replacement = `![{"name": "${capturedLetters.toUpperCase()} Rune #${ + rune.rank + }", "itemClass": "${getItemClassFromBaseLevel(rune.requirement)}", "requirement": "${ + rune.requirement + }"}](https://nanobrowserquest.com/img/1/item-rune-${capturedLetters}.png)`; + return replacement; + }); + setMarkdown(text); }); }, []); @@ -76,30 +89,34 @@ const Image: React.FC = ({ src, alt: rawAttributes }) => { if (rawAttributes?.startsWith("{")) { try { title = getItemAttributes(JSON.parse(rawAttributes)); - } catch (err) { // console.log("`~~~rawAttributes", rawAttributes); + } catch (err) { // console.log("`~~~rawAttributes", JSON.parse(rawAttributes)); - // console.log("`~~~title", title); + console.log("`~~~ERR", err); } - - const isNbqItemImage = src.includes("item-"); return (
); + // @NOTE non-item* images? } else { + const rawParsedQuery = qs.parse(src.split("?")[1], { ignoreQueryPrefix: true }); + + const parsedQuery = Object.assign(rawParsedQuery, { maxWidth: "100%", overflow: "hidden" }); + return ( -
- {rawAttributes} +
+ {rawAttributes}
); } diff --git a/src/pages/NanoBrowserQuest/Guide/utils.tsx b/src/pages/NanoBrowserQuest/Guide/utils.tsx index 9c7ccb0a..70260a03 100644 --- a/src/pages/NanoBrowserQuest/Guide/utils.tsx +++ b/src/pages/NanoBrowserQuest/Guide/utils.tsx @@ -401,3 +401,257 @@ const getPartyBonus = function (rawBonus: number[], level: number) { return bonus; }; + +export const runeKind = { + sat: { + rank: 1, + requirement: 1, + attribute: { + health: 10, + }, + }, + al: { + rank: 2, + requirement: 2, + attribute: { + minDamage: 4, + }, + }, + bul: { + rank: 3, + requirement: 3, + attribute: { + maxDamage: 4, + }, + }, + nan: { + rank: 4, + requirement: 4, + attribute: { + magicDamage: 4, + }, + }, + mir: { + rank: 5, + requirement: 6, + attribute: { + attackDamage: 4, + }, + }, + gel: { + rank: 6, + requirement: 8, + attribute: { + absorbedDamage: 4, + }, + }, + do: { + rank: 7, + requirement: 10, + attribute: { + defense: 4, + }, + }, + ban: { + rank: 8, + requirement: 12, + attribute: { + exp: 4, + }, + }, + vie: { + rank: 9, + requirement: 14, + attribute: { + regenerateHealth: 10, + }, + }, + um: { + rank: 10, + requirement: 16, + attribute: { + flameDamage: 10, + }, + }, + hex: { + rank: 11, + requirement: 18, + attribute: { + lightningDamage: 5, + }, + }, + zal: { + rank: 12, + requirement: 20, + attribute: { + pierceDamage: 5, + }, + }, + sol: { + rank: 13, + requirement: 22, + attribute: { + reduceFrozenChance: 5, + }, + }, + eth: { + rank: 14, + requirement: 24, + attribute: { + poisonDamage: 10, + }, + }, + btc: { + rank: 15, + requirement: 26, + attribute: { + magicResistance: 10, + }, + }, + vax: { + rank: 16, + requirement: 28, + attribute: { + flameResistance: 10, + }, + }, + por: { + rank: 17, + requirement: 30, + attribute: { + lightningResistance: 10, + }, + }, + las: { + rank: 18, + requirement: 32, + attribute: { + coldResistance: 10, + }, + }, + dur: { + rank: 19, + requirement: 34, + attribute: { + allResistance: 4, + }, + }, + fal: { + rank: 20, + requirement: 36, + attribute: { + magicDamagePercent: 8, + }, + }, + kul: { + rank: 21, + requirement: 38, + attribute: { + lightningDamagePercent: 8, + }, + }, + mer: { + rank: 22, + requirement: 41, + attribute: { + flameDamagePercent: 8, + }, + }, + qua: { + rank: 23, + requirement: 44, + attribute: { + coldDamagePercent: 8, + }, + }, + gul: { + rank: 24, + requirement: 47, + attribute: { + poisonDamagePercent: 8, + }, + }, + ber: { + rank: 25, + requirement: 50, + attribute: { + skillTimeout: 6, + }, + }, + cham: { + rank: 26, + requirement: 53, + attribute: { + poisonResistance: 10, + }, + }, + tor: { + rank: 27, + requirement: 56, + attribute: { + coldDamage: 10, + freezeChance: 5, + }, + }, + xno: { + rank: 28, + requirement: 59, + attribute: { + attackSpeed: 10, + }, + }, + jah: { + rank: 29, + requirement: 62, + attribute: { + magicFind: 6, + }, + }, + shi: { + rank: 30, + requirement: 65, + attribute: { + allResistance: 8, + }, + }, + vod: { + rank: 31, + requirement: 68, + attribute: { + regenerateHealth: 10, + preventRegenerateHealth: 10, + }, + }, +}; + +export const getItemClassFromBaseLevel = (level: number, baseLevel?: number) => { + + if (!baseLevel) { + baseLevel =Number(level) + } + let itemClass; + if (baseLevel < 5) { + if (!level || level <= 5) { + itemClass = "low"; + } else if (level <= 8) { + itemClass = "medium"; + } else { + itemClass = "high"; + } + } else if (baseLevel < 10) { + if (!level || level <= 5) { + itemClass = "medium"; + } else { + itemClass = "high"; + } + } else if (baseLevel >= 10 && baseLevel < 48) { + itemClass = "high"; + if (level >= 8) { + itemClass = "legendary"; + } + } else if (baseLevel >= 48) { + itemClass = "legendary"; + } + + return itemClass; +};