struct aff_type { long envy; long rom; }; struct mercwptype { int merc; char * rom; }; const struct mercwptype mercwp [] = { { 1, "sword" }, /* slice */ { 2, "dagger" }, /* stab */ { 3, "sword" }, /* slash */ { 4, "whip" }, /* whip */ { 5, "none" }, /* claw */ { 6, "whip" }, /* blast */ { 7, "mace" }, /* pound */ { 8, "polearm" }, /* crush */ { 9, "none" }, /* grep */ { 10, "none" }, /* bite */ { 11, "sword" }, /* pierce */ { 12, "none" }, /* suction */ { 13, "dagger" }, /* chop */ { 0, NULL } }; const struct aff_type aff_change [] = { { 1, AFF_BLIND }, { 2, AFF_INVISIBLE }, { 4, AFF_DETECT_EVIL }, { 8, AFF_DETECT_INVIS }, { 16, AFF_DETECT_MAGIC }, { 32, AFF_DETECT_HIDDEN }, { 64, 0 }, { 128, AFF_SANCTUARY }, { 256, AFF_FAERIE_FIRE }, { 512, AFF_INFRARED }, { 1024, AFF_CURSE }, { 2048, 0 }, { 4096, AFF_POISON }, { 8192, 0 }, { 16384, 0 }, { 32768, AFF_SNEAK }, { 65536, AFF_HIDE }, { 131072, AFF_SLEEP }, { 262144, AFF_CHARM }, { 524288, AFF_FLYING }, { 1048576, AFF_PASS_DOOR }, { 0, 0 } };