bcdice 3.12.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -0
  3. data/i18n/Arianrhod/ko_kr.yml +3 -0
  4. data/i18n/Cthulhu/en_us.yml +11 -0
  5. data/i18n/CyberpunkRed/ja_jp.yml +389 -0
  6. data/i18n/FinalFantasyXIV/en_us.yml +4 -0
  7. data/i18n/FinalFantasyXIV/ja_jp.yml +4 -0
  8. data/i18n/FutariSousa/ja_jp.yml +158 -1
  9. data/i18n/KizunaBullet/ja_jp.yml +653 -0
  10. data/i18n/MonotoneMuseum/ja_jp.yml +246 -14
  11. data/i18n/SkynautsBouken/ja_jp.yml +114 -0
  12. data/i18n/TensaiGunshiNiNaro/ja_jp.yml +126 -0
  13. data/i18n/UnsungDuet/ja_jp.yml +62 -0
  14. data/i18n/UnsungDuet/ko_kr.yml +62 -0
  15. data/i18n/en_us.yml +5 -0
  16. data/lib/bcdice/arithmetic/parser.rb +4 -2
  17. data/lib/bcdice/base.rb +1 -1
  18. data/lib/bcdice/command/parser.rb +4 -2
  19. data/lib/bcdice/common_command/add_dice/parser.rb +4 -2
  20. data/lib/bcdice/common_command/barabara_dice/parser.rb +4 -2
  21. data/lib/bcdice/common_command/calc/parser.rb +4 -2
  22. data/lib/bcdice/common_command/reroll_dice/parser.rb +4 -2
  23. data/lib/bcdice/common_command/tally_dice/parser.rb +4 -2
  24. data/lib/bcdice/common_command/upper_dice/parser.rb +4 -2
  25. data/lib/bcdice/dice_table/range_table.rb +24 -0
  26. data/lib/bcdice/game_system/Agnostos.rb +248 -0
  27. data/lib/bcdice/game_system/Airgetlamh.rb +1 -1
  28. data/lib/bcdice/game_system/Alsetto.rb +2 -2
  29. data/lib/bcdice/game_system/AniMalus.rb +261 -0
  30. data/lib/bcdice/game_system/Arianrhod_Korean.rb +30 -0
  31. data/lib/bcdice/game_system/ArknightsFan.rb +182 -0
  32. data/lib/bcdice/game_system/Avandner.rb +1 -1
  33. data/lib/bcdice/game_system/BBN.rb +1 -1
  34. data/lib/bcdice/game_system/BadLife.rb +3 -3
  35. data/lib/bcdice/game_system/BarnaKronika.rb +1 -1
  36. data/lib/bcdice/game_system/BlackJacket.rb +244 -0
  37. data/lib/bcdice/game_system/Chill3.rb +6 -6
  38. data/lib/bcdice/game_system/ConvictorDrive.rb +5 -4
  39. data/lib/bcdice/game_system/Cthulhu_English.rb +59 -0
  40. data/lib/bcdice/game_system/CyberpunkRed.rb +14 -4
  41. data/lib/bcdice/game_system/DarkSouls.rb +1 -1
  42. data/lib/bcdice/game_system/DivineCharger.rb +841 -0
  43. data/lib/bcdice/game_system/Elric.rb +1 -1
  44. data/lib/bcdice/game_system/FinalFantasyXIV.rb +115 -0
  45. data/lib/bcdice/game_system/FinalFantasyXIV_English.rb +39 -0
  46. data/lib/bcdice/game_system/FullFace.rb +121 -0
  47. data/lib/bcdice/game_system/FutariSousa.rb +88 -8
  48. data/lib/bcdice/game_system/InfiniteFantasia.rb +4 -1
  49. data/lib/bcdice/game_system/Insane_Korean.rb +1 -1
  50. data/lib/bcdice/game_system/InvisibleLiar.rb +79 -0
  51. data/lib/bcdice/game_system/Irisbane.rb +1 -1
  52. data/lib/bcdice/game_system/KillDeathBusiness.rb +1 -1
  53. data/lib/bcdice/game_system/KizunaBullet.rb +240 -0
  54. data/lib/bcdice/game_system/KyokoShinshoku.rb +201 -0
  55. data/lib/bcdice/game_system/Liminal.rb +136 -0
  56. data/lib/bcdice/game_system/MetalHead.rb +1 -1
  57. data/lib/bcdice/game_system/MetalHeadExtream.rb +1 -1
  58. data/lib/bcdice/game_system/MonotoneMuseum.rb +14 -1
  59. data/lib/bcdice/game_system/NRR.rb +122 -0
  60. data/lib/bcdice/game_system/NSSQ.rb +1 -1
  61. data/lib/bcdice/game_system/NightWizard.rb +1 -1
  62. data/lib/bcdice/game_system/NightWizard3rd.rb +15 -2
  63. data/lib/bcdice/game_system/OneWayHeroics.rb +1 -1
  64. data/lib/bcdice/game_system/PastFutureParadox.rb +1238 -0
  65. data/lib/bcdice/game_system/Postman.rb +3 -3
  66. data/lib/bcdice/game_system/RecordOfSteam.rb +1 -1
  67. data/lib/bcdice/game_system/RuneQuestRoleplayingInGlorantha.rb +1 -1
  68. data/lib/bcdice/game_system/Ryutama.rb +4 -4
  69. data/lib/bcdice/game_system/ShuumatsuBargainWars.rb +203 -0
  70. data/lib/bcdice/game_system/Siren.rb +97 -0
  71. data/lib/bcdice/game_system/Skynauts.rb +1 -1
  72. data/lib/bcdice/game_system/SkynautsBouken.rb +45 -130
  73. data/lib/bcdice/game_system/Strave.rb +1 -1
  74. data/lib/bcdice/game_system/SwordWorld.rb +1 -1
  75. data/lib/bcdice/game_system/TensaiGunshiNiNaro.rb +228 -0
  76. data/lib/bcdice/game_system/TheOneRing2nd.rb +406 -0
  77. data/lib/bcdice/game_system/TheUnofficialHollowKnightRPG.rb +185 -0
  78. data/lib/bcdice/game_system/TherapieSein.rb +1 -1
  79. data/lib/bcdice/game_system/TrailOfCthulhu.rb +139 -0
  80. data/lib/bcdice/game_system/TrinitySeven.rb +1 -1
  81. data/lib/bcdice/game_system/UnsungDuet.rb +17 -75
  82. data/lib/bcdice/game_system/UnsungDuet_Korean.rb +41 -0
  83. data/lib/bcdice/game_system/Utakaze.rb +55 -2
  84. data/lib/bcdice/game_system/VampireTheMasquerade5th.rb +12 -6
  85. data/lib/bcdice/game_system/Warhammer4.rb +124 -3
  86. data/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb +12 -6
  87. data/lib/bcdice/game_system/Yotabana.rb +62 -0
  88. data/lib/bcdice/game_system/cthulhu7th/full_auto.rb +1 -1
  89. data/lib/bcdice/game_system/cyberpunk_red/tables.rb +111 -473
  90. data/lib/bcdice/game_system/kizuna_bullet/tables.rb +171 -0
  91. data/lib/bcdice/game_system/sword_world/rating_parser.rb +4 -2
  92. data/lib/bcdice/game_system.rb +24 -0
  93. data/lib/bcdice/loader.rb +1 -1
  94. data/lib/bcdice/version.rb +1 -1
  95. metadata +55 -5
@@ -0,0 +1,171 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BCDice
4
+ module GameSystem
5
+ class KizunaBullet < Base
6
+ class RollTwiceRandomizerTable
7
+ def initialize(locale:, a_table:, b_table:)
8
+ @locale = locale
9
+ @a_table = a_table
10
+ @b_table = b_table
11
+ end
12
+
13
+ def roll(randomizer)
14
+ results = []
15
+
16
+ result_a = @a_table.roll(randomizer).to_s
17
+ results.push(result_a)
18
+
19
+ result_b = @b_table.roll(randomizer).to_s
20
+ results.push(result_b)
21
+
22
+ return results.join("\n")
23
+ end
24
+ end
25
+
26
+ class Roll4TimesRandomizerTable
27
+ def initialize(locale:, a_table:, b_table:, c_table:, d_table:)
28
+ @locale = locale
29
+ @a_table = a_table
30
+ @b_table = b_table
31
+ @c_table = c_table
32
+ @d_table = d_table
33
+ end
34
+
35
+ def roll(randomizer)
36
+ results = []
37
+
38
+ result_a = @a_table.roll(randomizer).to_s
39
+ results.push(result_a)
40
+
41
+ result_b = @b_table.roll(randomizer).to_s
42
+ results.push(result_b)
43
+
44
+ result_c = @c_table.roll(randomizer).to_s
45
+ results.push(result_c)
46
+
47
+ result_d = @d_table.roll(randomizer).to_s
48
+ results.push(result_d)
49
+
50
+ return results.join("\n")
51
+ end
52
+ end
53
+
54
+ class << self
55
+ private
56
+
57
+ def translate_tables(locale)
58
+ ordinary_days_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.OP", locale)
59
+ ordinary_days_content_table = DiceTable::Table.from_i18n("KizunaBullet.table.OC", locale)
60
+ ordinary_days_work_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.OWP", locale)
61
+ ordinary_days_work_content_table = DiceTable::Table.from_i18n("KizunaBullet.table.OWC", locale)
62
+ ordinary_days_holiday_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.OHP", locale)
63
+ ordinary_days_holiday_content_table = DiceTable::Table.from_i18n("KizunaBullet.table.OHC", locale)
64
+ ordinary_days_trip_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.OTP", locale)
65
+ ordinary_days_trip_content_table = DiceTable::Table.from_i18n("KizunaBullet.table.OTC", locale)
66
+ encounter_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.EP", locale)
67
+ encounter_order_table = DiceTable::Table.from_i18n("KizunaBullet.table.EO", locale)
68
+ encounter_first_table = DiceTable::Table.from_i18n("KizunaBullet.table.EF", locale)
69
+ encounter_acquaintance_table = DiceTable::Table.from_i18n("KizunaBullet.table.EA", locale)
70
+ encounter_end_table = DiceTable::Table.from_i18n("KizunaBullet.table.EE", locale)
71
+ communication_place_table = DiceTable::Table.from_i18n("KizunaBullet.table.CP", locale)
72
+ communication_content_table = DiceTable::Table.from_i18n("KizunaBullet.table.CC", locale)
73
+ investigation_basic_table = DiceTable::D66Table.from_i18n("KizunaBullet.table.IB", locale)
74
+ investigation_dynamic_table = DiceTable::D66Table.from_i18n("KizunaBullet.table.ID", locale)
75
+ return {
76
+ "OP" => ordinary_days_place_table,
77
+ "OC" => ordinary_days_content_table,
78
+ "OPC" => RollTwiceRandomizerTable.new(
79
+ locale: locale,
80
+ a_table: ordinary_days_place_table,
81
+ b_table: ordinary_days_content_table
82
+ ).freeze,
83
+ "OWP" => ordinary_days_work_place_table,
84
+ "OWC" => ordinary_days_work_content_table,
85
+ "OWPC" => RollTwiceRandomizerTable.new(
86
+ locale: locale,
87
+ a_table: ordinary_days_work_place_table,
88
+ b_table: ordinary_days_work_content_table
89
+ ).freeze,
90
+ "OHP" => ordinary_days_holiday_place_table,
91
+ "OHC" => ordinary_days_holiday_content_table,
92
+ "OHPC" => RollTwiceRandomizerTable.new(
93
+ locale: locale,
94
+ a_table: ordinary_days_holiday_place_table,
95
+ b_table: ordinary_days_holiday_content_table
96
+ ).freeze,
97
+ "OTP" => ordinary_days_trip_place_table,
98
+ "OTC" => ordinary_days_trip_content_table,
99
+ "OTPC" => RollTwiceRandomizerTable.new(
100
+ locale: locale,
101
+ a_table: ordinary_days_trip_place_table,
102
+ b_table: ordinary_days_trip_content_table
103
+ ).freeze,
104
+ "TT" => DiceTable::D66Table.from_i18n("KizunaBullet.table.TT", locale),
105
+ "TTI" => DiceTable::D66Table.from_i18n("KizunaBullet.table.TTI", locale),
106
+ "TTC" => DiceTable::D66Table.from_i18n("KizunaBullet.table.TTC", locale),
107
+ "TTH" => DiceTable::D66Table.from_i18n("KizunaBullet.table.TTH", locale),
108
+ "EP" => encounter_place_table,
109
+ "EO" => encounter_order_table,
110
+ "EF" => encounter_first_table,
111
+ "EA" => encounter_acquaintance_table,
112
+ "EE" => encounter_end_table,
113
+ "EFA" => Roll4TimesRandomizerTable.new(
114
+ locale: locale,
115
+ a_table: encounter_place_table,
116
+ b_table: encounter_order_table,
117
+ c_table: encounter_first_table,
118
+ d_table: encounter_end_table
119
+ ).freeze,
120
+ "EAA" => Roll4TimesRandomizerTable.new(
121
+ locale: locale,
122
+ a_table: encounter_place_table,
123
+ b_table: encounter_order_table,
124
+ c_table: encounter_acquaintance_table,
125
+ d_table: encounter_end_table
126
+ ).freeze,
127
+ "CP" => communication_place_table,
128
+ "CC" => communication_content_table,
129
+ "CPC" => RollTwiceRandomizerTable.new(
130
+ locale: locale,
131
+ a_table: communication_place_table,
132
+ b_table: communication_content_table
133
+ ).freeze,
134
+ "IB" => investigation_basic_table,
135
+ "ID" => investigation_dynamic_table,
136
+ "IBD" => RollTwiceRandomizerTable.new(
137
+ locale: locale,
138
+ a_table: investigation_basic_table,
139
+ b_table: investigation_dynamic_table
140
+ ).freeze,
141
+ "HA" => DiceTable::Table.from_i18n("KizunaBullet.table.HA", locale),
142
+ "NI1" => DiceTable::Table.from_i18n("KizunaBullet.table.NI1", locale),
143
+ "NI2" => DiceTable::Table.from_i18n("KizunaBullet.table.NI2", locale),
144
+ "NI3" => DiceTable::Table.from_i18n("KizunaBullet.table.NI3", locale),
145
+ "NI4" => DiceTable::Table.from_i18n("KizunaBullet.table.NI4", locale),
146
+ "NI5" => DiceTable::Table.from_i18n("KizunaBullet.table.NI5", locale),
147
+ "NI6" => DiceTable::Table.from_i18n("KizunaBullet.table.NI6", locale),
148
+ "NT1" => DiceTable::Table.from_i18n("KizunaBullet.table.NT1", locale),
149
+ "NT2" => DiceTable::Table.from_i18n("KizunaBullet.table.NT2", locale),
150
+ "NT3" => DiceTable::Table.from_i18n("KizunaBullet.table.NT3", locale),
151
+ "NT4" => DiceTable::Table.from_i18n("KizunaBullet.table.NT4", locale),
152
+ "NT5" => DiceTable::Table.from_i18n("KizunaBullet.table.NT5", locale),
153
+ "NT6" => DiceTable::Table.from_i18n("KizunaBullet.table.NT6", locale),
154
+ "HH1" => DiceTable::Table.from_i18n("KizunaBullet.table.HH1", locale),
155
+ "HH2" => DiceTable::Table.from_i18n("KizunaBullet.table.HH2", locale),
156
+ "HH3" => DiceTable::Table.from_i18n("KizunaBullet.table.HH3", locale),
157
+ "HH4" => DiceTable::Table.from_i18n("KizunaBullet.table.HH4", locale),
158
+ "HH5" => DiceTable::Table.from_i18n("KizunaBullet.table.HH5", locale),
159
+ "HH6" => DiceTable::Table.from_i18n("KizunaBullet.table.HH6", locale),
160
+ "HC1" => DiceTable::Table.from_i18n("KizunaBullet.table.HC1", locale),
161
+ "HC2" => DiceTable::Table.from_i18n("KizunaBullet.table.HC2", locale),
162
+ "HC3" => DiceTable::Table.from_i18n("KizunaBullet.table.HC3", locale),
163
+ "HC4" => DiceTable::Table.from_i18n("KizunaBullet.table.HC4", locale),
164
+ "HC5" => DiceTable::Table.from_i18n("KizunaBullet.table.HC5", locale),
165
+ "HC6" => DiceTable::Table.from_i18n("KizunaBullet.table.HC6", locale),
166
+ }.freeze
167
+ end
168
+ end
169
+ end
170
+ end
171
+ end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.6.2
4
- # from Racc grammar file "".
3
+ # This file is automatically generated by Racc 1.7.3
4
+ # from Racc grammar file "rating_parser.y".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -226,6 +226,7 @@ Racc_arg = [
226
226
  racc_shift_n,
227
227
  racc_reduce_n,
228
228
  racc_use_result_var ]
229
+ Ractor.make_shareable(Racc_arg) if defined?(Ractor)
229
230
 
230
231
  Racc_token_to_s_table = [
231
232
  "$end",
@@ -259,6 +260,7 @@ Racc_token_to_s_table = [
259
260
  "mul",
260
261
  "add",
261
262
  "term" ]
263
+ Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
262
264
 
263
265
  Racc_debug_parser = false
264
266
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "bcdice/game_system/AFF2e"
4
4
  require "bcdice/game_system/AceKillerGene"
5
+ require "bcdice/game_system/Agnostos"
5
6
  require "bcdice/game_system/Ainecadette"
6
7
  require "bcdice/game_system/Airgetlamh"
7
8
  require "bcdice/game_system/AlchemiaStruggle"
@@ -12,8 +13,11 @@ require "bcdice/game_system/Amadeus"
12
13
  require "bcdice/game_system/Amadeus_Korean"
13
14
  require "bcdice/game_system/AngelGear"
14
15
  require "bcdice/game_system/AnimaAnimus"
16
+ require "bcdice/game_system/AniMalus"
15
17
  require "bcdice/game_system/Aoharubaan"
16
18
  require "bcdice/game_system/Arianrhod"
19
+ require "bcdice/game_system/Arianrhod_Korean"
20
+ require "bcdice/game_system/ArknightsFan"
17
21
  require "bcdice/game_system/ArsMagica"
18
22
  require "bcdice/game_system/AssaultEngine"
19
23
  require "bcdice/game_system/Avandner"
@@ -27,6 +31,7 @@ require "bcdice/game_system/BeastBindTrinity"
27
31
  require "bcdice/game_system/BeginningIdol"
28
32
  require "bcdice/game_system/BeginningIdol_Korean"
29
33
  require "bcdice/game_system/BeginningIdol2022"
34
+ require "bcdice/game_system/BlackJacket"
30
35
  require "bcdice/game_system/BladeOfArcana"
31
36
  require "bcdice/game_system/BlindMythos"
32
37
  require "bcdice/game_system/BloodCrusade"
@@ -48,6 +53,7 @@ require "bcdice/game_system/Cthulhu7th_ChineseTraditional"
48
53
  require "bcdice/game_system/Cthulhu7th_Korean"
49
54
  require "bcdice/game_system/CthulhuTech"
50
55
  require "bcdice/game_system/Cthulhu_ChineseTraditional"
56
+ require "bcdice/game_system/Cthulhu_English"
51
57
  require "bcdice/game_system/Cthulhu_Korean"
52
58
  require "bcdice/game_system/Cthulhu_SimplifiedChinese"
53
59
  require "bcdice/game_system/CyberpunkRed"
@@ -62,6 +68,7 @@ require "bcdice/game_system/DetatokoSaga"
62
68
  require "bcdice/game_system/DetatokoSaga_Korean"
63
69
  require "bcdice/game_system/DiceBot"
64
70
  require "bcdice/game_system/DiceOfTheDead"
71
+ require "bcdice/game_system/DivineCharger"
65
72
  require "bcdice/game_system/DoubleCross"
66
73
  require "bcdice/game_system/DoubleCross_Korean"
67
74
  require "bcdice/game_system/Dracurouge"
@@ -83,6 +90,7 @@ require "bcdice/game_system/Fiasco"
83
90
  require "bcdice/game_system/Fiasco_Korean"
84
91
  require "bcdice/game_system/FilledWith"
85
92
  require "bcdice/game_system/FullMetalPanic"
93
+ require "bcdice/game_system/FullFace"
86
94
  require "bcdice/game_system/FutariSousa"
87
95
  require "bcdice/game_system/FutariSousa_Korean"
88
96
  require "bcdice/game_system/Garako"
@@ -113,6 +121,7 @@ require "bcdice/game_system/InfiniteBabeL"
113
121
  require "bcdice/game_system/InfiniteFantasia"
114
122
  require "bcdice/game_system/Insane"
115
123
  require "bcdice/game_system/Insane_Korean"
124
+ require "bcdice/game_system/InvisibleLiar"
116
125
  require "bcdice/game_system/Irisbane"
117
126
  require "bcdice/game_system/IthaWenUa"
118
127
  require "bcdice/game_system/JamesBond"
@@ -126,8 +135,11 @@ require "bcdice/game_system/Karukami"
126
135
  require "bcdice/game_system/KemonoNoMori"
127
136
  require "bcdice/game_system/KillDeathBusiness"
128
137
  require "bcdice/game_system/KillDeathBusiness_Korean"
138
+ require "bcdice/game_system/KizunaBullet"
129
139
  require "bcdice/game_system/KurayamiCrying"
130
140
  require "bcdice/game_system/Kutulu"
141
+ require "bcdice/game_system/KyokoShinshoku"
142
+ require "bcdice/game_system/Liminal"
131
143
  require "bcdice/game_system/LiveraDoll"
132
144
  require "bcdice/game_system/LogHorizon"
133
145
  require "bcdice/game_system/LogHorizon_Korean"
@@ -155,6 +167,7 @@ require "bcdice/game_system/NinjaSlayer"
155
167
  require "bcdice/game_system/NinjaSlayer2"
156
168
  require "bcdice/game_system/NjslyrBattle"
157
169
  require "bcdice/game_system/NobunagasBlackCastle"
170
+ require "bcdice/game_system/NRR"
158
171
  require "bcdice/game_system/NSSQ"
159
172
  require "bcdice/game_system/Nuekagami"
160
173
  require "bcdice/game_system/OneWayHeroics"
@@ -165,6 +178,7 @@ require "bcdice/game_system/Paradiso"
165
178
  require "bcdice/game_system/Paranoia"
166
179
  require "bcdice/game_system/ParanoiaRebooted"
167
180
  require "bcdice/game_system/ParasiteBlood"
181
+ require "bcdice/game_system/PastFutureParadox"
168
182
  require "bcdice/game_system/Pathfinder"
169
183
  require "bcdice/game_system/Peekaboo"
170
184
  require "bcdice/game_system/Pendragon"
@@ -200,7 +214,9 @@ require "bcdice/game_system/ShinkuuGakuen"
200
214
  require "bcdice/game_system/ShinobiGami"
201
215
  require "bcdice/game_system/Shiranui"
202
216
  require "bcdice/game_system/ShoujoTenrankai"
217
+ require "bcdice/game_system/ShuumatsuBargainWars"
203
218
  require "bcdice/game_system/ShuumatsuKikou"
219
+ require "bcdice/game_system/Siren"
204
220
  require "bcdice/game_system/Skynauts"
205
221
  require "bcdice/game_system/SkynautsBouken"
206
222
  require "bcdice/game_system/StarryDolls"
@@ -220,7 +236,10 @@ require "bcdice/game_system/SwordWorld2_0_SimplifiedChinese"
220
236
  require "bcdice/game_system/SwordWorld2_5_SimplifiedChinese"
221
237
  require "bcdice/game_system/TalesFromTheLoop"
222
238
  require "bcdice/game_system/TenkaRyouran"
239
+ require "bcdice/game_system/TensaiGunshiNiNaro"
240
+ require "bcdice/game_system/TheOneRing2nd"
223
241
  require "bcdice/game_system/TherapieSein"
242
+ require "bcdice/game_system/TheUnofficialHollowKnightRPG"
224
243
  require "bcdice/game_system/TokumeiTenkousei"
225
244
  require "bcdice/game_system/TokyoGhostResearch"
226
245
  require "bcdice/game_system/TokyoNova"
@@ -228,10 +247,12 @@ require "bcdice/game_system/Torg"
228
247
  require "bcdice/game_system/Torg1_5"
229
248
  require "bcdice/game_system/TorgEternity"
230
249
  require "bcdice/game_system/ToshiakiHolyGrailWar"
250
+ require "bcdice/game_system/TrailOfCthulhu"
231
251
  require "bcdice/game_system/TrinitySeven"
232
252
  require "bcdice/game_system/TunnelsAndTrolls"
233
253
  require "bcdice/game_system/TwilightGunsmoke"
234
254
  require "bcdice/game_system/UnsungDuet"
255
+ require "bcdice/game_system/UnsungDuet_Korean"
235
256
  require "bcdice/game_system/Utakaze"
236
257
  require "bcdice/game_system/VampireTheMasquerade5th"
237
258
  require "bcdice/game_system/Ventangle"
@@ -248,5 +269,8 @@ require "bcdice/game_system/WorldsEndFrontline"
248
269
  require "bcdice/game_system/YankeeYogSothoth"
249
270
  require "bcdice/game_system/YearZeroEngine"
250
271
  require "bcdice/game_system/Yggdrasill"
272
+ require "bcdice/game_system/Yotabana"
251
273
  require "bcdice/game_system/ZettaiReido"
252
274
  require "bcdice/game_system/ZombiLine"
275
+ require "bcdice/game_system/FinalFantasyXIV"
276
+ require "bcdice/game_system/FinalFantasyXIV_English"
data/lib/bcdice/loader.rb CHANGED
@@ -8,7 +8,7 @@ module BCDice
8
8
  # @param id [String] ID
9
9
  # @return [Class, nil]
10
10
  def game_system_class(id)
11
- all_game_systems.find { |game_system| game_system::ID == id }
11
+ all_game_systems.find { |game_system| id == game_system::ID }
12
12
  end
13
13
 
14
14
  # ゲームシステムのクラス一覧を返す
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BCDice
4
- VERSION = "3.12.0"
4
+ VERSION = "3.14.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcdice
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.12.0
4
+ version: 3.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SAKATA Sinji
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2024-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.8.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: racc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.7.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.7.3
27
41
  description: BCDice is a rolling dice engine for TRPG
28
42
  email:
29
43
  - ysakasin@gmail.com
@@ -37,12 +51,15 @@ files:
37
51
  - i18n/Amadeus/ja_jp.yml
38
52
  - i18n/Amadeus/ko_kr.yml
39
53
  - i18n/Arianrhod/ja_jp.yml
54
+ - i18n/Arianrhod/ko_kr.yml
40
55
  - i18n/BeginningIdol/ja_jp.yml
41
56
  - i18n/BeginningIdol/ko_kr.yml
57
+ - i18n/Cthulhu/en_us.yml
42
58
  - i18n/Cthulhu/ja_jp.yml
43
59
  - i18n/Cthulhu/ko_kr.yml
44
60
  - i18n/Cthulhu/zh_hans.yml
45
61
  - i18n/Cthulhu/zh_hant.yml
62
+ - i18n/CyberpunkRed/ja_jp.yml
46
63
  - i18n/DetatokoSaga/ja_jp.yml
47
64
  - i18n/DetatokoSaga/ko_kr.yml
48
65
  - i18n/DoubleCross/ja_jp.yml
@@ -52,6 +69,8 @@ files:
52
69
  - i18n/Emoklore/ja_jp.yml
53
70
  - i18n/Fiasco/ja_jp.yml
54
71
  - i18n/Fiasco/ko_kr.yml
72
+ - i18n/FinalFantasyXIV/en_us.yml
73
+ - i18n/FinalFantasyXIV/ja_jp.yml
55
74
  - i18n/FutariSousa/ja_jp.yml
56
75
  - i18n/FutariSousa/ko_kr.yml
57
76
  - i18n/Insane/ja_jp.yml
@@ -60,6 +79,7 @@ files:
60
79
  - i18n/Kamigakari/ko_kr.yml
61
80
  - i18n/KillDeathBusiness/ja_jp.yml
62
81
  - i18n/KillDeathBusiness/ko_kr.yml
82
+ - i18n/KizunaBullet/ja_jp.yml
63
83
  - i18n/LogHorizon/ja_jp.yml
64
84
  - i18n/LogHorizon/ko_kr.yml
65
85
  - i18n/MagicaLogia/ja_jp.yml
@@ -70,6 +90,7 @@ files:
70
90
  - i18n/Nechronica/ja_jp.yml
71
91
  - i18n/Nechronica/ko_kr.yml
72
92
  - i18n/NinjaSlayer2/ja_jp.yml
93
+ - i18n/SkynautsBouken/ja_jp.yml
73
94
  - i18n/StellarKnights/ja_jp.yml
74
95
  - i18n/StellarKnights/ko_kr.yml
75
96
  - i18n/StratoShout/ja_jp.yml
@@ -80,6 +101,10 @@ files:
80
101
  - i18n/SwordWorld2_0/zh_hans.yml
81
102
  - i18n/SwordWorld2_5/ja_jp.yml
82
103
  - i18n/SwordWorld2_5/zh_hans.yml
104
+ - i18n/TensaiGunshiNiNaro/ja_jp.yml
105
+ - i18n/UnsungDuet/ja_jp.yml
106
+ - i18n/UnsungDuet/ko_kr.yml
107
+ - i18n/en_us.yml
83
108
  - i18n/ja_jp.yml
84
109
  - i18n/ko_kr.yml
85
110
  - i18n/zh_hans.yml
@@ -140,6 +165,7 @@ files:
140
165
  - lib/bcdice/game_system.rb
141
166
  - lib/bcdice/game_system/AFF2e.rb
142
167
  - lib/bcdice/game_system/AceKillerGene.rb
168
+ - lib/bcdice/game_system/Agnostos.rb
143
169
  - lib/bcdice/game_system/Ainecadette.rb
144
170
  - lib/bcdice/game_system/Airgetlamh.rb
145
171
  - lib/bcdice/game_system/AlchemiaStruggle.rb
@@ -149,9 +175,12 @@ files:
149
175
  - lib/bcdice/game_system/Amadeus.rb
150
176
  - lib/bcdice/game_system/Amadeus_Korean.rb
151
177
  - lib/bcdice/game_system/AngelGear.rb
178
+ - lib/bcdice/game_system/AniMalus.rb
152
179
  - lib/bcdice/game_system/AnimaAnimus.rb
153
180
  - lib/bcdice/game_system/Aoharubaan.rb
154
181
  - lib/bcdice/game_system/Arianrhod.rb
182
+ - lib/bcdice/game_system/Arianrhod_Korean.rb
183
+ - lib/bcdice/game_system/ArknightsFan.rb
155
184
  - lib/bcdice/game_system/ArsMagica.rb
156
185
  - lib/bcdice/game_system/AssaultEngine.rb
157
186
  - lib/bcdice/game_system/Avandner.rb
@@ -165,6 +194,7 @@ files:
165
194
  - lib/bcdice/game_system/BeginningIdol.rb
166
195
  - lib/bcdice/game_system/BeginningIdol2022.rb
167
196
  - lib/bcdice/game_system/BeginningIdol_Korean.rb
197
+ - lib/bcdice/game_system/BlackJacket.rb
168
198
  - lib/bcdice/game_system/BladeOfArcana.rb
169
199
  - lib/bcdice/game_system/BlindMythos.rb
170
200
  - lib/bcdice/game_system/BloodCrusade.rb
@@ -186,6 +216,7 @@ files:
186
216
  - lib/bcdice/game_system/Cthulhu7th_Korean.rb
187
217
  - lib/bcdice/game_system/CthulhuTech.rb
188
218
  - lib/bcdice/game_system/Cthulhu_ChineseTraditional.rb
219
+ - lib/bcdice/game_system/Cthulhu_English.rb
189
220
  - lib/bcdice/game_system/Cthulhu_Korean.rb
190
221
  - lib/bcdice/game_system/Cthulhu_SimplifiedChinese.rb
191
222
  - lib/bcdice/game_system/CyberpunkRed.rb
@@ -200,6 +231,7 @@ files:
200
231
  - lib/bcdice/game_system/DetatokoSaga_Korean.rb
201
232
  - lib/bcdice/game_system/DiceBot.rb
202
233
  - lib/bcdice/game_system/DiceOfTheDead.rb
234
+ - lib/bcdice/game_system/DivineCharger.rb
203
235
  - lib/bcdice/game_system/DoubleCross.rb
204
236
  - lib/bcdice/game_system/DoubleCross_Korean.rb
205
237
  - lib/bcdice/game_system/Dracurouge.rb
@@ -220,6 +252,9 @@ files:
220
252
  - lib/bcdice/game_system/Fiasco.rb
221
253
  - lib/bcdice/game_system/Fiasco_Korean.rb
222
254
  - lib/bcdice/game_system/FilledWith.rb
255
+ - lib/bcdice/game_system/FinalFantasyXIV.rb
256
+ - lib/bcdice/game_system/FinalFantasyXIV_English.rb
257
+ - lib/bcdice/game_system/FullFace.rb
223
258
  - lib/bcdice/game_system/FullMetalPanic.rb
224
259
  - lib/bcdice/game_system/FutariSousa.rb
225
260
  - lib/bcdice/game_system/FutariSousa_Korean.rb
@@ -251,6 +286,7 @@ files:
251
286
  - lib/bcdice/game_system/InfiniteFantasia.rb
252
287
  - lib/bcdice/game_system/Insane.rb
253
288
  - lib/bcdice/game_system/Insane_Korean.rb
289
+ - lib/bcdice/game_system/InvisibleLiar.rb
254
290
  - lib/bcdice/game_system/Irisbane.rb
255
291
  - lib/bcdice/game_system/IthaWenUa.rb
256
292
  - lib/bcdice/game_system/JamesBond.rb
@@ -264,8 +300,11 @@ files:
264
300
  - lib/bcdice/game_system/KemonoNoMori.rb
265
301
  - lib/bcdice/game_system/KillDeathBusiness.rb
266
302
  - lib/bcdice/game_system/KillDeathBusiness_Korean.rb
303
+ - lib/bcdice/game_system/KizunaBullet.rb
267
304
  - lib/bcdice/game_system/KurayamiCrying.rb
268
305
  - lib/bcdice/game_system/Kutulu.rb
306
+ - lib/bcdice/game_system/KyokoShinshoku.rb
307
+ - lib/bcdice/game_system/Liminal.rb
269
308
  - lib/bcdice/game_system/LiveraDoll.rb
270
309
  - lib/bcdice/game_system/LogHorizon.rb
271
310
  - lib/bcdice/game_system/LogHorizon_Korean.rb
@@ -283,6 +322,7 @@ files:
283
322
  - lib/bcdice/game_system/MetallicGuardian.rb
284
323
  - lib/bcdice/game_system/MonotoneMuseum.rb
285
324
  - lib/bcdice/game_system/MonotoneMuseum_Korean.rb
325
+ - lib/bcdice/game_system/NRR.rb
286
326
  - lib/bcdice/game_system/NSSQ.rb
287
327
  - lib/bcdice/game_system/Nechronica.rb
288
328
  - lib/bcdice/game_system/Nechronica_Korean.rb
@@ -303,6 +343,7 @@ files:
303
343
  - lib/bcdice/game_system/Paranoia.rb
304
344
  - lib/bcdice/game_system/ParanoiaRebooted.rb
305
345
  - lib/bcdice/game_system/ParasiteBlood.rb
346
+ - lib/bcdice/game_system/PastFutureParadox.rb
306
347
  - lib/bcdice/game_system/Pathfinder.rb
307
348
  - lib/bcdice/game_system/Peekaboo.rb
308
349
  - lib/bcdice/game_system/Pendragon.rb
@@ -338,7 +379,9 @@ files:
338
379
  - lib/bcdice/game_system/ShinobiGami.rb
339
380
  - lib/bcdice/game_system/Shiranui.rb
340
381
  - lib/bcdice/game_system/ShoujoTenrankai.rb
382
+ - lib/bcdice/game_system/ShuumatsuBargainWars.rb
341
383
  - lib/bcdice/game_system/ShuumatsuKikou.rb
384
+ - lib/bcdice/game_system/Siren.rb
342
385
  - lib/bcdice/game_system/Skynauts.rb
343
386
  - lib/bcdice/game_system/SkynautsBouken.rb
344
387
  - lib/bcdice/game_system/StarryDolls.rb
@@ -358,6 +401,9 @@ files:
358
401
  - lib/bcdice/game_system/SwordWorld_SimplifiedChinese.rb
359
402
  - lib/bcdice/game_system/TalesFromTheLoop.rb
360
403
  - lib/bcdice/game_system/TenkaRyouran.rb
404
+ - lib/bcdice/game_system/TensaiGunshiNiNaro.rb
405
+ - lib/bcdice/game_system/TheOneRing2nd.rb
406
+ - lib/bcdice/game_system/TheUnofficialHollowKnightRPG.rb
361
407
  - lib/bcdice/game_system/TherapieSein.rb
362
408
  - lib/bcdice/game_system/TokumeiTenkousei.rb
363
409
  - lib/bcdice/game_system/TokyoGhostResearch.rb
@@ -366,10 +412,12 @@ files:
366
412
  - lib/bcdice/game_system/Torg1_5.rb
367
413
  - lib/bcdice/game_system/TorgEternity.rb
368
414
  - lib/bcdice/game_system/ToshiakiHolyGrailWar.rb
415
+ - lib/bcdice/game_system/TrailOfCthulhu.rb
369
416
  - lib/bcdice/game_system/TrinitySeven.rb
370
417
  - lib/bcdice/game_system/TunnelsAndTrolls.rb
371
418
  - lib/bcdice/game_system/TwilightGunsmoke.rb
372
419
  - lib/bcdice/game_system/UnsungDuet.rb
420
+ - lib/bcdice/game_system/UnsungDuet_Korean.rb
373
421
  - lib/bcdice/game_system/Utakaze.rb
374
422
  - lib/bcdice/game_system/VampireTheMasquerade5th.rb
375
423
  - lib/bcdice/game_system/Ventangle.rb
@@ -386,6 +434,7 @@ files:
386
434
  - lib/bcdice/game_system/YankeeYogSothoth.rb
387
435
  - lib/bcdice/game_system/YearZeroEngine.rb
388
436
  - lib/bcdice/game_system/Yggdrasill.rb
437
+ - lib/bcdice/game_system/Yotabana.rb
389
438
  - lib/bcdice/game_system/ZettaiReido.rb
390
439
  - lib/bcdice/game_system/ZombiLine.rb
391
440
  - lib/bcdice/game_system/beginning_idol/accessories_table.rb
@@ -409,6 +458,7 @@ files:
409
458
  - lib/bcdice/game_system/filled_with/event_tables.rb
410
459
  - lib/bcdice/game_system/filled_with/lot_tables.rb
411
460
  - lib/bcdice/game_system/filled_with/tresure_tables.rb
461
+ - lib/bcdice/game_system/kizuna_bullet/tables.rb
412
462
  - lib/bcdice/game_system/meikyu_kingdom/item_table.rb
413
463
  - lib/bcdice/game_system/meikyu_kingdom/kingdom_name_table.rb
414
464
  - lib/bcdice/game_system/meikyu_kingdom/landscape_table.rb
@@ -443,7 +493,7 @@ homepage: https://bcdice.org
443
493
  licenses:
444
494
  - BSD-3-Clause
445
495
  metadata:
446
- allowed_push_host: https://rubygems.org/
496
+ allowed_push_host: https://rubygems.org
447
497
  homepage_uri: https://bcdice.org
448
498
  source_code_uri: https://github.com/bcdice/BCDice
449
499
  changelog_uri: https://github.com/bcdice/BCDice/blob/master/CHANGELOG.md
@@ -455,14 +505,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
455
505
  requirements:
456
506
  - - ">="
457
507
  - !ruby/object:Gem::Version
458
- version: '2.6'
508
+ version: '2.7'
459
509
  required_rubygems_version: !ruby/object:Gem::Requirement
460
510
  requirements:
461
511
  - - ">="
462
512
  - !ruby/object:Gem::Version
463
513
  version: '0'
464
514
  requirements: []
465
- rubygems_version: 3.4.1
515
+ rubygems_version: 3.5.6
466
516
  signing_key:
467
517
  specification_version: 4
468
518
  summary: BCDice is a rolling dice engine for TRPG