Skip to content

Commit

Permalink
2018/04/30 Ver.1.49.01
Browse files Browse the repository at this point in the history
・ダイスボットをボーンズ&カーズVer2.02.77対応へ変更。
・ダイスボットに「クラヤミクライン」を追加。
・Rubyのバージョンアップに追随するため、サーバ側の文字列の扱いを変更(処理自体にはに変更なし)酒田シンジさんありがとうっ!
  • Loading branch information
torgtaitai committed May 12, 2018
1 parent 06b1260 commit 9bff1c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src_bcdice/diceBot/DiceBot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -478,11 +478,12 @@ def getTableCommandResult(command, tables, isPrintDiceText = true)

text, number, diceText =
case type
when /(\d+)D6/
when /(\d+)D(\d+)/
count = $1.to_i
limit = 6 * count - (count - 1)
diceType = $2.to_i
limit = diceType * count - (count - 1)
table = getTableInfoFromExtraTableText(table, limit)
get_table_by_nDx_extratable(table, count, 6)
get_table_by_nDx_extratable(table, count, diceType)
when 'D66', 'D66N'
table = getTableInfoFromExtraTableText(table, 36)
item, value = get_table_by_d66(table)
Expand Down
1 change: 0 additions & 1 deletion src_bcdice/diceBot/KurayamiCrying.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def rollDiceCommand(command)
result = "#{name}(#{number}) > #{text}"
return text
end

result = getTableCommandResult(command, @@tables)
return result unless result.nil?
end
Expand Down

0 comments on commit 9bff1c3

Please sign in to comment.