daemitus / SomethingNeedDoing

85 stars 58 forks source link

[Feature Request] Get the amount of HQ material already owned #87

Closed HakureiHyouga closed 1 year ago

HakureiHyouga commented 1 year ago

I want to get the amount of HQ synthesis material I have, so that I can loop the "/click synthesis_materialX_hq" to reach that number. At first I want to use the "GetNodeText" function to get the number, but I found it was a child node.

Is it possible to add a function to get the amount of HQ synthesis material that I already owned, something like

public int getHqAmount(int slot)

Snipaste_2022-08-16_02-25-21

daemitus commented 1 year ago

Adding varargs to GetNodeText, so you can get nested nodes.

HakureiHyouga commented 1 year ago

Adding varargs to GetNodeText, so you can get nested nodes.

Thanks! I received this update in game, but when I use this function, an error has happend. Is there anything wrong with this update? Or is this my fault?😥 Snipaste_2022-08-23_18-21-39

daemitus commented 1 year ago

Remove the parenthesis from your numbers

On Tue, Aug 23, 2022, 6:22 AM Glacier @.***> wrote:

Adding varargs to GetNodeText, so you can get nested nodes.

Thanks! I received this update in game, but when I use this function, an error has happend. Is there anything wrong with this update? Or is this my fault?😥 [image: Snipaste_2022-08-23_18-21-39] https://user-images.githubusercontent.com/12714574/186134638-ef0d96cd-9a12-43b7-8f58-93395bf9235e.jpg

— Reply to this email directly, view it on GitHub https://github.com/daemitus/SomethingNeedDoing/issues/87#issuecomment-1223868117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMTBDYD4FXNNEIMQVFVTLV2SQ7TANCNFSM56TDSW3A . You are receiving this because you modified the open/close state.Message ID: @.***>