diff --git a/lib/bcdice/game_system/Dracurouge.rb b/lib/bcdice/game_system/Dracurouge.rb index 8d1f503c5..063d86f0c 100644 --- a/lib/bcdice/game_system/Dracurouge.rb +++ b/lib/bcdice/game_system/Dracurouge.rb @@ -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) diff --git a/test/data/Dracurouge.toml b/test/data/Dracurouge.toml index 11143177b..c1a5d0c67 100644 --- a/test/data/Dracurouge.toml +++ b/test/data/Dracurouge.toml @@ -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 }, @@ -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 }, @@ -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 }, diff --git a/test/data/Dracurouge_Korean.toml b/test/data/Dracurouge_Korean.toml index e4a7644e1..7c60e8f7f 100644 --- a/test/data/Dracurouge_Korean.toml +++ b/test/data/Dracurouge_Korean.toml @@ -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 }, @@ -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 }, @@ -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 },