1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-03-25 19:40:27 +00:00
This commit is contained in:
Alula 2020-09-22 00:10:12 +02:00
parent 2bcc0292de
commit 2b9bcd4fbb
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -132,8 +132,7 @@ impl Inventory {
weapon.experience = lvl_table[2];
result = AddExperienceResult::AddStar;
}
} else {
if weapon.experience > lvl_table[curr_level_idx] {
} else if weapon.experience > lvl_table[curr_level_idx] {
weapon.level = weapon.level.next();
weapon.experience = 0;
@ -142,7 +141,6 @@ impl Inventory {
}
}
}
}
result
}