Use exp array idx for job levels
This commit is contained in:
@@ -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())!;
|
||||||
|
|||||||
@@ -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 =>
|
||||||
|
|||||||
Reference in New Issue
Block a user