Use exp array idx for job levels

This commit is contained in:
Asriel Camora
2023-09-26 16:05:58 -07:00
parent 8493da8fec
commit 3648cb585d
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -142,6 +142,9 @@ internal static class ClassJobUtils
_ => null _ => null
}; };
public static sbyte GetExpArrayIdx(this ClassJob me) =>
LuminaSheets.ClassJobSheet.GetRow(me.GetClassJobIndex())!.ExpArrayIndex;
public static string GetName(this ClassJob classJob) public static string GetName(this ClassJob classJob)
{ {
var job = LuminaSheets.ClassJobSheet.GetRow(classJob.GetClassJobIndex())!; var job = LuminaSheets.ClassJobSheet.GetRow(classJob.GetClassJobIndex())!;
+1 -1
View File
@@ -122,7 +122,7 @@ public sealed unsafe class RecipeNote : IDisposable
Table = Recipe.RecipeLevelTable.Value!; Table = Recipe.RecipeLevelTable.Value!;
Info = CreateInfo(); Info = CreateInfo();
ClassJob = (ClassJob)Recipe.CraftType.Row; ClassJob = (ClassJob)Recipe.CraftType.Row;
CharacterLevel = PlayerState.Instance()->ClassJobLevelArray[ClassJob.GetClassJobIndex()]; CharacterLevel = PlayerState.Instance()->ClassJobLevelArray[ClassJob.GetExpArrayIdx()];
CanUseManipulation = ActionManager.CanUseActionOnTarget(ActionType.Manipulation.GetId(ClassJob), (GameObject*)Service.ClientState.LocalPlayer!.Address); CanUseManipulation = ActionManager.CanUseActionOnTarget(ActionType.Manipulation.GetId(ClassJob), (GameObject*)Service.ClientState.LocalPlayer!.Address);
HQIngredientCount = Recipe.UnkData5 HQIngredientCount = Recipe.UnkData5
.Where(i => .Where(i =>