Skip to content

Conversation

@RenechCDDA
Copy link
Member

Summary

None

Purpose of change

image

Describe the solution

Legacy enum should never show up, obviously

Check during loading for invalid enums, yell if so

Change translation string for legacy attitudes to make it even-more-obvious that this is wrong.

Describe alternatives you've considered

Although NPCATT_FLEE is a non-legacy attitude, the comment in npc.h suggests it is deprecated.

It sure doesn't look that way, and it's still in NPCs.MD, so I've set it to be "allowed" right now. Simple change if we want to remove it later.

Testing

image

Additional context

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership [JSON] Changes (can be) made in JSON [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jan 8, 2026
@github-actions github-actions bot added the Mods: Dinomod Anything to do with the Dinoclysm mod (DinoMod) label Jan 8, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-requesting reviews from non-collaborators: @LyleSY

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jan 8, 2026
@Maleclypse Maleclypse merged commit bc62023 into CleverRaven:master Jan 9, 2026
28 of 39 checks passed
@RenechCDDA RenechCDDA deleted the kill_invalid_enum branch January 9, 2026 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Mods: Dinomod Anything to do with the Dinoclysm mod (DinoMod) NPC / Factions NPCs, AI, Speech, Factions, Ownership

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants