Skip to content

Conversation

@Gloompashcy
Copy link
Contributor

Adds the ability to set a custom StatusText value in the update_hand_text and SMODS.upgrade_poker_hands functions

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Adds the ability of set a custom `StatusText` value in the `update_hand_text` and `SMODS.upgrade_poker_hands` functions
Added StatusText parameter to upgrade_poker_hands function
Copy link
Member

@Aurelius7309 Aurelius7309 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. However you missed the main util function this actually gets used in, being level_up_hand. That function neeeds to support the new feature as well. Also I'm not quite happy with the way StatusText can be passed in, due to SMODS.upgrade_poker_hands not just handling multiple parameters, but also multiple hands. For this reason, I think StatusText should be allowed to be a function that depends on the hand and parameter, but not a nested table (what if a geniuine key in StatusText overlaps with a scoring parameter?). Said function should of course handle both strings and tables.

@Gloompashcy Gloompashcy reopened this Jan 24, 2026
@Gloompashcy Gloompashcy marked this pull request as draft January 24, 2026 03:44
`level_up_hand` and `SMODS.smart_level_up_hand` now take `statustext` as an argument
`args.StatusText` in `SMODS.upgrade_poker_hands` can now be a function
This function takes the key of a hand and a scoring parameter as arguments and can return a string, table or boolean value
@Gloompashcy Gloompashcy marked this pull request as ready for review January 28, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants