From 73b878db377b62b5c8485fc63c6d08c36def3d34 Mon Sep 17 00:00:00 2001 From: Vincent Stumpf Date: Fri, 28 Jun 2024 12:39:00 -0700 Subject: [PATCH] Add expanded 4ths to jobmaster (#8267) --- npc/custom/jobmaster.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/npc/custom/jobmaster.txt b/npc/custom/jobmaster.txt index fa2e0f2bc7..efa5e5cde1 100644 --- a/npc/custom/jobmaster.txt +++ b/npc/custom/jobmaster.txt @@ -184,7 +184,28 @@ function Job_Options { Job_Options(.@job_opt,roclass(.@eac|EAJL_THIRD)); // Expanded SN is "third" cls } } + + // babies don't get to become 4th jobs + if (.FourthExpanded && .@eac == EAJ_REBELLION) { + Require_Level(.Req_Fourth[0], .Req_Fourth[1]); + Job_Options(.@job_opt, roclass(EAJ_NIGHT_WATCH)); + } + + if (.FourthExpanded && .@eac == EAJ_KAGEROUOBORO) { + Require_Level(.Req_Fourth[0], .Req_Fourth[1]); + Job_Options(.@job_opt, roclass(EAJ_SHINKIRO_SHIRANUI)); + } + + if (.FourthExpanded && .@eac == EAJ_SUPER_NOVICE_E) { + Require_Level(.Req_Fourth[0], .Req_Fourth[1]); + Job_Options(.@job_opt, roclass(EAJ_HYPER_NOVICE)); + } + if (.FourthExpanded && .@eac == EAJ_SUMMONER) { + Require_Level(.Req_SHandler[0], .Req_SHandler[1]); + Job_Options(.@job_opt, roclass(EAJ_SPIRIT_HANDLER)); + } + if (.SecondExpanded && ((.@eac&(~EAJL_BABY)) == EAJ_NINJA || // is (Baby) Ninja (.@eac&(~EAJL_BABY)) == EAJ_GUNSLINGER)) { // is (Baby) Gunslinger @@ -483,6 +504,7 @@ OnInit: // Settings .FourthClass = true; // Enable fourth classes? + .FourthExpanded = true; // Enable new expanded fourth classes: Ex. Hyper Novice, Rebellion, Shinkiro/Shiranui? .ThirdClass = true; // Enable third classes? .RebirthClass = true; // Enable rebirth classes? .SecondExpanded = true; // Enable new expanded second classes: Ex. Super Novice, Kagerou/Oboro, Rebellion? @@ -504,6 +526,7 @@ OnInit: setarray .Req_Fourth[0],200,70; // Minimum base level, job level to change to fourth class setarray .Req_Exp_NJ_GS[0],99,70; // Minimum base level, job level to turn into Expanded Ninja and Gunslinger setarray .Req_Exp_SNOVI[0],99,99; // Minimum base level, job level to turn into Expanded Super Novice + setarray .Req_SHandler[0],200,60; // Minimum base level, job level to turn into Spirit Handler .SNovice = 45; // Minimum base level to turn into Super Novice // Setting adjustments by PACKETVER