damage refactor, new averages

This commit is contained in:
Bryce Allen
2015-04-22 11:52:11 -05:00
parent f91b11e293
commit 9968cd4cdd
5 changed files with 708 additions and 4 deletions

View File

@@ -26,10 +26,7 @@ if __name__ == '__main__':
out = get_utf8_writer(sys.stdout)
err_out = get_utf8_writer(sys.stderr)
# TODO: doesn't work if script is symlinked
db_path = os.path.dirname(sys.argv[0])
db_path = os.path.join(db_path, "..", "db", "mh4u.db")
db = MHDB(db_path)
db = MHDB(_pathfix.db_path)
item_row = rewards.find_item(db, item_name, err_out)
if item_row is None: