Skip to content

Commit

Permalink
[DesperateRun] 加算ダイスをソートする
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Jan 4, 2021
1 parent b2c2a15 commit 8503424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bcdice/game_system/DesperateRun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class DesperateRun < Base

def initialize(command)
super(command)
@sortType = true
@sort_add_dice = true
@d66_sort_type = D66SortType::ASC
end

Expand Down
9 changes: 9 additions & 0 deletions test/data/DesperateRun.toml
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,12 @@ output = "途中参加道中表(5) > 追尾。後ろ!後ろーっ!参加
rands = [
{ sides = 6, value = 5 },
]

[[ test ]]
game_system = "DesperateRun"
input = "2D6 加算ダイスがソートされている"
output = "(2D6) > 7[1,6] > 7"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 1 }
]

0 comments on commit 8503424

Please sign in to comment.