summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 23:24:20 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-20 23:24:20 +0000
commit8cd804f247a2d36ff8dc69d09a1004f5ec84197a (patch)
tree88c4f726d6a9fea3d3a13032db4bb1b850a2ddee /src/map/itemdb.h
parenta09e5436e06f844688f708c23975d3ce7e4b3965 (diff)
downloadhercules-8cd804f247a2d36ff8dc69d09a1004f5ec84197a.tar.gz
hercules-8cd804f247a2d36ff8dc69d09a1004f5ec84197a.tar.bz2
hercules-8cd804f247a2d36ff8dc69d09a1004f5ec84197a.tar.xz
hercules-8cd804f247a2d36ff8dc69d09a1004f5ec84197a.zip
- Added two columns to item_db: equip_script and unequip_script are scripts that are executed once when the corresponding item is equipped or unequipped respectively.
- Removed bonuses bDamageWhenUnequip, bLoseSPWhenUnequip - Updated sql-files/item_db.sql with latest. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index f65b4b943..88741b3b6 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -34,7 +34,10 @@ struct item_data {
// some script commands should be revised as well...
unsigned int class_base[3]; //Specifies if the base can wear this item (split in 3 indexes per type: 1-1, 2-1, 2-2)
unsigned class_upper : 3; //Specifies if the upper-type can equip it (1: normal, 2: upper, 3: baby)
- unsigned char *script; // 攻撃,防御の属性設定もこの中で可能かな?
+ unsigned char *script; //Default script for everything.
+ unsigned char *equip_script; //Script executed once when equipping.
+ unsigned char *unequip_script;//Script executed once when unequipping.
+
struct {
unsigned available : 1;
unsigned value_notdc : 1;