Version update

This commit is contained in:
Wiktor Mazur
2021-10-21 21:41:58 +02:00
parent ac487adf5a
commit c582677329
4 changed files with 20 additions and 12 deletions
+16
View File
@@ -1,9 +1,25 @@
#!/bin/bash
FOUND_PYTHON="none"
for app in python3 python
do
if [ -x "$(command -v $app)" ]; then
FOUND_PYTHON=$app
break
fi
done
echo "Found python: $FOUND_PYTHON"
echo "Creating python virtual environment"
python -m venv python_env
source python_env/bin/activate
echo "Installing albion online stats"
python -m pip install aostats
python -m pip install --upgrade aostats
+2 -2
View File
@@ -6,8 +6,8 @@ install_requires = [
"requests==2.26.0",
"PySide6==6.2.0",
"toml==0.10.2",
"pillow==8.3.2",
"pyaoaddons==0.2.7.dev"
"pillow==8.4.0",
"pyaoaddons==0.2.8"
]
this_directory = path.abspath(path.dirname(__file__))
+1 -9
View File
@@ -1,12 +1,8 @@
import json
try:
from pyaoaddons import item_category_mapping
except:
item_category_mapping = {}
from . import assets
class WeaponType:
Arcane = 'arcanestaff'
@@ -26,12 +22,8 @@ class WeaponType:
Sword = 'sword'
def map_weapon(weapon):
return item_category_mapping[weapon] if weapon in item_category_mapping else None
def get_weapon_type(items):
weapon = map_weapon(items['weapon'])
weapon = item_category_mapping.get(items.get('weapon', None), None)
if weapon == WeaponType.Arcane:
return WeaponType.Arcane
+1 -1
View File
@@ -1 +1 @@
version = "1.0.4"
version = "1.0.5"