-
Notifications
You must be signed in to change notification settings - Fork 180
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
TRPG『慈悲なきアイオニア』のダイスボット #720
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.
1文字コマンドは共通コマンドのために開けておきたいので、技能判定のs
は形式を変更してください。コマンドの主要部分は2文字以上であることが望ましいです。
また、既存のコマンドの先頭にs
をつけるとシークレットダイスになる機能があるため、形式を変更する際には気をつけてください。たとえば、ST
とSST
というコマンドを実装した場合にSST
と入力した際にST
のシークレットダイスなのか、SST
というコマンドなのか区別ができなくなります。
@ysakasin |
lib/bcdice/game_system/Aionia.rb
Outdated
end | ||
|
||
# 結果を返す | ||
return "(#{command}) > #{dice_total}[#{dice_list.join(',')}]#{bonus_text} > #{bonus_result}#{result}" |
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.
成否やクリティカル・ファンブルの結果を伴う出力には BCDice::Result
クラスのインスタンスを用いるようにしてください。
以下が使用例です。
BCDice/lib/bcdice/game_system/Ayabito.rb
Lines 84 to 90 in 48a94e0
Result.new.tap do |r| | |
r.text = "(#{dice_cnt}B6>=4)#{over_modify > 0 ? "+#{over_modify * 2}" : ''} > [#{dice_str}]#{over_modify > 0 ? "+#{over_modify * 2}" : ''} > 成功数#{success_cnt} > #{result ? '成功' : '失敗'}#{has_critical ? '(クリティカル)' : ''}#{has_fumble ? '(ファンブル)' : ''}" | |
r.critical = has_critical | |
r.fumble = has_fumble | |
r.success = result | |
r.failure = !result | |
end |
@ysakasin |
慈悲なきアイオニアのダイスボットを作成しました。
技能判定の際に使うダイスボットで、ダメージチェックやストレスチェック、表などは作成していません。
作成したテスト(Aionia.toml)をすべてpassしています。
そのほか、ソートキー等のテストも通過しています。