ReturnTab boolean function in Rs2Prayer.toggle#1583
ReturnTab boolean function in Rs2Prayer.toggle#1583Jamdrizzle wants to merge 1 commit intochsami:mainfrom
Conversation
…eturnTab" of which the purpose is to do the original function and then return to the previous tab after the prayer is turned on. This will be useful for PvM purposes where staying on another tab is ideal for manual play, or otherwise.
WalkthroughA new overload method is added to the Rs2Prayer class that extends the existing prayer toggle functionality. The new Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)runelite-client/src/main/java/net/runelite/client/plugins/microbot/**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
runelite-client/src/main/java/net/runelite/client/plugins/microbot/util/**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.java📄 CodeRabbit inference engine (AGENTS.md)
Files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I would advice against adding behavioral logic like that to this function. The added functionality of going back to the previous tab has nothing to do with the original function and only adds more code to maintain. I believe it is better to make sure that this behavior is added when necessary to a script that actually requires it. If you want to reduce duplicate code you can create a wrapper function inside the script that requires this. |
Added a new optional boolean function in Rs2Prayer.toggle that has "returnTab" of which the purpose is to do the original function and then return to the previous tab after the prayer is turned on. This will be useful for PvM purposes where staying on another tab is ideal for manual play, or otherwise.