Skip to content

Commit

Permalink
[StellarKnights] アタック判定のダイス数が 0 のときのメッセージをより具体的に
Browse files Browse the repository at this point in the history
  • Loading branch information
ViVi committed May 8, 2021
1 parent 091b086 commit 7d3b756
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/bcdice/game_system/StellarKnights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def resolute_action(num_dices, defence, dice_change_text, command)
dice_text = dices.join(",")

output = "(#{command}) > #{dice_text}"
output += "ダイスが 0 個です" if dices.empty?
output += "ダイスが 0 個です(アタック判定が発生しません)" if dices.empty?

# FAQによると、ダイスの置き換えは宣言された順番に適用されていく
dice_change_rules = parse_dice_change_rules(dice_change_text)
Expand Down
8 changes: 4 additions & 4 deletions test/data/StellarKnights.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rands = [
[[ test ]]
game_system = "StellarKnights"
input = "0SK"
output = "(0SK) > ダイスが 0 個です"
output = "(0SK) > ダイスが 0 個です(アタック判定が発生しません)"
rands = []

[[ test ]]
Expand Down Expand Up @@ -42,7 +42,7 @@ rands = [
[[ test ]]
game_system = "StellarKnights"
input = "0SK6"
output = "(0SK6) > ダイスが 0 個です"
output = "(0SK6) > ダイスが 0 個です(アタック判定が発生しません)"
rands = []

[[ test ]]
Expand Down Expand Up @@ -86,13 +86,13 @@ rands = [
[[ test ]]
game_system = "StellarKnights"
input = "0SK,1>6"
output = "(0SK,1>6) > ダイスが 0 個です"
output = "(0SK,1>6) > ダイスが 0 個です(アタック判定が発生しません)"
rands = []

[[ test ]]
game_system = "StellarKnights"
input = "0SK4,1>6"
output = "(0SK4,1>6) > ダイスが 0 個です"
output = "(0SK4,1>6) > ダイスが 0 個です(アタック判定が発生しません)"
rands = []

[[ test ]]
Expand Down

0 comments on commit 7d3b756

Please sign in to comment.