Repository navigation
Give champion tomes their bonuses and read monster MODE settings from the right columns - #3906
Conversation
|
Warning Review limit reachedYou'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 24 minutes. View limit details
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. |
|
Review: OK. The body promises a Golden Gloopy Cake (709) → card 840 check, but 🤖 Generated with Claude Code https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
a8da924 to
282606d
Compare
|
Added the Golden Gloopy Cake (709) → card 840 check the PR body promises to Generated by Claude Code |
|
Review: MERGE-WITH-NOTE Fixed: nothing needed a fix commit; the branch stays at c54552b (not rebased, #3925 and #3919 are stacked on it). Checked: the tome BCards are written by Left (note, not blocking):
Screenshots: present — master vs branch Character Info before and after each tome, the buff bar with the owner blessing, and a side-by-side of the final stats. 🤖 Generated with Claude Code Generated by Claude Code |
From cast id 19 on, a passive skill's DATA c1 is the tome's tier, c2 its amount and c3 a second amount. Read them into BCards for every kind the client describes, and count passive skills in the experience, gold and double-drop bonuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkUfkSas3RmznMafvB5
MODE holds four BCard groups, five empty columns and then seven settings, but the parser read each setting one column early. The last column, the card a pet grants its owner, was never imported. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkUfkSas3RmznMafvB5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ47EGEawjsFustqpb2f
c54552b to
3474c97
Compare
Requested by Erwan · project thread
Two .dat decoding fixes found during the column audit. Part of #2873. Collector's Guide is left for #3905.
Champion tomes and life-skill books (Skill.dat)
Passive skills with a TYPE cast id from 19 to 46 (PvP boosts, Forgotten Hero journals, Loa tomes, Dragon and Techron books, Forgotten Dimension books, Fairy Affinity, chef, angler, pet trainer, fruit and catacomb guides) have no BASIC line. Until now only the training courses (kinds 4 to 9) got a BCard, so learning any of these did nothing.
For these kinds the DATA columns mean something else than for the courses:
Every one of the 65 rows matches its client tooltip with these readings (Bear Loa Tome c2 = 7000, "Increases maximum HP by 7000"; Expert Training for Chefs c2 = c3 = 100, "attack power by 100, defence by 100").
AddBCards, so it reads the DATA columns directly.monster.dat MODE settings were read one column early
MODE is four BCard groups (c1-c20), five empty columns, then seven settings (c26-c32). The parser read the settings from c25-c31, so
AlwaysActivewas always false,CModeVNumheld the range threshold, andOwnerBlessingCardIdread c31 instead of c32. No pet's owner blessing (Golden Gloopy Cake 709 → card 840 and 58 other pets) was ever imported. The blessing feature only worked when the value was set by hand in the database.The existing test that put 462 in c30 now asserts it as
CModeVNum(462 is Mountain Turtle's mode monster), and a new test covers all seven settings. The monster.dat documentation snapshot is regenerated.Tests
Parser: 507 passed. GameObject: 3561 passed (new
PassiveTomeBonusTests).Still for a client (added to
documentation/manual-test-plan.md, Skill teachers)Client check
Tester (adventurer, level 90, champion level 60) with a Bear Loa Tome, an Eagle Loa Tome and a Vitality Guide in the bag and a Golden Gloopy Cake (709) in the team. Master was parsed with master's parser, the branch after a parser rerun from the branch; the scene and the steps are the same.
Master: the three books are read and the skills are stored, but Character Info does not move: HP 5650, MP 2775, ranged line 99, hit rate 100, dodge 102, ranged defence 90. No blessing buff next to the portrait.
Branch: the Golden Gloopy Cake's blessing (card 840) shows next to the portrait at login with no SQL edit. Bear Loa Tome: max HP 5650 → 12650. Vitality Guide: HP 15650 and MP 5775. Eagle Loa Tome: ranged attack, hit rate 100 → 340, dodge 102 → 222, ranged defence 90 → 150.
Buff bar, master then branch:
Stats side by side after all three books, master then branch:
The attack lines on the branch are 10% higher than the tome alone gives (melee 99 → 108, ranged 99 + 120 → 240). That is the blessing card's own attack +10% (
ItemAttackIncreased10). Without the pet in the team, the same run gives melee 99 and ranged 219.Generated by Claude Code