To recreate, play a Royal Flush and return { level_up = true } in context.before. It will revert the name to Straight Flush and not revert the changes.
It seems to be because SMODS.upgrade_poker_hands checks if the key of the hand is the same as the hand played (saved in SMODS.displayed_hand) but doesn't account for the display name being different.
Maybe in this case it is better to keep the modified name like Vanilla does?
To recreate, play a Royal Flush and
return { level_up = true }incontext.before. It will revert the name to Straight Flush and not revert the changes.It seems to be because
SMODS.upgrade_poker_handschecks if the key of the hand is the same as the hand played (saved inSMODS.displayed_hand) but doesn't account for the display name being different.Maybe in this case it is better to keep the modified name like Vanilla does?