Skip to content

Instantly share code, notes, and snippets.

@nocarryr
Last active February 4, 2023 20:37
Show Gist options
  • Save nocarryr/40e8121b506a8b4649086fa615da55ba to your computer and use it in GitHub Desktop.
Save nocarryr/40e8121b506a8b4649086fa615da55ba to your computer and use it in GitHub Desktop.
Stuff to calculate cost of leveling implants in Eve Echoes
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "python",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8"
},
"kernelspec": {
"name": "python",
"display_name": "Python (Pyodide)",
"language": "python"
}
},
"nbformat_minor": 4,
"nbformat": 4,
"cells": [
{
"cell_type": "code",
"source": "level_exp = [\n # 0 to 15\n 0, 0, 950, 1900, 2900, 4000, 7000, 8500, 10000, 11000, 13000, 10000, 12000, 14000, 16000, 18000,\n # 15 to 30\n 27000, 31000, 34000, 37000, 41000, 62000, 67000, 72000, 78000, 84000, 120000, 130000, 140000, 150000, 160000,\n]",
"metadata": {
"trusted": true
},
"execution_count": 1,
"outputs": []
},
{
"cell_type": "code",
"source": "level_exp[15]",
"metadata": {
"trusted": true
},
"execution_count": 2,
"outputs": [
{
"execution_count": 2,
"output_type": "execute_result",
"data": {
"text/plain": "18000"
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": "def calc_exp_isk_cost(exp: int) -> float:\n # ascension neural compiler == 2000 exp\n asc_exp = 2000\n # estimated isk each\n asc_isk = 48e6\n return exp / asc_exp * asc_isk",
"metadata": {
"trusted": true
},
"execution_count": 3,
"outputs": []
},
{
"cell_type": "code",
"source": "isk_per_level = [calc_exp_isk_cost(exp) for exp in level_exp]",
"metadata": {
"trusted": true
},
"execution_count": 4,
"outputs": []
},
{
"cell_type": "code",
"source": "'{:,}'.format(isk_per_level[15])",
"metadata": {
"trusted": true
},
"execution_count": 5,
"outputs": [
{
"execution_count": 5,
"output_type": "execute_result",
"data": {
"text/plain": "'432,000,000.0'"
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": "# cost to level 15\n'{:,}'.format(sum(isk_per_level[:16]))",
"metadata": {
"trusted": true
},
"execution_count": 6,
"outputs": [
{
"execution_count": 6,
"output_type": "execute_result",
"data": {
"text/plain": "'3,102,000,000.0'"
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": "# cost from 15 to 30\n'{:,}'.format(sum(isk_per_level[16:]))",
"metadata": {
"trusted": true
},
"execution_count": 7,
"outputs": [
{
"execution_count": 7,
"output_type": "execute_result",
"data": {
"text/plain": "'29,592,000,000.0'"
},
"metadata": {}
}
]
},
{
"cell_type": "code",
"source": "# total cost from level 0 to 30\n'{:,}'.format(sum(isk_per_level))",
"metadata": {
"trusted": true
},
"execution_count": 8,
"outputs": [
{
"execution_count": 8,
"output_type": "execute_result",
"data": {
"text/plain": "'32,694,000,000.0'"
},
"metadata": {}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment