Decompile fn_22584 (CPc::GetDualWieldWeaponType)

Batch #13446 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_22584 CPc::GetDualWieldWeaponType: logic confirmed by peer review

Peer-reviewed-by: eAthena, Tanke
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-06 19:56:30 +00:00
commit c8ec5cf7aa

View file

@ -1764,7 +1764,7 @@ bool CPc::IsCostumeOutfit() const {
int CPc::GetDualWieldWeaponType(int first, int second) {
int result = W_FIST;
int main = first;
int sub = second;
int sub = 0;
if (!first) {
if (!second) {
@ -1772,7 +1772,8 @@ int CPc::GetDualWieldWeaponType(int first, int second) {
}
main = second;
sub = 0;
} else {
sub = second;
}
if (main >= 1100 && main < 1150 || main >= 13400 && main < 13500 || main >= 500000 && main < 510000) {