Repository navigation
Keep passive skills at login and never resolve a cast to one - #2878
Conversation
Part of #2873 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkVtYup7KTZ63CJcxZT
|
No actionable comments were generated in the recent review. WalkthroughThe change adds passive-skill identification, preserves passive skill rows during unlearnable-skill cleanup, and excludes passive skills from cast-ID matching. Tests cover row retention, cast resolution, and skill type fixture values. ChangesPassive skill handling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Possibly related issues
Possibly related PRs
Suggested reviewers: Merge Risk:
|
Part of #2873
This is the first step of the passive skills ticket. Passives are the training courses, PvP boosts and tomes with
TYPEc1 = 0 in Skill.dat, vnums 20-152.What changed
SkillService.ForgetUnlearnableSkillsAsyncruns at every login and kept only the class's own skills, so it deleted any passive a character had learned. It now leaves passives alone, because they are not tied to a class.SkillResolver.FindLearnednow skips passives. A passive's cast id is its kind (for example, passive 20 has cast id 0), so it overlaps the cast ids of real skills. Once passives stay learned, au_s 0could otherwise resolve to the course instead of the basic attack.SkillDto.IsPassive()helper names theSkillType == 0check.SkillType = 1, as the real data does. They had defaulted to 0, which is the passive type.Verification
ForgetUnlearnableSkillsAsync, and a cast with id 0 resolves to the basic attack when passive 20 is also known. All suites are green except the knownEveryDeclaredEffectIsNamedfailure in Parser.Tests, which also fails on master.CharacterSkill, logged in and opened Skill Info > Training:ski 220 221 220, and after the login only skill 220 is left in the table. The Education List is empty.ski 220 221 20 220 113, and all three rows are kept. Passive 20 shows in the Education List.master: Skill Info > Training is empty, the passives were deleted at login
branch: the learned passive is still there
Still to do on #2873
n_inv 2 <npc> 0 0 <vnums>for the training page), but the parser skips them.Generated by Claude Code