Code: Select all
(if (eq (divide (itmIsEnhanced gItem) 0x100) 0x01)
(setq newMod 0x0100)
(setq newMod 0x0102)
)
Basically, what I want to know is: what do the digits of the enhancement flag mean? How do they determine the type of enhancement; does the first 01 mean it is enhanced, and the second set of digits determine the amount? Would a +fast weapon be represented with this variable or something else?