Mercurial > rinkhals
comparison gamelib/toolbar.py @ 448:92e7a641b4a6
added units to price list
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Sat, 21 Nov 2009 20:02:33 +0000 |
parents | f04a2490c35f |
children | 5d74d0e4a4cc |
comparison
equal
deleted
inserted
replaced
447:f04a2490c35f | 448:92e7a641b4a6 |
---|---|
129 for header in ['Item', 'Buy Price', 'Sell Price', 'Repair Price']: | 129 for header in ['Item', 'Buy Price', 'Sell Price', 'Repair Price']: |
130 doc.add(make_box(header)) | 130 doc.add(make_box(header)) |
131 doc.br(space[1]) | 131 doc.br(space[1]) |
132 for building in buildings.BUILDINGS: | 132 for building in buildings.BUILDINGS: |
133 doc.add(make_box(building.NAME)) | 133 doc.add(make_box(building.NAME)) |
134 doc.add(make_box('%d' % building.BUY_PRICE)) | 134 doc.add(make_box('%d planks' % building.BUY_PRICE)) |
135 doc.add(make_box('%d' % building.SELL_PRICE)) | 135 doc.add(make_box('%d planks' % building.SELL_PRICE)) |
136 if building.BREAKABLE: | 136 if building.BREAKABLE: |
137 doc.add(make_box('%d' % building.REPAIR_PRICE)) | 137 doc.add(make_box('%d planks' % building.REPAIR_PRICE)) |
138 else: | 138 else: |
139 doc.add(make_box('N/A')) | 139 doc.add(make_box('N/A')) |
140 doc.br(space[1]) | 140 doc.br(space[1]) |
141 for equip in equipment.EQUIPMENT: | 141 for equip in equipment.EQUIPMENT: |
142 doc.add(make_box(equip.NAME)) | 142 doc.add(make_box(equip.NAME)) |
143 doc.add(make_box('%d' % equip.BUY_PRICE)) | 143 doc.add(make_box('%d groats' % equip.BUY_PRICE)) |
144 doc.add(make_box('%d' % equip.SELL_PRICE)) | 144 doc.add(make_box('%d groats' % equip.SELL_PRICE)) |
145 doc.add(make_box('N/A')) | 145 doc.add(make_box('N/A')) |
146 doc.br(space[1]) | 146 doc.br(space[1]) |
147 | 147 |
148 fix_widths(doc) | 148 fix_widths(doc) |
149 for word in "Damaged equipment or buildings will be sold for" \ | 149 for word in "Damaged equipment or buildings will be sold for" \ |