diff options
author | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
---|---|---|
committer | jak1 <jak1@themanaworld.org> | 2022-06-19 09:34:16 +0200 |
commit | 38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch) | |
tree | 6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /client | |
parent | 9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff) | |
download | tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2 tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip |
updated all leftover scripts to py3
Diffstat (limited to 'client')
-rwxr-xr-x | client/minimap-dyecmd.py | 2 | ||||
-rwxr-xr-x | client/weapons.py | 14 |
2 files changed, 12 insertions, 4 deletions
diff --git a/client/minimap-dyecmd.py b/client/minimap-dyecmd.py index 28c35ee..8594dbd 100755 --- a/client/minimap-dyecmd.py +++ b/client/minimap-dyecmd.py @@ -2,7 +2,7 @@ #-*- coding:utf-8 -*- import os -f=open("minimap-dyecmd.sh", "w"); +f=open("minimap-dyecmd.sh", "w") CLIENT_DATA_ROOT="../../client-data" map_names = sorted([os.path.splitext(p)[0] for p in os.listdir(os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps'))]) diff --git a/client/weapons.py b/client/weapons.py index 2f689a6..65d6c2d 100755 --- a/client/weapons.py +++ b/client/weapons.py @@ -64,9 +64,17 @@ shields=[] mem=[] -f1=open("../../client-data/items/equip-1hand.xml", "r"); main(f1); f1.close() -f2=open("../../client-data/items/equip-2hand.xml", "r"); main(f2); f2.close() -f3=open("../../client-data/items/equip-shield.xml", "r"); main(f3, TYPE_SHD); f3.close() +f1=open("../../client-data/items/equip-1hand.xml", "r") +main(f1) +f1.close() + +f2=open("../../client-data/items/equip-2hand.xml", "r") +main(f2) +f2.close() + +f3=open("../../client-data/items/equip-shield.xml", "r") +main(f3, TYPE_SHD) +f3.close() mem=sorted(mem, key=lambda xcv: xcv.lvl, reverse=True) |