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

コード:レイヤードのダイスボットで修正値とクリティカル値に対応 #149

Merged

Conversation

GenKuzumochi
Copy link
Contributor

達成地の修正値とクリティカル値の変更(ベイグランツ・ロードの柳生十兵衛等)に対応。
修正値はnCL+x1@m[c]+x2のx1とx2の2箇所に挿入できます。

ダブルクロス等を参考にしましたが、BCDiceをいじるの初めてなので、イマイチわかってない点も多いです。ご指摘ありましたらお願いします。

(SRSからだけ参照されているformat_modifierって使かってよかったのでしょうか・・・?)

Copy link
Member

@ysakasin ysakasin left a comment

Choose a reason for hiding this comment

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

コメントしたので、修正お願いします!

ModifierFormatter は近々名前が変わる予定ですが、使ってOKです!

src/diceBot/CodeLayerd.rb Outdated Show resolved Hide resolved
src/diceBot/CodeLayerd.rb Outdated Show resolved Hide resolved
src/diceBot/CodeLayerd.rb Outdated Show resolved Hide resolved
Co-Authored-By: SAKATA Sinji <ysakasin@gmail.com>
@codecov
Copy link

codecov bot commented Apr 3, 2020

Codecov Report

Merging #149 into master will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   86.35%   86.27%   -0.08%     
==========================================
  Files         197      198       +1     
  Lines       22238    22137     -101     
==========================================
- Hits        19203    19099     -104     
- Misses       3035     3038       +3     
Impacted Files Coverage Δ
src/diceBot/CodeLayerd.rb 100.00% <100.00%> (ø)
src/diceBot/Arianrhod.rb 95.45% <0.00%> (-4.55%) ⬇️
src/diceBot/ChaosFlare.rb 86.95% <0.00%> (-4.35%) ⬇️
src/diceBot/TokumeiTenkousei.rb 95.65% <0.00%> (-4.35%) ⬇️
src/bcdiceCore.rb 70.52% <0.00%> (-1.75%) ⬇️
src/diceBot/InfiniteFantasia.rb 76.00% <0.00%> (-1.28%) ⬇️
src/diceBot/DarkBlaze.rb 91.30% <0.00%> (-0.74%) ⬇️
src/diceBot/Chill.rb 93.20% <0.00%> (-0.68%) ⬇️
src/diceBot/MagicaLogia.rb 62.03% <0.00%> (-0.66%) ⬇️
src/diceBot/SwordWorld.rb 86.03% <0.00%> (-0.46%) ⬇️
... and 47 more

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 4875ce6...909d4b7. Read the comment docs.

@GenKuzumochi
Copy link
Contributor Author

ありがとうございます。修正そのまま反映しました。(GitHubのUI上でSuggestion初使用)
codecov/projectがFailedですが、これは無視していいやつでしょうか?

ModifierFormatter、他のダイスボットのリファクタリングにも使えそうですね。

Copy link
Member

@ysakasin ysakasin left a comment

Choose a reason for hiding this comment

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

LGTM!

Codecovは意図せず入ってしまったので無視で大丈夫です

@ysakasin ysakasin merged commit 143e5b1 into bcdice:master Apr 3, 2020
ysakasin added a commit that referenced this pull request Aug 30, 2020
* コード:レイヤードの修正値に対応

* コード:レイヤードのクリティカル値の変更に対応

* Apply suggestions from code review

Co-Authored-By: SAKATA Sinji <ysakasin@gmail.com>

Co-authored-by: SAKATA Sinji <ysakasin@gmail.com>
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.

2 participants