summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-03-02 01:17:38 -0600
committerwushin <pasekei@gmail.com>2015-03-02 01:17:38 -0600
commit10c441c0a335a6d8cab46fcd851054b0cbe19e98 (patch)
tree02b4a5992c0e35b29d147480ee0d68debfc61c87 /hercules
parent8e47c1082a3cc32fd34a8879698eb4ab5b369060 (diff)
downloadevol-tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.gz
evol-tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.bz2
evol-tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.tar.xz
evol-tools-10c441c0a335a6d8cab46fcd851054b0cbe19e98.zip
hercules converter: tmw: fix itemdb pricing
Diffstat (limited to 'hercules')
-rw-r--r--hercules/code/server/tmw/itemdb.py5
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")