Skip to content

Commit aac8819

Browse files
committed
シノビガミ:Lintエラーを修正
1 parent 612b64d commit aac8819

2 files changed

Lines changed: 42 additions & 43 deletions

File tree

lib/bcdice/game_system/ShinobiGami.rb

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def translate_tables(locale)
190190
nmt_pretext = I18n.translate("ShinobiGami.table.NMT.pretext", locale: locale)
191191
mt_items = I18n.translate("ShinobiGami.table.MT.items", locale: locale)
192192
nmt_items = I18n.translate("ShinobiGami.table.NMT.items", locale: locale)
193-
193+
194194
dsa = DiceTable::Table.from_i18n("ShinobiGami.table.DSA", locale)
195195
dsb = DiceTable::Table.from_i18n("ShinobiGami.table.DSB", locale)
196196
dsc = DiceTable::Table.from_i18n("ShinobiGami.table.DSC", locale)
@@ -212,7 +212,7 @@ def translate_tables(locale)
212212
mt_items[5],
213213
]
214214
),
215-
'MTR' => DiceTable::Table.from_i18n("ShinobiGami.table.MTR", locale),
215+
'MTR' => DiceTable::Table.from_i18n("ShinobiGami.table.MTR", locale),
216216
'NMT' => DiceTable::ChainTable.new(
217217
I18n.translate("ShinobiGami.table.NMT.name", locale: locale),
218218
'1D6',
@@ -226,23 +226,23 @@ def translate_tables(locale)
226226
]
227227
),
228228
'NMTR' => DiceTable::Table.from_i18n("ShinobiGami.table.NMTR", locale),
229-
'FT' => DiceTable::Table.from_i18n("ShinobiGami.table.FT", locale),
230-
'OFT' => DiceTable::Table.from_i18n("ShinobiGami.table.OFT", locale),
231-
'KFT' => DiceTable::Table.from_i18n("ShinobiGami.table.KFT", locale),
232-
'ET' => DiceTable::Table.from_i18n("ShinobiGami.table.ET", locale),
233-
'WT' => DiceTable::Table.from_i18n("ShinobiGami.table.WT", locale),
234-
'OWT' => DiceTable::Table.from_i18n("ShinobiGami.table.OWT", locale),
235-
'KWT' => DiceTable::Table.from_i18n("ShinobiGami.table.KWT", locale),
236-
'GWT' => DiceTable::Table.from_i18n("ShinobiGami.table.GWT", locale),
237-
'OBT' => DiceTable::Table.from_i18n("ShinobiGami.table.OBT", locale),
238-
'BT' => DiceTable::Table.from_i18n("ShinobiGami.table.BT", locale),
239-
'PT' => DiceTable::Table.from_i18n("ShinobiGami.table.PT", locale),
229+
'FT' => DiceTable::Table.from_i18n("ShinobiGami.table.FT", locale),
230+
'OFT' => DiceTable::Table.from_i18n("ShinobiGami.table.OFT", locale),
231+
'KFT' => DiceTable::Table.from_i18n("ShinobiGami.table.KFT", locale),
232+
'ET' => DiceTable::Table.from_i18n("ShinobiGami.table.ET", locale),
233+
'WT' => DiceTable::Table.from_i18n("ShinobiGami.table.WT", locale),
234+
'OWT' => DiceTable::Table.from_i18n("ShinobiGami.table.OWT", locale),
235+
'KWT' => DiceTable::Table.from_i18n("ShinobiGami.table.KWT", locale),
236+
'GWT' => DiceTable::Table.from_i18n("ShinobiGami.table.GWT", locale),
237+
'OBT' => DiceTable::Table.from_i18n("ShinobiGami.table.OBT", locale),
238+
'BT' => DiceTable::Table.from_i18n("ShinobiGami.table.BT", locale),
239+
'PT' => DiceTable::Table.from_i18n("ShinobiGami.table.PT", locale),
240240
## 以下流派ブック
241-
'BNT' => DiceTable::Table.from_i18n("ShinobiGami.table.BNT", locale),
242-
'YWT' => DiceTable::Table.from_i18n("ShinobiGami.table.YWT", locale),
241+
'BNT' => DiceTable::Table.from_i18n("ShinobiGami.table.BNT", locale),
242+
'YWT' => DiceTable::Table.from_i18n("ShinobiGami.table.YWT", locale),
243243
'YWT1' => DiceTable::Table.from_i18n("ShinobiGami.table.YWT1", locale),
244244
'YWT2' => DiceTable::Table.from_i18n("ShinobiGami.table.YWT2", locale),
245-
'OTS' => DiceTable::Table.from_i18n("ShinobiGami.table.OTS", locale),
245+
'OTS' => DiceTable::Table.from_i18n("ShinobiGami.table.OTS", locale),
246246
'HRPT' => DiceTable::Table.from_i18n("ShinobiGami.table.HRPT", locale),
247247
'OTAT' => DiceTable::Table.from_i18n("ShinobiGami.table.OTAT", locale),
248248
'ONDT' => DiceTable::Table.from_i18n("ShinobiGami.table.ONDT", locale),
@@ -256,41 +256,41 @@ def translate_tables(locale)
256256
def translate_scene_tables(locale)
257257
{
258258
## 以下シーン表
259-
'ST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.ST", locale),
260-
'CST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.CST", locale),
261-
'MST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.MST", locale),
262-
'DST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.DST", locale),
263-
'TST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TST", locale),
264-
'NST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.NST", locale),
259+
'ST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.ST", locale),
260+
'CST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.CST", locale),
261+
'MST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.MST", locale),
262+
'DST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.DST", locale),
263+
'TST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TST", locale),
264+
'NST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.NST", locale),
265265
'TKST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TKST", locale),
266-
'KST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.KST", locale),
267-
'GST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.GST", locale),
266+
'KST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.KST", locale),
267+
'GST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.GST", locale),
268268
'GAST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.GAST", locale),
269269
'KYST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.KYST", locale),
270270
'JBST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.JBST", locale),
271271
'AKST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.AKST", locale),
272272
'CLST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.CLST", locale),
273273
'DXST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.DXST", locale),
274-
'HC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HC", locale),
275-
'HK' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HK", locale),
274+
'HC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HC", locale),
275+
'HK' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HK", locale),
276276
'HLST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HLST", locale),
277-
'HM' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HM", locale),
278-
'HO' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HO", locale),
279-
'HR' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HR", locale),
280-
'HS' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HS", locale),
281-
'HT' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HT", locale),
282-
'HY' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HY", locale),
277+
'HM' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HM", locale),
278+
'HO' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HO", locale),
279+
'HR' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HR", locale),
280+
'HS' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HS", locale),
281+
'HT' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HT", locale),
282+
'HY' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.HY", locale),
283283
'NTST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.NTST", locale),
284284
'PLST' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.PLST", locale),
285285
## 以下正忍記
286-
'TMT' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMT", locale),
287-
'TMG' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMG", locale),
288-
'TC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TC", locale),
289-
'TGS' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TGS", locale),
290-
'TRM' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TRM", locale),
291-
'TMC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMC", locale),
292-
'TKG' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TKG", locale),
293-
'TKH' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TKH", locale),
286+
'TMT' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMT", locale),
287+
'TMG' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMG", locale),
288+
'TC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TC", locale),
289+
'TGS' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TGS", locale),
290+
'TRM' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TRM", locale),
291+
'TMC' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TMC", locale),
292+
'TKG' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TKG", locale),
293+
'TKH' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.TKH", locale),
294294
## 以下流派ブック
295295
'OTFK' => DiceTable::Table.from_i18n("ShinobiGami.scene_table.OTFK", locale),
296296
}
@@ -318,7 +318,6 @@ def translate_demon_skill_tables_new(locale)
318318
def translate_rtt(locale)
319319
DiceTable::SaiFicSkillTable.from_i18n("ShinobiGami.RTT", locale)
320320
end
321-
322321
end
323322

324323
DEMON_SKILL_TABLES = translate_demon_skill_tables(:ja_jp).freeze
@@ -330,4 +329,4 @@ def translate_rtt(locale)
330329
register_prefix(RTT.prefixes.map { |k| "\\d*#{k}" }, TABLES.keys.map { |k| "\\d*#{k}" }, SCENE_TABLES.keys.map { |k| "\\d*#{k}" }, DEMON_SKILL_TABLES.keys.map { |k| "\\d*#{k}" }, DEMON_SKILL_TABLES_NEW.keys.map { |k| "\\d*#{k}" })
331330
end
332331
end
333-
end
332+
end

lib/bcdice/game_system/ShinobiGami_Korean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ def initialize(command)
9999
RTT = translate_rtt(:ko_kr)
100100
end
101101
end
102-
end
102+
end

0 commit comments

Comments
 (0)