Skip to content

Commit

Permalink
[WorldOfDarkness] Result対応( bcdice#423 )
Browse files Browse the repository at this point in the history
  • Loading branch information
FredGreenfield committed Nov 10, 2022
1 parent ae181c3 commit d0e22a6
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bcdice/game_system/WorldOfDarkness.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@ def eval_game_system_specific_command(command)

if total_success > 0
sequence.push "成功数#{total_success}"
return Result.success(sequence.join(' > '))
elsif total_botch > 0 && once_success == false
# ボッチが存在し、かつ成功がひとつもない場合のみ大失敗
sequence.push "大失敗"
return Result.fumble(sequence.join(' > '))
else
sequence.push "失敗"
return Result.failure(sequence.join(' > '))
end

output = sequence.join(' > ')
return output
end

# 出目10と1、難易度以上が出た成功の目をカウントする。
Expand Down
Loading

0 comments on commit d0e22a6

Please sign in to comment.