Add icon lookup for effects

This commit is contained in:
Asriel Camora
2023-06-14 09:59:18 -07:00
parent e76ce10ebf
commit a33cee7e33
2 changed files with 26 additions and 4 deletions
+2 -4
View File
@@ -16,9 +16,8 @@ public enum ClassJob
internal static class ClassJobExtensions internal static class ClassJobExtensions
{ {
public static bool IsClassJob(this ClassJobCategory me, ClassJob classJob) public static bool IsClassJob(this ClassJobCategory me, ClassJob classJob) =>
{ classJob switch
return classJob switch
{ {
ClassJob.Carpenter => me.CRP, ClassJob.Carpenter => me.CRP,
ClassJob.Blacksmith => me.BSM, ClassJob.Blacksmith => me.BSM,
@@ -31,4 +30,3 @@ internal static class ClassJobExtensions
_ => false _ => false
}; };
} }
}
+24
View File
@@ -1,3 +1,6 @@
using Craftimizer.Plugin;
using Lumina.Excel.GeneratedSheets;
namespace Craftimizer.Simulator; namespace Craftimizer.Simulator;
public enum Effect public enum Effect
@@ -12,3 +15,24 @@ public enum Effect
MuscleMemory, MuscleMemory,
Manipulation, Manipulation,
} }
internal static class EffectExtensions
{
public static uint StatusId(this Effect me) =>
me switch
{
Effect.InnerQuiet => 251,
Effect.WasteNot => 252,
Effect.Veneration => 2226,
Effect.GreatStrides => 254,
Effect.Innovation => 2189,
Effect.FinalAppraisal => 2190,
Effect.WasteNot2 => 257,
Effect.MuscleMemory => 2191,
Effect.Manipulation => 258,
_ => 3412,
};
public static Status Status(this Effect me) =>
LuminaSheets.StatusSheet.GetRow(me.StatusId())!;
}