Skip to content

Commit

Permalink
[Dracurouge] 抗い判定で合計値を表示する
Browse files Browse the repository at this point in the history
ひらさんによる要望
Close #483
  • Loading branch information
ysakasin committed Jul 28, 2021
1 parent ebbd965 commit eb553fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion lib/bcdice/game_system/Dracurouge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ def roll_resist_dice(command)
dice_count = 4 if dice_count == 0

dice_list = @randomizer.roll_barabara(dice_count, 6).sort
total = dice_list.sum()

return "(#{command}) > #{dice_count}D6 > [ #{dice_list.join(', ')} ]"
return "(#{command}) > #{dice_count}D6 > [ #{dice_list.join(', ')} ]#{total}"
end

def getReactionDiceCommandResult(command)
Expand Down
6 changes: 3 additions & 3 deletions test/data/Dracurouge.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge"
input = "DRR4"
output = "(DRR4) > 4D6 > [ 3, 4, 5, 6 ]"
output = "(DRR4) > 4D6 > [ 3, 4, 5, 6 ] > 18"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 3 },
Expand All @@ -191,7 +191,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge"
input = "DRR4"
output = "(DRR4) > 4D6 > [ 3, 4, 6, 6 ]"
output = "(DRR4) > 4D6 > [ 3, 4, 6, 6 ] > 19"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 3 },
Expand All @@ -202,7 +202,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge"
input = "DRR6"
output = "(DRR6) > 6D6 > [ 1, 1, 5, 6, 6, 6 ]"
output = "(DRR6) > 6D6 > [ 1, 1, 5, 6, 6, 6 ] > 25"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 1 },
Expand Down
6 changes: 3 additions & 3 deletions test/data/Dracurouge_Korean.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge:Korean"
input = "DRR4"
output = "(DRR4) > 4D6 > [ 3, 4, 5, 6 ]"
output = "(DRR4) > 4D6 > [ 3, 4, 5, 6 ] > 18"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 3 },
Expand All @@ -191,7 +191,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge:Korean"
input = "DRR4"
output = "(DRR4) > 4D6 > [ 3, 4, 6, 6 ]"
output = "(DRR4) > 4D6 > [ 3, 4, 6, 6 ] > 19"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 3 },
Expand All @@ -202,7 +202,7 @@ rands = [
[[ test ]]
game_system = "Dracurouge:Korean"
input = "DRR6"
output = "(DRR6) > 6D6 > [ 1, 1, 5, 6, 6, 6 ]"
output = "(DRR6) > 6D6 > [ 1, 1, 5, 6, 6, 6 ] > 25"
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 1 },
Expand Down

0 comments on commit eb553fb

Please sign in to comment.