diff options
author | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 15:50:55 +0000 |
---|---|---|
committer | Simon Edwardsson <simon@crossnet.se> | 2004-10-02 15:50:55 +0000 |
commit | 91fbf564fe4a28a93122d6a8a6a1df9d119dce91 (patch) | |
tree | e1c8025714fb70c40f4e2e63117e1a86246f8b17 /src/gui/shop.h | |
parent | 572f377ea2eca51469e06109503e9f4bcb198166 (diff) | |
download | mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.gz mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.bz2 mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.tar.xz mana-91fbf564fe4a28a93122d6a8a6a1df9d119dce91.zip |
Sell in shops does now works, and you can choose amount :) (hope I don't break anything)
Diffstat (limited to 'src/gui/shop.h')
-rw-r--r-- | src/gui/shop.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/shop.h b/src/gui/shop.h index 5aa8548a..8c3869d0 100644 --- a/src/gui/shop.h +++ b/src/gui/shop.h @@ -30,20 +30,28 @@ #include <stdio.h> #include "../graphic/graphic.h" +#include "inventory.h" + struct ITEM_SHOP { char name[30]; int price; short id; + int index; + int quantity; ITEM_SHOP *next; }; extern int n_items; +extern char* selectedItem; +extern char itemCurrenyQ[10]; char *shop_list(int index, int *list_size); void add_buy_item(short id, int price); void add_sell_item(short index, int price); +void changeQ(void *dp3, int d2); void close_shop(); short get_item_id(int index); - +int get_item_quantity(int index); +int get_item_index(int index); #endif |