diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-14 10:32:08 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-12-14 10:32:08 -0800 |
commit | e34e49d3064640e01305549413c862ee0a7a79aa (patch) | |
tree | 863efe11d5aa9a079188df2c9f0c112c93e13074 /tools/item_show.py | |
parent | 45185408935a56197c308da7ae5d27d72fe06917 (diff) | |
download | serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.gz serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.bz2 serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.tar.xz serverdata-e34e49d3064640e01305549413c862ee0a7a79aa.zip |
Change tools/ to a submodule
Diffstat (limited to 'tools/item_show.py')
-rw-r--r-- | tools/item_show.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/item_show.py b/tools/item_show.py deleted file mode 100644 index 1e14e773..00000000 --- a/tools/item_show.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python -#has to be executed in place, this folder - - -def make_items(): - items_file=open("../db/item_db.txt","r") - lines=items_file.readlines() - items_file.close(); - - items=[] - for line in lines: - array=line.split(",") - if len(array)>6 and not line.startswith("#") and not line.startswith("//"): - id=array[0] - name=array[1] - mbonus=array[10] - try: - int(mbonus) - items+=[(int(mbonus),name)] - except: - print line - return items; - -global_items=[] -global_items=make_items(); - -global_items.sort() -for item in global_items: - print item |