aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,