Class: BCDice::GameSystem::AceKillerGene

Inherits:
GardenOrder show all
Defined in:
lib/bcdice/game_system/AceKillerGene.rb

Constant Summary collapse

ID =

ゲームシステムの識別子

'AceKillerGene'
NAME =

ゲームシステム名

'エースキラージーン'
SORT_KEY =

ゲームシステム名の読みがな

'ええすきらあしいん'
HELP_MESSAGE =

ダイスボットの使い方

"\u30FB\u57FA\u672C\u5224\u5B9A\n\u3000AKx/y@z\u3000x\uFF1A\u6210\u529F\u7387\u3001y\uFF1A\u9023\u7D9A\u653B\u6483\u56DE\u6570\uFF08\u7701\u7565\u53EF\uFF09\u3001z\uFF1A\u30AF\u30EA\u30C6\u30A3\u30AB\u30EB\u5024\uFF08\u7701\u7565\u53EF\uFF09\n\u3000\uFF08\u9023\u7D9A\u653B\u6483\u3067\u306F1\u56DE\u306E\u5224\u5B9A\u306E\u307F\u304C\u5B9F\u65BD\u3055\u308C\u307E\u3059\uFF09\n\u3000\u4F8B\uFF09AK55\u3000AK100/2\u3000AK70@10\u3000AK155/3@44\n\u30FB\u8CA0\u50B7\u8868\n\u3000DCxxy\n\u3000xx\uFF1A\u5C5E\u6027\uFF08\u5207\u65AD\uFF1ASL\uFF0C\u9283\u5F3E\uFF1ABL\uFF0C\u885D\u6483\uFF1AIM\uFF0C\u707C\u71B1\uFF1ABR\uFF0C\u51B7\u5374\uFF1ARF\uFF0C\u96FB\u6483\uFF1AEL\uFF09\n\u3000y\uFF1A\u30C0\u30E1\u30FC\u30B8\n\u3000\u4F8B\uFF09DCSL7\u3000DCEL22\n"

Constants inherited from GardenOrder

GardenOrder::DAMAGE_TABLE, GardenOrder::DAMAGE_TABLE_SE

Instance Attribute Summary

Attributes inherited from Base

#d66_sort_type, #default_cmp_op, #default_target_number, #randomizer, #reroll_dice_reroll_threshold, #round_type, #sides_implicit_d, #upper_dice_reroll_threshold

Instance Method Summary collapse

Methods inherited from GardenOrder

#check_roll, #check_roll_repeat_attack, #get_check_result, #get_critical_border, #get_damage_table_info_by_type, #look_up_damage_chart, #look_up_damage_se_chart

Methods inherited from Base

#change_text, #check_result, command_pattern, #enable_debug, #enabled_d9?, #eval, eval, #grich_text, #initialize, prefixes_pattern, register_prefix, register_prefix_from_super_class, #sort_add_dice?, #sort_barabara_dice?

Methods included from Translate

#translate

Constructor Details

This class inherits a constructor from BCDice::Base

Instance Method Details

#eval_game_system_specific_command(command) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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