The old anti_warrior, anti_mage, etc flags are still in for backwards compatibility. No current area files need to be modified for this change - if left blank, then this field defaults to zero.
| ANTI_WARRIOR | BIT_1 |
| ANTI_RANGER/DIRE | BIT_2 |
| ANTI_PALADIN | BIT_3 |
| ANTI_ANTIPALADIN | BIT_4 |
| ANTI_CLERIC | BIT_5 |
| ANTI_INVOKER | BIT_6 |
| ANTI_DRUID | BIT_7 |
| ANTI_SHAMAN | BIT_8 |
| ANTI_ENCHANTER | BIT_9 |
| ANTI_NECROMANCER | BIT_10 |
| ANTI_ELEMENTALIST | BIT_11 |
| ANTI_PSIONICIST | BIT_12 |
| ANTI_ROGUE | BIT_13 |
| ANTI_ORC | BIT_14 |
| ANTI_ILLUSIONIST | BIT_15 |
| ANTI_BARD/BCHANT | BIT_16 |
| ANTI_HUMAN | BIT_17 |
| ANTI_GREYELF | BIT_18 |
| ANTI_HALFELF | BIT_19 |
| ANTI_DWARF | BIT_20 |
| ANTI_HALFLING | BIT_21 |
| ANTI_GNOME | BIT_22 |
| ANTI_BARBARIAN | BIT_23 |
| ANTI_DUERGAR | BIT_24 |
| ANTI_DROWELF | BIT_25 |
| ANTI_TROLL | BIT_26 |
| ANTI_OGRE | BIT_27 |
| ANTI_ILLITHID | BIT_28 |
| ANTI_YUANTI | BIT_29 |
| ANTI_LICH | BIT_30 |
| ANTI_MALE | BIT_31 |
| ANTI_FEMALE | BIT_32 |
You can combine these in any way of ocurse, just like the other bit fields, and they work with the old anti_mage, anti_goodrace, etc flags. To make an item specific to one class/race/gender combo, it's easiest to use the old flags to eliminate broad combinations, and then use the anti flags for the specifics left over. Example: if I want a helm to be troll warrior only I'd make it ANTI_MAGE, ANTI_THIEF, ANTI_CLERIC, ANTI_GOODRACE with the old extra flags, and then ANTI_OGRE, ANTI_DUERGAR, ANTI_DROWELF, ANTI_ILLITHID, ANTI_YUANTI, ANTI_LICH and that'd do it. You could also just add together all the applicable anti fields if you'd prefer. It's kind of tedious to add all these flags together for a specificly restricted item, but the TE program has a handy dandy calculator that lets you do this painlessly. The bit values are listed near the end of the areadocs.