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

[DoubleCross] [DoubleCross:Korean] クリティカル情報を付与 #431

Merged

Conversation

h-mikisato
Copy link
Contributor

@h-mikisato h-mikisato commented Apr 27, 2021

#423 対応
既にResultの対応は行われていたので、Resultにcriticalのフラグを立てる部分のみ実装しました(fumble、success、failureは実装済み)

@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #431 (7cd978e) into master (03262c9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #431   +/-   ##
=======================================
  Coverage   95.20%   95.20%           
=======================================
  Files         288      288           
  Lines       18650    18651    +1     
=======================================
+ Hits        17755    17756    +1     
  Misses        895      895           
Impacted Files Coverage Δ
lib/bcdice/game_system/DoubleCross.rb 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03262c9...7cd978e. Read the comment docs.

@h-mikisato h-mikisato changed the title [DoubleCross] クリティカル情報を付与 [DoubleCross] [DoubleCross:Korean] クリティカル情報を付与 Apr 27, 2021
@@ -117,6 +117,8 @@ def result(value_groups)
achieved_value.to_s
end

r.critical = !r.fumble? && value_groups.length > 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

クリティカルの条件は value_groups.length > 1 で十分ではないでしょうか? クリティカル値が2以上になることが保証されているので、すべて1のファンブル時に振り足しが絶対に発生しないようになっていたと思います。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに仰る通りです。こちら修正します。

@ysakasin ysakasin merged commit 0eca4c9 into bcdice:master Apr 28, 2021
@ysakasin
Copy link
Member

ありがとうございます。マージしました。

@h-mikisato h-mikisato deleted the feature/double_cross_critical_metadata branch November 27, 2022 16:24
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.

3 participants