summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-12-25 05:00:31 -0500
committerJared Adams <jaxad0127@gmail.com>2009-12-26 00:40:11 -0700
commit634aeeb9d58b01f9de6632a014a063ef0c4cf31e (patch)
tree70023dd2bcc12a3f96ec6f118d80e27411920531 /src/map/itemdb.h
parent113fcc4f0a7a0921e94bc415515dd4b393a29d60 (diff)
downloadtmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.gz
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.bz2
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.xz
tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.zip
Used the "indent" C formatting program from GNU to do some clean ups
The command options used was: -nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0 -di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h93
1 files changed, 48 insertions, 45 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 9c971a3..de07822 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -4,47 +4,50 @@
#include "map.h"
-struct item_data {
- int nameid;
- char name[24],jname[24];
- char prefix[24],suffix[24];
- char cardillustname[64];
- int value_buy;
- int value_sell;
- int type;
- int sex;
- int equip;
- int weight;
- int atk;
- int def;
- int range;
- int magic_bonus;
- int slot;
- int look;
- int elv;
- int wlv;
- int refine;
- char *use_script;
- char *equip_script;
- struct {
- unsigned available : 1;
- unsigned value_notdc : 1;
- unsigned value_notoc : 1;
- unsigned no_equip : 3;
- unsigned no_drop : 1;
- unsigned no_use : 1;
- } flag;
- int view_id;
+struct item_data
+{
+ int nameid;
+ char name[24], jname[24];
+ char prefix[24], suffix[24];
+ char cardillustname[64];
+ int value_buy;
+ int value_sell;
+ int type;
+ int sex;
+ int equip;
+ int weight;
+ int atk;
+ int def;
+ int range;
+ int magic_bonus;
+ int slot;
+ int look;
+ int elv;
+ int wlv;
+ int refine;
+ char *use_script;
+ char *equip_script;
+ struct
+ {
+ unsigned available:1;
+ unsigned value_notdc:1;
+ unsigned value_notoc:1;
+ unsigned no_equip:3;
+ unsigned no_drop:1;
+ unsigned no_use:1;
+ } flag;
+ int view_id;
};
-struct random_item_data {
- int nameid;
- int per;
+struct random_item_data
+{
+ int nameid;
+ int per;
};
-struct item_data* itemdb_searchname(const char *name);
-struct item_data* itemdb_search(int nameid);
-struct item_data* itemdb_exists(int nameid);
+struct item_data *itemdb_searchname (const char *name);
+struct item_data *itemdb_search (int nameid);
+struct item_data *itemdb_exists (int nameid);
#define itemdb_type(n) itemdb_search(n)->type
#define itemdb_atk(n) itemdb_search(n)->atk
#define itemdb_def(n) itemdb_search(n)->def
@@ -59,21 +62,21 @@ struct item_data* itemdb_exists(int nameid);
#define itemdb_available(n) (itemdb_exists(n) && itemdb_search(n)->flag.available)
#define itemdb_viewid(n) (itemdb_search(n)->view_id)
-int itemdb_searchrandomid(int flags);
+int itemdb_searchrandomid (int flags);
#define itemdb_value_buy(n) itemdb_search(n)->value_buy
#define itemdb_value_sell(n) itemdb_search(n)->value_sell
#define itemdb_value_notdc(n) itemdb_search(n)->flag.value_notdc
#define itemdb_value_notoc(n) itemdb_search(n)->flag.value_notoc
-int itemdb_isequip(int);
-int itemdb_isequip2(struct item_data *);
-int itemdb_isequip3(int);
-int itemdb_isdropable(int nameid);
+int itemdb_isequip (int);
+int itemdb_isequip2 (struct item_data *);
+int itemdb_isequip3 (int);
+int itemdb_isdropable (int nameid);
-void itemdb_reload(void);
+void itemdb_reload (void);
-void do_final_itemdb(void);
-int do_init_itemdb(void);
+void do_final_itemdb (void);
+int do_init_itemdb (void);
#endif