Yeah - just for anyone's reference in the future, the correct code is:
---
Add: where 'slots' & 1 = 0 set 'slots' = 'slots' | 1
Remove: where 'slots' & 1 = 1 set 'slots' = 'slots' ^ 1
---
This will add/remove warrior. Classes beyond warrior, or races beyond human, would go by the item table number (2,4,8...).
Very useful code for those who want to expand class/race restrictions, but don't want to make items all/all.
|