Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bloodorium] DCで2桁以上のダイスを指定できない問題を修正 #606

Merged
merged 1 commit into from
Mar 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/bcdice/game_system/Bloodorium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Bloodorium < Base
 y: 結果への修正値 (省略可)
INFO_MESSAGE_TEXT

register_prefix('\dDC')
register_prefix('\d+DC')

def eval_game_system_specific_command(command)
dicecheck(command)
Expand Down
18 changes: 18 additions & 0 deletions test/data/Bloodorium.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,24 @@ rands = [
{ sides = 6, value = 5 },
]

[[ test ]]
game_system = "Bloodorium"
input = "10DC"
output = "(10DC) > [1,1,2,2,3,3,4,4,5,6] > 《トライアンフ》(*2) > 6*2 > 12"
critical = true
rands = [
{ sides = 6, value = 1 },
{ sides = 6, value = 2 },
{ sides = 6, value = 3 },
{ sides = 6, value = 4 },
{ sides = 6, value = 5 },
{ sides = 6, value = 6 },
{ sides = 6, value = 1 },
{ sides = 6, value = 2 },
{ sides = 6, value = 3 },
{ sides = 6, value = 4 },
]

[[ test ]]
game_system = "Bloodorium"
input = "DC"
Expand Down