Class: BCDice::GameSystem::Torg1_5

Inherits:
Torg
  • Object
show all
Defined in:
lib/bcdice/game_system/Torg1_5.rb

Constant Summary collapse

ID =

ゲームシステムの識別子

'Torg1.5'
NAME =

ゲームシステム名

'トーグ1.5版'
SORT_KEY =

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

'とおく1.5'

Constants inherited from Torg

BCDice::GameSystem::Torg::HELP_MESSAGE

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 Torg

#eval_game_system_specific_command, #getTorgBonusOutputTextWhenModDefined, #get_torg_bonus, #get_torg_bonus_text, #get_torg_table_result, #replace_text, #torg_check, #torg_dice

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

#get_torg_damage(value, max_damage, max_shock, damage_table) ⇒ Object



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/bcdice/game_system/Torg1_5.rb', line 120

def get_torg_damage(value, max_damage, max_shock, damage_table)
  if value < 0
    return '1'
  end

  table_max_value = damage_table.length - 1

  if value <= table_max_value
    return get_torg_table_result(value, damage_table)
  end

  over_kill_value = ((value - table_max_value) / 2).to_i
  over_kill_damage = max_damage + over_kill_value * 1
  over_kill_shock = max_shock + over_kill_value * 1

  return "#{over_kill_damage}レベル負傷  KO#{over_kill_shock}"
end

#get_torg_damage_ords(value) ⇒ Object

オーズダメージチャート



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/bcdice/game_system/Torg1_5.rb', line 73

def get_torg_damage_ords(value)
  damage_table_ords = [
    [0, "1"],
    [1, "O1"],
    [2, "K1"],
    [3, "O2"],
    [4, "K2"],
    [5, "転倒 O3"],
    [6, "転倒 K3"],
    [7, "転倒 K/O4"],
    [8, "1レベル負傷  KO4"],
    [9, "1レベル負傷  K/O5"],
    [10, "1レベル負傷  KO5"],
    [11, "2レベル負傷  K/O6"],
    [12, "2レベル負傷  KO6"],
    [13, "3レベル負傷  K/O7"],
    [14, "3レベル負傷  KO7"],
    [15, "4レベル負傷  KO8"]
  ]

  return get_torg_damage(value, 4, 8, damage_table_ords)
end

#get_torg_damage_posibility(value) ⇒ Object

ポシビリティー能力者ダメージチャート



97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/bcdice/game_system/Torg1_5.rb', line 97

def get_torg_damage_posibility(value)
  damage_table_posibility = [
    [0, "1"],
    [1, "1"],
    [2, "O1"],
    [3, "K1"],
    [4, "2"],
    [5, "O2"],
    [6, "転倒 K2"],
    [7, "転倒 O3"],
    [8, "転倒 K3"],
    [9, "転倒 K/O3"],
    [10, "1レベル負傷  K/O4"],
    [11, "1レベル負傷  K/O4"],
    [12, "1レベル負傷  KO4"],
    [13, "2レベル負傷  K/O5"],
    [14, "2レベル負傷  KO5"],
    [15, "3レベル負傷  KO5"]
  ]

  return get_torg_damage(value, 3, 5, damage_table_posibility)
end

#get_torg_interaction_result_intimidate_test(value) ⇒ Object

対人行為結果表威圧/威嚇(intimidate/Test)



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/bcdice/game_system/Torg1_5.rb', line 34

def get_torg_interaction_result_intimidate_test(value)
  interaction_results_table = [
    [0, "萎縮"],
    [5, "技能なし"],
    [10, "逆転負け"],
    [15, "モラル崩壊"],
    [17, "プレイヤーズコール"]
  ]

  return get_torg_table_result(value, interaction_results_table)
end

#get_torg_interaction_result_maneuver(value) ⇒ Object

間合い(maneuver)



60
61
62
63
64
65
66
67
68
69
70
# File 'lib/bcdice/game_system/Torg1_5.rb', line 60

def get_torg_interaction_result_maneuver(value)
  interaction_results_table = [
    [0, "疲労"],
    [5, "萎縮"],
    [10, "技能なし"],
    [15, "逆転負け/疲労"],
    [17, "プレイヤーズコール"]
  ]

  return get_torg_table_result(value, interaction_results_table)
end

#get_torg_interaction_result_taunt_trick(value) ⇒ Object

挑発/トリック(Taunt/Trick)



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/bcdice/game_system/Torg1_5.rb', line 47

def get_torg_interaction_result_taunt_trick(value)
  interaction_results_table = [
    [0, "萎縮"],
    [5, "技能なし"],
    [10, "逆転負け"],
    [15, "高揚/逆転負け"],
    [17, "プレイヤーズコール"]
  ]

  return get_torg_table_result(value, interaction_results_table)
end

#get_torg_success_level(value) ⇒ Object

一般結果表 成功度



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/bcdice/game_system/Torg1_5.rb', line 20

def get_torg_success_level(value)
  success_table = [
    [0, "ぎりぎり"],
    [1, "ふつう"],
    [3, "まあよい"],
    [7, "かなりよい"],
    [12, "すごい"]
  ]

  return get_torg_table_result(value, success_table)
end