From 89b7690cba845d1a480dd5ccacbd6e97c18bd9f6 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 8 Nov 2010 17:44:20 +0100 Subject: adding constants to const.txt for byte masking adding the constants to have the avalability to mask and shift bytes within a script variable --- db/const.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'db') diff --git a/db/const.txt b/db/const.txt index 8ea285f0..d15c9200 100644 --- a/db/const.txt +++ b/db/const.txt @@ -197,6 +197,18 @@ NIBBLE_6_MASK 251658240 NIBBLE_7_SHIFT 28 // Only three bits available in this one NIBBLE_7_MASK 1879048192 // should be 4026531840 +BYTE_0_MASK 255 +BYTE_0_SHIFT 0 + +BYTE_1_MASK 65280 +BYTE_1_SHIFT 8 + +BYTE_2_MASK 16711680 +BYTE_2_SHIFT 16 + +BYTE_3_MASK 4278190080 +BYTE_3_SHIFT 24 + // Skill pools SKILL_FOCUS 339 SKILL_MALLARDS_EYE 45 -- cgit v1.2.3-60-g2f50