aboutsummaryrefslogtreecommitdiff
path: root/src/game/LootMgr.h
diff options
context:
space:
mode:
authorShauren <krzysiek.7.5.4@gmail.com>2010-05-21 22:45:47 +0200
committerShauren <krzysiek.7.5.4@gmail.com>2010-05-21 22:45:47 +0200
commit7c1a189bd39ea11bbb42c412b57fa7421286cf98 (patch)
tree1a624bdb7f4f558c7e71959501ba1d1fb8217b8f /src/game/LootMgr.h
parent1b5d171d0bf617fe00a41314d6b264fc679e7d56 (diff)
Fixed disenchanting rolls being allowed for all items, now works as intended
Renamed Faction to Flags2 in ItemPrototype and added use for some of them yay, my first commit :D --HG-- branch : trunk
Diffstat (limited to 'src/game/LootMgr.h')
-rw-r--r--src/game/LootMgr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/LootMgr.h b/src/game/LootMgr.h
index 2e095fb35ba..1f443f47fb9 100644
--- a/src/game/LootMgr.h
+++ b/src/game/LootMgr.h
@@ -38,7 +38,16 @@ enum RollType
MAX_ROLL_TYPE = 4
};
-#define ALL_ROLL_TYPE_MASK 0x0F
+enum RollMask
+{
+ ROLL_FLAG_TYPE_PASS = 0x01,
+ ROLL_FLAG_TYPE_NEED = 0x02,
+ ROLL_FLAG_TYPE_GREED = 0x04,
+ ROLL_FLAG_TYPE_DISENCHANT = 0x08,
+
+ ROLL_ALL_TYPE_NO_DISENCHANT = 0x07,
+ ROLL_ALL_TYPE_MASK = 0x0F
+};
#define MAX_NR_LOOT_ITEMS 16
// note: the client cannot show more than 16 items total