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: documentation/documentation.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -646,8 +646,8 @@ Colors are specified as CSS color strings like `"#808080"` or `"lightblue"`. Exa
646
646
-`["noop"]`: does nothing, but you can put it in `interruptible_actions` to make it an interrupt.
647
647
-`["push_message", message]`: Sends a message to all players using the current player as a label. Example: `["push_message", "declared riichi"]`
648
648
-`["push_system_message", message]`: Sends a message to all players, with no label. Example: `["push_system_message", "Converted each shuugi to 2000 points."]`
649
-
-`["add_rule", title, text, priority]`: Adds the string `text` to the rules tab on the left. Keep it brief! `title` is a required string identifier that is also used for deleting this rule later -- you can also specify an existing identifier to append `text` to that rule. `priority` is an optional integer argument that defaults to `0` -- the rules on the rules list are sorted from highest priority to lowest.
650
-
-`["update_rule", title, text, priority]`: Same as `"add_rule"`, but only appends text (does nothing if the rule `title` does not exist).
649
+
-`["add_rule", title, text, sort_order]`: Adds the string `text` to the rules tab on the left. Keep it brief! `title` is a required string identifier that is also used for deleting this rule later -- you can also specify an existing identifier to append a `text` to that rule (on its own line). `sort_order` is an optional integer argument that defaults to `0` -- the rules on the rules list are sorted from lowest `sort_order` to highest.
650
+
-`["update_rule", title, text, sort_order]`: Same as `"add_rule"`, but only appends `text` (does nothing if the rule `title` does not exist).
651
651
-`["delete_rule", title]`: Deletes the rule text identified by `title`.
652
652
-`["run", fn_name, {"arg1": "value1", ...}]`: Call the given function with the given arguments. A function is essentially a named list of actions. Functions are defined in the toplevel `"functions"` key -- see `riichi.json` for examples. Within a function you may write variables preceded with a dollar sign -- like `$arg1` -- and the value will be replaced with the corresponding `value1` in the (optional) given object. Functions can be called recursively, but this is rarely done, and therefore there is an arbitrary call stack limit of 10 calls.
653
653
-`["draw", num, tile]`: Draw `num` tiles. If `tile` is specified, it draws that tile instead of from the wall. Instead of a tile for `tile` you may instead write `"opposite_end"` to draw from the opposite end of the wall (i.e. the dead wall, if one exists)
.after_initialization.actions+= [["add_rule", "Agarirenchan", "Agariyame: An exception is if it's the last round and the winning dealer becomes first place -- then the game just ends."]]
1
+
.after_initialization.actions+= [["update_rule", "Agarirenchan", "(Agariyame) An exception is if it's the last round and the winning dealer becomes first place -- then the game just ends."]]
.after_initialization.actions+= [["add_rule", "Aka", "\($man)x 5m, \($pin)x 5p, and \($sou)x 5p are replaced with red \"aka dora\" fives that are worth one extra han each."]]
.after_initialization.actions+= [["add_rule", "Ao", "\($man)x 5m, \($pin)x 5p, and \($sou)x 5p are replaced with blue \"ao dora\" fives that are worth two extra han each."]]
Copy file name to clipboardExpand all lines: priv/static/mods/aotenjou.jq
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
.after_initialization.actions+= [["add_rule", "Aotenjou", "Limit hands are removed. Scores are calculated with the standard han-fu formula: a standard nondealer ron is worth 4 * fu * 2^(2+han), rounded up to the nearest \(.score_calculation.han_fu_rounding_factor//100)."]]
Copy file name to clipboardExpand all lines: priv/static/mods/dora.jq
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
.after_initialization.actions+= [["add_rule", "Dora", "At the beginning of the game, \($start_indicators) dora indicators are revealed in the dead wall. The tile next in sequence to a dora indicator is considered dora, and each copy of dora in hand is worth 1 extra han."]]
Copy file name to clipboardExpand all lines: priv/static/mods/double_round_wind.jq
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
.after_initialization.actions+= [["add_rule", "Double Round Wind", "Opposing winds are also round winds. So in East round, West is also a round wind."]]
0 commit comments