Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HunterTheReckoning5th] Total Failureのヒント情報を追加 #652

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

FredGreenfield
Copy link
Contributor

【背景】
全てのダイスで成功がない(=6未満)の時、Total Failureというファンブル状態になる。
他の状態でヒント情報を出力しているため、Total Failureもチェックし、ヒント情報を表示したい。
関連( #651 )。

【対応】
難易度指定、未指定のコマンドにおいて、全てのダイスに成功が無かった時、Total Failureのヒントを出力するように実装。また、Total Failureはfumbleとして処理するようにし、それに伴い、該当するテストケース、ヘルプも修正を行った。
判定失敗時のDesperationダイスの"1"でDespairとTotal Failureが同時発生する可能性があるが、以下の理由により排他として実装する。

  1. V5 DiceRoller( https://realmofdarkness.app/v5/ ) のH5コマンドでも、排他として実装されているため。

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aa7a35c) 95.60% compared to head (7ab0585) 95.60%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #652   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files         341      341           
  Lines       19584    19586    +2     
  Branches     5101     5103    +2     
=======================================
+ Hits        18723    18725    +2     
  Misses        861      861           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ysakasin ysakasin merged commit 0367b76 into bcdice:master Nov 24, 2023
8 checks passed
@FredGreenfield FredGreenfield deleted the h5_add_total_failure branch November 30, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants