You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Internal-Documentation.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,26 @@ Restarts the game.
41
41
#### `SMODS.get_optional_features()`
42
42
Inserts all enabled optional features by injected mods into the `SMODS.optional_features` table.
43
43
#### `SMODS.localize_box(lines, args)`
44
-
Handles localizing description boxes within a localization entry.
44
+
Handles localizing description boxes within a localization entry. Given a `lines` table parsed by `loc_parse_string()`, returns the UI structure for a description line.
45
+
-`args` can be a table with the following parameters:
46
+
-`vars`: like the ones returned by `loc_vars`, it can similarly also contain a `colours` table.
Copy file name to clipboardExpand all lines: Utility.md
-27Lines changed: 0 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,8 +117,6 @@ Recalculates the debuff state of a card.
117
117
#### `SMODS.merge_lists(...) -> table`
118
118
Takes any number of 2D arrays. Flattens the input into a 1D array that contains all elements once in the order they first appear and removes any duplicates.
119
119
This can be used to merge results from poker hand evaluation to create a combined hand.
120
-
#### `SMODS.merge_defaults(t, defaults) -> table`
121
-
Starting with `t`, inserts any key-value pairs from `defaults` that don't already exist in `t` into `t`. Returns `t`, the result of the merge. `nil` inputs count as {}; `false` inputs count as a table where every possible key maps to `false`. Therefore, `t == nil` is weak and falls back to `defaults`. `t == false` explicitly ignores `defaults`. (This function might not return a table, due to the above)
122
120
#### `SMODS.get_blind_amount(ante) -> number`
123
121
Provides score requirements for higher stages of ante scaling. If you want to implement your own scaling rules, you should modify this function.
124
122
#### `SMODS.stake_from_index(index) -> string`
@@ -192,10 +190,6 @@ Function to draw a certain number of cards to hand, calling the relevant calcula
0 commit comments