To celebrate the release of EnhanceAPI (which you will need for this mod), I give you the enhancement that inspired it. Perfect for Straight enthusiasts who want a card to give the hand type more build options!
How does it work?
Each X Card in a played hand analyzes the non-X cards in the hand, and transforms into whatever rank would create the highest scoring hand without transforming into the same rank as another X Card in the same hand. For some examples:
- AAAAX would mimic Ace, turning Four of a Kind into Five of a Kind.
- A8XXX would mimic the Ace and the 8, to turn Pair into Two Pair; the third X is not scored under normal circumstances.
- If the third X would be scored or otherwise have its value queried, like Splash, it would mimic a random value.
- A2XX5 would mimic a 3 and a 4, to turn High Card into a Straight.
Go give it a try down in the GitHub link below, and let me know if you run into any issues!