From 926cff033bb9533ae3d8615f8b90e2e443d0525b Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 21 Aug 2017 20:58:36 +0200 Subject: Add support for bitmask arrays in the item_db Upper field Signed-off-by: Haru --- doc/item_db.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/item_db.txt') diff --git a/doc/item_db.txt b/doc/item_db.txt index 8a33f9c35..d9ec96fc1 100644 --- a/doc/item_db.txt +++ b/doc/item_db.txt @@ -58,7 +58,7 @@ item_db: ( Summoner: true/false (boolean, defaults to false) } Job: Job mask (alternate synxtax, int, defaults to all jobs = 0xFFFFFFFF) - Upper: Upper mask (int, defaults to any = 0x3f) + Upper: Upper mask (bitmask array, string or int, defaults to "ITEMUPPER_ALL") Gender: Gender (string, defaults to "SEX_ANY") Loc: Equip location (int, required value for equipment) WeaponLv: Weapon Level (int, defaults to 0) @@ -188,17 +188,17 @@ Job: Job restrictions. If this block is omitted, item can be equipped by all cl All (default value): 0xFFFFFFFF Upper: Equippable upper-types. Uses the following bitmasks: - Normal jobs: 0x01 (1) - Upper jobs: 0x02 (2) - Baby jobs: 0x04 (4) - Third jobs: 0x08 (8) - Upper Third jobs: 0x10 (16) - Baby Third jobs: 0x20 (32) + Normal jobs: ITEMUPPER_NORMAL (0x01) + Upper jobs: ITEMUPPER_UPPER (0x02) + Baby jobs: ITEMUPPER_BABY (0x04) + Third jobs: ITEMUPPER_THIRD (0x08) + Upper Third jobs: ITEMUPPER_THIRDUPPER (0x10) + Baby Third jobs: ITEMUPPER_THIRDBABY (0x20) Under pre-re mode third classes are considered upper, making use of - the 8 and above masks is therefore not necessary unless in renewal - mode. When no value is specified, all classes (mask 0x3f) are able to - equip the item. + the ITEMUPPER_THIRD and above masks is therefore not necessary unless + in renewal mode. When no value is specified, all classes (mask + ITEMUPPER_ALL = 0x3f) are able to equip the item. Gender: Gender restriction. Available genders: -- cgit v1.2.3-60-g2f50