diff --git a/SomethingNeedDoing/Misc/CommandInterface.cs b/SomethingNeedDoing/Misc/CommandInterface.cs index 7a82ddb6..63076033 100644 --- a/SomethingNeedDoing/Misc/CommandInterface.cs +++ b/SomethingNeedDoing/Misc/CommandInterface.cs @@ -152,6 +152,20 @@ public int GetMaxCp() return (int)cp; } + /// + public int GetGp() + { + var gp = Service.ClientState.LocalPlayer?.CurrentGp ?? 0; + return (int)gp; + } + + /// + public int GetMaxGp() + { + var gp = Service.ClientState.LocalPlayer?.MaxGp ?? 0; + return (int)gp; + } + /// public unsafe int GetStep() { diff --git a/SomethingNeedDoing/Misc/ICommandInterface.cs b/SomethingNeedDoing/Misc/ICommandInterface.cs index e86654a7..edb18ec2 100644 --- a/SomethingNeedDoing/Misc/ICommandInterface.cs +++ b/SomethingNeedDoing/Misc/ICommandInterface.cs @@ -99,6 +99,18 @@ public interface ICommandInterface /// The max CP amount. public int GetMaxCp(); + /// + /// Get the current GP amount. + /// + /// The current GP amount. + public int GetGp(); + + /// + /// Get the max GP amount. + /// + /// The max GP amount. + public int GetMaxGp(); + /// /// Get the current step value. ///