Skip to content

The two BCard types the files do name - #2317

Merged
erwan-joly merged 1 commit into
NosCoreIO:masterfrom
denislauri1999:pr/bcard-type-names
Aug 28, 2026
Merged

The two BCard types the files do name#2317
erwan-joly merged 1 commit into
NosCoreIO:masterfrom
denislauri1999:pr/bcard-type-names

Conversation

@denislauri1999

@denislauri1999 denislauri1999 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What

Types 93 and 94 keep a number while their names resolve in the client's own language files:

93  Changes the elemental percentage.
94  Changes the elemental resistance percentage.

So they become ElementPercentage and ElementResistancePercentage, and their members follow.

Why these two are worth naming

They are the percentage halves of types 7 and 13 — the same quantity declared in a second unit. And the pairing is not by number:

11 21 31 41 51
7 and 93 — element fire water light shadow all
13 and 94 — resistance all fire water light shadow

93 follows 7's subtype order and 94 follows 13's. A reader looking at two bare numbers has no way to know that; a reader looking at the names does.

Why the neighbours keep their numbers

The types around them keep a number for a reason worth stating: their own name token resolves in none of the eight languages the client ships. They are buckets by content epoch rather than by mechanic, so a name would describe at most half of what is inside.

Testing

  • Builds with 0 warnings; full suite green; NosCore.Parser.Tests passes 104/104 with TestCategory!=OPTIONAL-TEST.
  • Rebuilt on top of the flat BCardEffect enum — the earlier version of this PR was written against AdditionalTypes.cs and no longer applied.
  • A rename only. Nothing reads these yet.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 50 minutes.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: fb9f183d-8d2a-4af7-a0d0-21a38e860c9a

📥 Commits

Reviewing files that changed from the base of the PR and between 3b6a18a and 2ee65cc.

📒 Files selected for processing (3)
  • documentation/dat/BCard.dat.md
  • src/NosCore.Data/Enumerations/Buff/BCardEffect.cs
  • src/NosCore.Data/Enumerations/Buff/BCardType.cs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@denislauri1999

Copy link
Copy Markdown
Contributor Author

Rebased and trimmed to the CLAUDE.md that landed today: comments cut back to the ones that answer a question a reader would otherwise have to dig for, and nothing outside the project named. No behaviour change in this push.

Types 93 and 94 keep a number while their names resolve in the client's own
language files:

  93  Changes the elemental percentage.
  94  Changes the elemental resistance percentage.

So they become ElementPercentage and ElementResistancePercentage, and their
members follow.

They are worth naming because they are the percentage halves of types 7 and
13, and the pairing is not by number: 93 follows 7's subtype order, where
"all" is 51, while 94 follows 13's, where "all" is 11. A reader who sees two
bare numbers has no way to know that; a reader who sees the names does.

The types around them that keep a number keep it for a reason: their own
name token resolves in none of the eight languages the client ships.

Tested: builds with 0 warnings, full suite green, parser tests 104/104 with
the opt-in category excluded. A rename only - nothing reads these yet.
@denislauri1999 denislauri1999 changed the title Name the two BCard types the files do name, and say why two others keep theirs The two BCard types the files do name Aug 27, 2026
@erwan-joly
erwan-joly merged commit fa795ff into NosCoreIO:master Aug 28, 2026
2 checks passed
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.

2 participants