diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2010-11-08 17:44:20 +0100 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2010-11-08 17:44:20 +0100 |
commit | 89b7690cba845d1a480dd5ccacbd6e97c18bd9f6 (patch) | |
tree | 146324890cfbb7da5729041f4c79abed15ea6243 | |
parent | 0933950e24839a516d58a969298c54e815906c17 (diff) | |
download | serverdata-89b7690cba845d1a480dd5ccacbd6e97c18bd9f6.tar.gz serverdata-89b7690cba845d1a480dd5ccacbd6e97c18bd9f6.tar.bz2 serverdata-89b7690cba845d1a480dd5ccacbd6e97c18bd9f6.tar.xz serverdata-89b7690cba845d1a480dd5ccacbd6e97c18bd9f6.zip |
adding constants to const.txt for byte masking
adding the constants to have the avalability to
mask and shift bytes within a script variable
-rw-r--r-- | db/const.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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 |