From b147286cc952dca92e2dc0282b12c57b398012bf Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 14:35:05 +0000 Subject: [PATCH] Decompile fn_23583 (IsJobWeaponAllowed) Batch #17105 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_23583 IsJobWeaponAllowed: logic confirmed by peer review Peer-reviewed-by: alisonrag, kyoshi, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Jobs/JobInheritance.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Contents/Jobs/JobInheritance.cpp b/Source/Contents/Jobs/JobInheritance.cpp index b3aaed3d0..453362b13 100644 --- a/Source/Contents/Jobs/JobInheritance.cpp +++ b/Source/Contents/Jobs/JobInheritance.cpp @@ -1073,8 +1073,15 @@ bool __stdcall IsJobWeaponAllowed(int job, int slot, std::int64_t weapon) { case JT_GUNSLINGER_B: case JT_REBELLION_B: case JT_NIGHT_WATCH: - if (view >= 18 && view <= 21) { + switch (view) { + case W_RIFLE: + case W_GATLING: + case W_SHOTGUN: + case W_GRENADE: result = true; + break; + default: + break; } break; case JT_NINJA: