aboutsummaryrefslogtreecommitdiff
path: root/most-valuable-materia.ipynb
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2023-07-23 16:35:12 -0600
committerMelody Horn <melody@boringcactus.com>2023-07-23 16:35:12 -0600
commitf60b6e4189c5dff8f20cdfa4fddcad87749969a6 (patch)
treef1d41b25c3b44aa9f0f644bbc95ecba37db0b4f3 /most-valuable-materia.ipynb
parent912ba3abdbb940ada3752dd5df311b852da491c0 (diff)
downloadmost-valuable-materia-f60b6e4189c5dff8f20cdfa4fddcad87749969a6.tar.gz
most-valuable-materia-f60b6e4189c5dff8f20cdfa4fddcad87749969a6.zip
include gil per nutHEADcanon
Diffstat (limited to 'most-valuable-materia.ipynb')
-rw-r--r--most-valuable-materia.ipynb10
1 files changed, 8 insertions, 2 deletions
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,