-
Notifications
You must be signed in to change notification settings - Fork 191
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]ハプニングチャートとRWプロローグチャートを振るためのコマンド(HC, PCP, PCN)を追加 #736
base: master
Are you sure you want to change the base?
Conversation
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.
ついでにRWチャートも一気に入れてしまったらどうでしょうか?
feat: [DoubleCross]RWプロローグチャート追加(説明文) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加(コマンド登録) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加(コマンド実装) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加(メッセージ) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加(コマンド分岐) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加(コマンド実装) Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
feat: [DoubleCross]RWプロローグチャート追加 Co-authored-by: patchang86 <61706371+patchang86@users.noreply.github.com>
@patchang86 ありがとうございます。実装もほとんどいただいていたため、suggestion commitし、少し修正とテストまで追加いたしました。改めてご確認よろしくお願いいたします。 |
あ!迷惑じゃなかったら幸いです。 Githubが苦手でインデントとかで大変お手数をおかけしました。 テストまでありがとうございました! これで次のバージョンで一緒にアップデートされるといいですね~ |
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.
寄稿ありがとうございます。
今回追加されるいずれの表もクラスに内蔵された処理以上の特別な処理は指定はしていようなので、 以下を参考に roll_tables
を使った方式に変更してください。
サンプル
Lines 24 to 43 in 556e4b1
TABLES = { | |
"TOOLS" => DiceTable::Table.new( | |
"オンセツール決定表", | |
"1D6", | |
[ | |
"ココフォリア", | |
"ユドナリウム", | |
"TRPGスタジオ", | |
"Quoridorn", | |
"FoundryVTT", | |
"ゆとチャadv.", | |
] | |
), | |
}.freeze | |
register_prefix('\d+OT>=\d+', TABLES.keys) | |
def eval_game_system_specific_command(command) | |
return roll_ot(command) || roll_tables(command, TABLES) | |
end |
@ysakasin ありがとうございます。提案いただいたroll_tablesを使った方式に変更してみるようにいたしました。改めてご確認よろしくお願いいたします。 |
『DoubleCorss』に、フォーカスシステム(FS)判定のハプニングチャート用のコマンドが欲しく実装を試みました。