From f60b6e4189c5dff8f20cdfa4fddcad87749969a6 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 23 Jul 2023 16:35:12 -0600 Subject: include gil per nut --- most-valuable-materia.ipynb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'most-valuable-materia.ipynb') diff --git a/most-valuable-materia.ipynb b/most-valuable-materia.ipynb index e42b10e..13ba223 100644 --- a/most-valuable-materia.ipynb +++ b/most-valuable-materia.ipynb @@ -48,6 +48,7 @@ "source": [ "# useful constants\n", "ROMAN_NUMERALS = [\"I\", \"II\", \"III\", \"IV\", \"V\", \"VI\", \"VII\", \"VIII\", \"IX\", \"X\"]\n", + "HUNT_CURRENCIES = {\"VI\": (400, \"seal\"), \"VII\": (150, \"nut\"), \"VIII\": (400, \"nut\"), \"IX\": (150, \"nut\"), \"X\": (400, \"nut\")}\n", "\n", "# grabbed by hand from XIVAPI\n", "MATERIA = {\n", @@ -102,7 +103,12 @@ " for this_id in best_ids[:2]:\n", " name = targets[this_id]\n", " price = prices[this_id]\n", - " display(Markdown(f\"- {name} - {price}g\"))" + " if tier in HUNT_CURRENCIES:\n", + " qty, currency = HUNT_CURRENCIES[tier]\n", + " hunt_price = f\" - {round(price/qty, 2)} g/{currency}\"\n", + " else:\n", + " hunt_price = \"\"\n", + " display(Markdown(f\"- {name} - {price}g{hunt_price}\"))" ] } ], @@ -122,7 +128,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.0" + "version": "3.11.4" } }, "nbformat": 4, -- cgit v1.2.3