Confirm fn_08150 (RuneSetData::IsRewardStep)
Batch #18508 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_08150 RuneSetData::IsRewardStep: logic confirmed by peer review (already on main) Peer-reviewed-by: kyoshi, cremane, bibinir 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
42dce3058a
commit
51c4254ab0
1 changed files with 7 additions and 5 deletions
|
|
@ -164,11 +164,13 @@ void CRuneSystemMgr::Destroy() {
|
|||
// OFFSET: 0x00766A30
|
||||
// FUNCTION: fn_08116
|
||||
int RuneSetData::FindLastReward(int count) const {
|
||||
if (count <= 7) {
|
||||
for (int step = count - 1; step > 0; --step) {
|
||||
if (0 != this->m_reward.values[step]) {
|
||||
return step;
|
||||
}
|
||||
if (count > 7) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (int step = count - 1; step > 0; --step) {
|
||||
if (0 != this->m_reward.values[step]) {
|
||||
return step;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue