Skip to content

Let the parser mark the Hunting Falcon's attack and the Adventurer's skills - #3900

Merged
erwan-joly merged 1 commit into
masterfrom
claude/project-thread-wq225c
Dec 1, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
claude/project-thread-wq225c

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Erwan · project thread

What

Two pieces of game data move out of NosCore.GameObject and into SkillParser:

  • Hunting Falcon attack (1249): new Skill.Trigger column (SkillTrigger enum, same shape as Card.Trigger). The parser sets HuntingFalconAttack on 1249; FalconService asks ISkillCatalog.GetTriggeredSkill(SkillTrigger.HuntingFalconAttack) instead of holding the vnum.
  • Adventurer skills (200-210): new Skill.IsAdventurerSkill column. Skill.dat files these under class 0 together with emotes, courses and passives, and no column tells them apart (the LEVEL adventurer field is set on 142 class-0 rows and is 0 on 210), so the list now lives in the parser. SkillService filters on the flag.

One migration (MoveSkillRolesToParser) adds both columns.

Before deploy

Run the parser again before deploying this. Until it has run on the migrated database, no skill carries IsAdventurerSkill or a Trigger, so Adventurers learn no skills and the Hunting Falcon does not strike.

Rerun safety

The parser sets both values on every skill row on each run and upserts, so a second run writes the same values. An existing database needs a parser run after migrating; until then no skill carries the flag, so an Adventurer would learn no class skills and the falcon would not strike.

Tests

  • SkillCatalogTests: trigger lookup.
  • FalconSkillTests, ClassSkillLearningTests, SpecialistSkillTests and the E2E world data now carry the parser's values; 79 skill and falcon tests pass locally.

Behaviour is unchanged when the parser has run. Manual checks from documentation/manual-test-plan.md that still apply: Falcon skills (cast Spy Out 1117, click Hunting Falcon, the monster is hit by 1249) and the Adventurer skill checks (Shout of Morale 207, Charged Attack 208 at job 14).


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next included review available in 15 minutes.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 974f0e4 and cfed349.

Files ignored due to path filters: 1

  • src/NosCore.Database/Migrations/20261201123617_MoveSkillRolesToParser.Designer.cs is excluded by !**/*.Designer.cs
Files selected for processing: 14

  • src/NosCore.Data/Enumerations/Battle/SkillTrigger.cs
  • src/NosCore.Database/Entities/Skill.cs
  • src/NosCore.Database/Migrations/20261201123617_MoveSkillRolesToParser.cs
  • src/NosCore.Database/Migrations/NosCoreContextModelSnapshot.cs
  • src/NosCore.GameObject/Services/BattleService/FalconService.cs
  • src/NosCore.GameObject/Services/SkillService/ISkillCatalog.cs
  • src/NosCore.GameObject/Services/SkillService/SkillCatalog.cs
  • src/NosCore.GameObject/Services/SkillService/SkillService.cs
  • src/NosCore.Parser/Parsers/SkillParser.cs
  • test/NosCore.EndToEnd.Tests/Infrastructure/WorldData.cs
  • test/NosCore.GameObject.Tests/Services/BattleService/FalconSkillTests.cs
  • test/NosCore.GameObject.Tests/Services/SkillService/ClassSkillLearningTests.cs
  • test/NosCore.GameObject.Tests/Services/SkillService/SkillCatalogTests.cs
  • test/NosCore.GameObject.Tests/Services/SkillService/SpecialistSkillTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@erwan-joly
erwan-joly force-pushed the claude/project-thread-wq225c branch from 261618e to 1c39359 Compare November 29, 2026 09:55

Copy link
Copy Markdown
Collaborator Author

Review: OK in substance, three things:

  • SkillCatalogTests.cs:20,28 builds new SkillCatalog(...). Use World.Inject(list) and then World.Create<SkillCatalog>().
  • The MoveSkillRolesToParser migration has to be regenerated on master. Several migration PRs are queued, and this one conflicts with Read the Act 4 and Act 5 event spots from a parser-filled table #3899 on the snapshot.
  • The parser has to run again before deploy, or Adventurers learn no skills. Say that in the body.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Addressed the review:

  • SkillCatalogTests now injects the skill list with World.Inject(...) and builds the catalog with World.Create<SkillCatalog>().
  • Rebased onto origin/master (no merge commits). Deleted the old MoveSkillRolesToParser files, took master's NosCoreContextModelSnapshot.cs and regenerated the migration with dotnet ef migrations add MoveSkillRolesToParser (now 20261129102737). It adds only Skill.IsAdventurerSkill and Skill.Trigger. MigrationTests passes.
  • Added a "Before deploy" section to the body: run the parser again before deploy, or Adventurers learn no skills.

Solution builds with 0 warnings. SkillCatalogTests, FalconSkillTests, ClassSkillLearningTests and SpecialistSkillTests pass (31/31). Head: baf2d89.


Generated by Claude Code

@erwan-joly

Copy link
Copy Markdown
Collaborator Author

Client test

Client test: ClientLab browser build of the current client against a local stack (master vs this branch, each with its own database; the branch's database migrated and the parser re-run as the PR asks). Step: create a new adventurer and enter the world.

master vs PR, new adventurer

Check Result
After the parser run, skills 200-210 carry IsAdventurerSkill and 1249 carries the Hunting Falcon trigger ✅ in the branch database: 200-210 true, 1249 Trigger = 1
A new adventurer still learns its skills ✅ on both builds it starts with Swing (200), Slingshot (201) and Capture (209); no change for the player
The Hunting Falcon strikes Not run (needs an archer with the falcon)

Generated by Claude Code

@erwan-joly
erwan-joly force-pushed the claude/project-thread-wq225c branch from 9d60156 to b0aaa4e Compare November 30, 2026 12:48
…skills

The falcon's attack is found through a new Skill.Trigger and the Adventurer's
skills through Skill.IsAdventurerSkill, both written by SkillParser, so the
server no longer carries either list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkWXTgUQrkqCGdu31CL
@erwan-joly
erwan-joly force-pushed the claude/project-thread-wq225c branch from b0aaa4e to cfed349 Compare December 1, 2026 12:47
@erwan-joly
erwan-joly merged commit d39379d into master Dec 1, 2026
15 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