kamidori.experience.after_calculation
Patch point of Kamidori Alchemy Meister, in the script ADDEXP.
The award is final and not yet applied. L[0x1] holds the experience the character receives: G[0xfec0c], the amount the caller passes (COMMITBTL after a battle, FIELD), times the costume bonus (100, plus 25 for each of the four item_costume_gem_sockets of character_costume_item_id[current_character_id] that holds 0x118), over 100. current_unit_id is the unit and current_character_id its canonical character, whose character_levels, character_experience and unit_level_cap the award reads. Every path reaches this instruction, so before site sees every award and may rewrite L[0x1]; an amount of 0 or less, or a character at its level cap, gains no experience. Weapon experience (G[0xfec0d] and the equipped item) is decided after this point and does not read L[0x1].
The point is one instruction, named the same in every revision of the script that has it. Its site, a dword offset into the script, in each revision OME knows:
| Script revision (fingerprint) | Site |
|---|---|
606b83e952a3 (the script as OME’s index has it) | 0x88 |
23bb6ac1e1aa | 0x88 |
The base mod raises kamidori.experience.award here. The patching and Lua guides explain how a mod uses a point.