diff options
author | wushin <pasekei@gmail.com> | 2015-03-02 01:17:38 -0600 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2015-03-02 01:17:38 -0600 |
commit | 10c441c0a335a6d8cab46fcd851054b0cbe19e98 (patch) | |
tree | 02b4a5992c0e35b29d147480ee0d68debfc61c87 /hercules/code/server/tmw/itemdb.py | |
parent | 8e47c1082a3cc32fd34a8879698eb4ab5b369060 (diff) | |
download | tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.gz tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.bz2 tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.xz tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.zip |
hercules converter: tmw: fix itemdb pricing
Diffstat (limited to 'hercules/code/server/tmw/itemdb.py')
-rw-r--r-- | hercules/code/server/tmw/itemdb.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hercules/code/server/tmw/itemdb.py b/hercules/code/server/tmw/itemdb.py index 596d31a..54e8a83 100644 --- a/hercules/code/server/tmw/itemdb.py +++ b/hercules/code/server/tmw/itemdb.py @@ -62,7 +62,10 @@ def convertItemDb(): else: writeIntField(w, "Type", rows[3]) writeIntField(w, "Buy", rows[4]) - writeIntField(w, "Sell", rows[5]) + if int(rows[4])*.75 <= int(rows[5])*1.24: + writeIntField(w, "Sell", str(int(rows[4])*.75)) + else: + writeIntField(w, "Sell", rows[5]) writeIntField(w, "Weight", rows[6]) writeIntField(w, "Atk", rows[7]) writeIntField(w, "Matk", "0") |