Skip to content

Name ROM detect affect bits as ROM does - #23

Merged
ctoth merged 1 commit into
masterfrom
fix/rom-detect-affect-names
Oct 6, 2026
Merged

ctoth merged 1 commit into
masterfrom
fix/rom-detect-affect-names

Conversation

@ctoth

@ctoth ctoth commented Oct 6, 2026

Copy link
Copy Markdown
Owner

ROM's AFFECTED_BY bits C to G and I were named EVIL, INVIS, MAGIC, HIDDEN, GOOD, FIRE. merc.h calls them AFF_DETECT_EVIL, AFF_DETECT_INVIS, AFF_DETECT_MAGIC, AFF_DETECT_HIDDEN, AFF_DETECT_GOOD, AFF_FAERIE_FIRE. Bit B is INVISIBLE and Q is HIDE, so a consumer that saw INVIS|HIDDEN on Midgaard's Hassan (letters CDFJVZ) made him invisible and hidden when he only detects those.

This changes the names in as_dict() output for ROM mobs' affected_by. Nothing else in the repository used the old names. Suite: 1242 passed.

AFFECTED_BY named bits C-G and I EVIL, INVIS, MAGIC, HIDDEN, GOOD and
FIRE. In ROM's merc.h they are AFF_DETECT_EVIL, AFF_DETECT_INVIS,
AFF_DETECT_MAGIC, AFF_DETECT_HIDDEN, AFF_DETECT_GOOD and AFF_FAERIE_FIRE.
A consumer reading INVIS or HIDDEN took a mob that can see invisible
things for one that is invisible (Midgaard's Hassan, vnum 3011).
@ctoth
ctoth merged commit da2bca7 into master Oct 6, 2026
4 checks passed
@ctoth
ctoth deleted the fix/rom-detect-affect-names branch October 7, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant