summaryrefslogtreecommitdiff
path: root/src/map/itemdb.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-12-13 16:25:50 -0800
committerBen Longbons <b.r.longbons@gmail.com>2012-12-14 16:18:22 -0800
commit069f39e8a1ebee3e4a4ce8302d0099842876782b (patch)
tree57d8de5f57d65878f8ef560e2884b9dee08e9323 /src/map/itemdb.hpp
parentf9563edf69f083287630f4b17db70d97524196d6 (diff)
downloadtmwa-069f39e8a1ebee3e4a4ce8302d0099842876782b.tar.gz
tmwa-069f39e8a1ebee3e4a4ce8302d0099842876782b.tar.bz2
tmwa-069f39e8a1ebee3e4a4ce8302d0099842876782b.tar.xz
tmwa-069f39e8a1ebee3e4a4ce8302d0099842876782b.zip
Some formatting fixes before I go insane
Also delete the French translation from ladmin.
Diffstat (limited to 'src/map/itemdb.hpp')
-rw-r--r--src/map/itemdb.hpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/src/map/itemdb.hpp b/src/map/itemdb.hpp
index e03892d..a132067 100644
--- a/src/map/itemdb.hpp
+++ b/src/map/itemdb.hpp
@@ -7,25 +7,25 @@
struct item_data
{
- int nameid;
+ 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;
+ 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;
const ScriptCode *use_script;
const ScriptCode *equip_script;
struct
@@ -37,18 +37,18 @@ struct item_data
unsigned no_drop:1;
unsigned no_use:1;
} flag;
- int view_id;
+ int view_id;
};
struct random_item_data
{
- int nameid;
- int per;
+ 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
@@ -60,24 +60,24 @@ struct item_data *itemdb_exists (int nameid);
#define itemdb_wlv(n) itemdb_search(n)->wlv
#define itemdb_range(n) itemdb_search(n)->range
#define itemdb_slot(n) itemdb_search(n)->slot
-#define itemdb_available(n) (itemdb_exists(n) && itemdb_search(n)->flag.available)
-#define itemdb_viewid(n) (itemdb_search(n)->view_id)
+#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