Decompile fn_45558 (CPlayerSkillBundle::RevertLevelChange)
Batch #16238 by kyoshi: 0 byte-identical, 1 confirmed by peer review. - fn_45558 CPlayerSkillBundle::RevertLevelChange: logic confirmed by peer review Peer-reviewed-by: Yommy, youko, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
cb81de6031
commit
ecfed43ca2
1 changed files with 10 additions and 0 deletions
|
|
@ -390,6 +390,16 @@ bool IsIndexedSkill(int id) {
|
|||
}
|
||||
|
||||
// OFFSET: 0x007719D0
|
||||
// FUNCTION: fn_45558
|
||||
void CPlayerSkillBundle::RevertLevelChange(const CSkillInfo& current, CSkillInfo& value) {
|
||||
const auto entry = this->levelChanges.find(value.id);
|
||||
if (entry != this->levelChanges.end()) {
|
||||
value.level = entry->second.previous;
|
||||
if (current.level == entry->second.target) {
|
||||
this->removals.push_back(current.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00771A50
|
||||
// FUNCTION: fn_45559
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue