Skip to content

Commit

Permalink
[VampireTheMasquerade5th] Total Failureのヒント情報を追加 (#651)
Browse files Browse the repository at this point in the history
* Added Total Failure check

* Added description of Total Failure in comments

* Total Failure was changed from mere failure to fumble

* rubocop Creected:Add empty line after guard clause

---------

Co-authored-by: FredGreenfield <[email protected]>
  • Loading branch information
FredGreenfield and FredGreenfield authored Nov 24, 2023
1 parent aa7a35c commit 5345bdf
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 25 deletions.
9 changes: 6 additions & 3 deletions lib/bcdice/game_system/VampireTheMasquerade5th.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ class VampireTheMasquerade5th < Base
2VMF6+3
2VMI9H3
難易度指定:成功数のカウント、判定成功と失敗、Critical処理、Critical Winのチェックを行う
難易度指定:成功数のカウント、判定成功と失敗、Critical処理、Critical Win、Total Failureのチェックを行う
(Hungerダイスがある場合)Messy CriticalとBestial Failureチェックを行う
例) (難易度)VMF(通常ダイス)+(Hungerダイス)
(難易度)VMF(通常ダイス)
(難易度)VMI(通常ダイス)H(Hungerダイス)
(難易度)VMI(通常ダイス)
難易度省略:成功数のカウント、判定失敗、Critical処理、(Hungerダイスがある場合)Bestial Failureチェックを行う
難易度省略:成功数のカウント、判定失敗、Critical処理、Total Failure、(Hungerダイスがある場合)Bestial Failureチェックを行う
判定成功、Messy Criticalのチェックを行わない
Critical Win、(Hungerダイスがある場合)Bestial Failure、Messy Criticalのヒントを出力
例) VMF(通常ダイス)+(Hungerダイス)
Expand Down Expand Up @@ -128,6 +128,9 @@ def get_roll_result(result_text, success_dice, ten_dice, hunger_ten_dice, hunger
if hunger_botch_dice > 0
return Result.fumble("#{result_text}:判定失敗! [Bestial Failure]")
end
if success_dice == 0
return Result.fumble("#{result_text}:判定失敗! [Total Failure]")
end

return Result.failure("#{result_text}:判定失敗!")
end
Expand All @@ -137,7 +140,7 @@ def get_roll_result(result_text, success_dice, ten_dice, hunger_ten_dice, hunger
return Result.fumble("#{result_text}:判定失敗! [Bestial Failure]")
end

return Result.failure("#{result_text}:判定失敗!")
return Result.fumble("#{result_text}:判定失敗! [Total Failure]")
else
if hunger_botch_dice > 0
result_text = "#{result_text}\n 判定失敗なら [Bestial Failure]"
Expand Down
66 changes: 44 additions & 22 deletions test/data/VampireTheMasquerade5th.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "3VMF0"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗!"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 1 },
{ sides = 10, value = 2 },
Expand All @@ -13,8 +14,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "3VMF3"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗!"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 1 },
{ sides = 10, value = 2 },
Expand Down Expand Up @@ -210,8 +212,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMF3"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗!"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 5 },
Expand All @@ -221,8 +224,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMF0"
output = "(0D10) > [] 成功数=0:判定失敗!"
output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 6 },
Expand Down Expand Up @@ -252,8 +256,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMF0+0"
output = "(0D10+0D10) > []+[] 成功数=0:判定失敗!"
output = "(0D10+0D10) > []+[] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 6 },
Expand Down Expand Up @@ -312,8 +317,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMF3+2"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗!"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 5 },
Expand Down Expand Up @@ -489,8 +495,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "S3VMF0"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗!"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 1 },
Expand All @@ -501,8 +508,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "S3VMF3"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗!"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 1 },
Expand Down Expand Up @@ -704,8 +712,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMF0"
output = "(0D10) > [] 成功数=0:判定失敗!"
output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand All @@ -716,8 +725,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMF3"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗!"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand Down Expand Up @@ -750,8 +760,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMF3+2"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗!"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand Down Expand Up @@ -996,8 +1007,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "3VMI0"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗!"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 1 },
{ sides = 10, value = 2 },
Expand All @@ -1007,8 +1019,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "3VMI3"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗!"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 1 },
{ sides = 10, value = 2 },
Expand Down Expand Up @@ -1190,8 +1203,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMI3"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗!"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 5 },
Expand All @@ -1201,8 +1215,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMI0"
output = "(0D10) > [] 成功数=0:判定失敗!"
output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 6 },
Expand Down Expand Up @@ -1232,8 +1247,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMI0H0"
output = "(0D10+0D10) > []+[] 成功数=0:判定失敗!"
output = "(0D10+0D10) > []+[] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 6 },
Expand Down Expand Up @@ -1292,8 +1308,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "VMI5H2"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗!"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
rands = [
{ sides = 10, value = 2 },
{ sides = 10, value = 5 },
Expand Down Expand Up @@ -1469,8 +1486,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "S3VMI0"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗!"
output = "(0D10) > [] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 1 },
Expand All @@ -1481,8 +1499,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "S3VMI3"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗!"
output = "(3D10) > [1,2,5] 成功数=0 難易度=3:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 1 },
Expand Down Expand Up @@ -1684,8 +1703,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMI0"
output = "(0D10) > [] 成功数=0:判定失敗!"
output = "(0D10) > [] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand All @@ -1696,8 +1716,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMI3"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗!"
output = "(3D10) > [2,5,1] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand Down Expand Up @@ -1730,8 +1751,9 @@ rands = [
[[ test ]]
game_system = "VampireTheMasquerade5th"
input = "SVMI5H2"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗!"
output = "(3D10+2D10) > [2,5,1]+[4,3] 成功数=0:判定失敗! [Total Failure]"
failure = true
fumble = true
secret = true
rands = [
{ sides = 10, value = 2 },
Expand Down

0 comments on commit 5345bdf

Please sign in to comment.