class BCDice::GameSystem::AceKillerGene
Constants
- HELP_MESSAGE
ダイスボットの使い方
- ID
ゲームシステムの識別子
- NAME
ゲームシステム名
- SORT_KEY
ゲームシステム名の読みがな
Public Instance Methods
eval_game_system_specific_command(command)
click to toggle source
# File lib/bcdice/game_system/AceKillerGene.rb, line 35 def eval_game_system_specific_command(command) case command when %r{(AK|AKG)(-?\d+)(/(\d+))?(@(\d+))?}i success_rate = Regexp.last_match(2).to_i repeat_count = (Regexp.last_match(4) || 1).to_i critical_border_text = Regexp.last_match(6) critical_border = get_critical_border(critical_border_text, success_rate) return check_roll_repeat_attack(success_rate, repeat_count, critical_border) when /^DC(SL|BL|IM|BR|RF|EL)(\d+)/i type = Regexp.last_match(1) damage_value = Regexp.last_match(2).to_i return look_up_damage_chart(type, damage_value) end return nil end