-
Notifications
You must be signed in to change notification settings - Fork 184
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
Fix 2D6 on SwordWorld2.0 #192
Conversation
Codecov Report
@@ Coverage Diff @@
## master #192 +/- ##
==========================================
- Coverage 87.20% 86.78% -0.43%
==========================================
Files 198 208 +10
Lines 20687 21710 +1023
==========================================
+ Hits 18040 18840 +800
- Misses 2647 2870 +223
Continue to review full report at Codecov.
|
ソード・ワールド側にもクリティカル値を判定する処理が含まれているので、判定処理が分散しないように、ソード・ワールド側で対応する方が良いと思います( また、DiceBotとSwordWorld2_0の両方のcheck2dCriticalにYARDコメントでパラメータの型を書いておくと、ミスが起こりにくくなりそうです。 |
ソード・ワールド固有のメソッドのインターフェースをDiceBotに持たせているのは苦肉の策でしょうから、将来的にはソード・ワールド側に完全移行できると良いですね。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Fix 2D6 on SwordWorld2.0 Fix #191 * オーバーライドした側で弾く
DiceBot#check2dCritical
のcriticalにnilが渡されていたせいで、SwordWorld2.0で2D6
が判定できなかった。DiceBot#check2dCritical
をcriticalがnilでない時に呼び出すようにして解決する。Fix #191