[D&D5ed.] (update) ATコマンドとARコマンドに「ブレスorガイダンス時のボーナス」を自動加算できるようにしました。#812
Open
Faceless192x wants to merge 9 commits intobcdice:masterfrom
Open
[D&D5ed.] (update) ATコマンドとARコマンドに「ブレスorガイダンス時のボーナス」を自動加算できるようにしました。#812Faceless192x wants to merge 9 commits intobcdice:masterfrom
Faceless192x wants to merge 9 commits intobcdice:masterfrom
Conversation
Contributor
Author
|
他のダイスの多くが修正値の加減算を許容しているので、D&D5ed.のダイスも修正値の加減算を許容するようにしました。 |
ysakasin
requested changes
Jan 9, 2026
Member
ysakasin
left a comment
There was a problem hiding this comment.
動作上問題がありそうな部分が2点あったので、修正をお願いします。
不利フラグとの共存
不利(D)とボーナス(B)を同時に指定するとボーナスフラグが適用されません。
AT>=16DB
これはBCDiceの事前処理として、[数字]D の文字列は [数字]D6 に事前変換されるために発生している問題だと思います。この事前処理には現状だと手をつけられないので、Dの後の数値を無視するなど、何らかの方法で対処するようにしてください。
修正値の加減算の変更に伴うエラー
AT+ といった修正値部分が計算できない値の時に例外が発生してしまいます。このようなケースで正規表現が引っかからないように変更するなどしてください。
Contributor
Author
|
ご指摘ありがとうございます。修正了解です!
現状は現状として、この問題は「D6のみを使用するTRPGに使われる特殊表記を全てのTRPGに適用している」問題でもあるので、将来的にはスイッチで変更できる方が良いかもしれないですね。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
「ダンジョンズアンドドラゴンズ第5版」( https://dnd-jp.com/ )のコマンドをアップデートしました。
ATコマンドとARコマンドに「ブレスorガイダンス時のボーナス」を自動加算できるようにしました。
よってコマンドは以下のようになりました。
お手すきの際に、ご確認くださいませ。