Skip to content

test(buffs): a level type on a buff value is an unknown field - #1183

Merged
Mosch0512 merged 1 commit into
Mutizens:mainfrom
Mosch0512:fix/buffs-leveltype-test
Nov 23, 2026
Merged

Mosch0512 merged 1 commit into
Mutizens:mainfrom
Mosch0512:fix/buffs-leveltype-test

Conversation

@Mosch0512

Copy link
Copy Markdown
Collaborator

Main has failed one test since #1179 merged: Buffs: an unknown field is a warning, and the entry is kept [data][buffs] (tests/data/test_buffs.cpp), on Linux, macOS and Windows (main CI run 45091390683: 1 failure of 3296). The other open PRs, such as #1038, fail on this test only.

Why: the two PRs worked fine alone, but they clash once both are merged. #1180 (wings' options) added a check that a buff duration with "levelType": "itemLevel" gets the shared item value reader's "does nothing on one value" warning. At that time buffs read their values with that shared reader. #1179 (skill buff values), merged after #1180, gave buffs their own value reader (one number, per terms, maximum), and that reader does not know levelType. So it now reports buffs[0].duration.levelType as "unknown field, ignored" and keeps the entry.

The reader is right: a buff value has no levels, so the buff format has no level type. This PR changes only the test. It now expects the unknown-field warning and checks that the entry is kept. No game code changes.

Testing: buff_data_tests passes locally (Windows, Release).

Mutizens#1180 checked that a buff duration with a level type gets the shared item
value reader's "does nothing" warning. Mutizens#1179, merged after it, gave buffs
their own value reader without levels, which reports the level type as an
unknown field and keeps the entry. The test now expects that.
@Mosch0512
Mosch0512 merged commit 1ec5927 into Mutizens:main Nov 23, 2026
4 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.

1 participant