From 5257a261894cef402fbbe2362a11ba3d8f0b0ecc Mon Sep 17 00:00:00 2001 From: MY4k Date: Sun, 29 Mar 2026 02:52:50 +0900 Subject: [PATCH] =?UTF-8?q?WorldsEndFrontline::=E9=9F=93=E5=9B=BD=E8=AA=9E?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bcdice/game_system.rb | 1 + .../game_system/WorldsEndFrontline_Korean.rb | 26 +++++ test/data/WorldsEndFrontline_Korean.toml | 110 ++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 lib/bcdice/game_system/WorldsEndFrontline_Korean.rb create mode 100644 test/data/WorldsEndFrontline_Korean.toml diff --git a/lib/bcdice/game_system.rb b/lib/bcdice/game_system.rb index a854d6138..205b6d28d 100644 --- a/lib/bcdice/game_system.rb +++ b/lib/bcdice/game_system.rb @@ -305,6 +305,7 @@ require "bcdice/game_system/WitchQuest" require "bcdice/game_system/WorldOfDarkness" require "bcdice/game_system/WorldsEndFrontline" +require "bcdice/game_system/WorldsEndFrontline_Korean" require "bcdice/game_system/YankeeMustDie" require "bcdice/game_system/YankeeYogSothoth" require "bcdice/game_system/YearZeroEngine" diff --git a/lib/bcdice/game_system/WorldsEndFrontline_Korean.rb b/lib/bcdice/game_system/WorldsEndFrontline_Korean.rb new file mode 100644 index 000000000..b932d47b5 --- /dev/null +++ b/lib/bcdice/game_system/WorldsEndFrontline_Korean.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +require 'bcdice/game_system/WorldsEndFrontline' + +module BCDice + module GameSystem + class WorldsEndFrontline_Korean < WorldsEndFrontline + # ゲームシステムの識別子 + ID = 'WorldsEndFrontline:Korean' + + # ゲームシステム名 + NAME = '월드 엔드 프론트라인' + + # ゲームシステム名の読みがな + SORT_KEY = '国際化:Korean:월드 엔드 프론트라인' + + register_prefix_from_super_class() + + def initialize(command) + super(command) + + @locale = :ko_kr + end + end + end +end diff --git a/test/data/WorldsEndFrontline_Korean.toml b/test/data/WorldsEndFrontline_Korean.toml new file mode 100644 index 000000000..ff8604457 --- /dev/null +++ b/test/data/WorldsEndFrontline_Korean.toml @@ -0,0 +1,110 @@ +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "4DC" +output = "(4DC) > [1,2,3,4] > 4" +rands = [ + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "3DC" +output = "(3DC) > [3,4,5] > 5" +rands = [ + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, + { sides = 6, value = 5 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "4DC" +output = "(4DC) > [1,2,2,4] > 《트라이엄프》(*2) > 4*2 > 8" +critical = true +rands = [ + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 2 }, + { sides = 6, value = 4 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "5DC" +output = "(5DC) > [2,2,5,5,5] > 《트라이엄프》(*3) > 5*3 > 15" +critical = true +rands = [ + { sides = 6, value = 2 }, + { sides = 6, value = 2 }, + { sides = 6, value = 5 }, + { sides = 6, value = 5 }, + { sides = 6, value = 5 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "4DC+1" +output = "(4DC+1) > [1,2,3,4]+1 > 4+1 > 5" +rands = [ + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "4DC+1+2" +output = "(4DC+3) > [1,2,3,4]+3 > 4+3 > 7" +rands = [ + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "5DC+1" +output = "(5DC+1) > [2,2,5,5,5]+1 > 《트라이엄프》(*3) > 5*3+1 > 16" +critical = true +rands = [ + { sides = 6, value = 2 }, + { sides = 6, value = 5 }, + { sides = 6, value = 2 }, + { sides = 6, value = 5 }, + { sides = 6, value = 5 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "10DC" +output = "(10DC) > [1,1,2,2,3,3,4,4,5,6] > 《트라이엄프》(*2) > 6*2 > 12" +critical = true +rands = [ + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, + { sides = 6, value = 5 }, + { sides = 6, value = 6 }, + { sides = 6, value = 1 }, + { sides = 6, value = 2 }, + { sides = 6, value = 3 }, + { sides = 6, value = 4 }, +] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "DC" +output = "" +rands = [] + +[[ test ]] +game_system = "WorldsEndFrontline:Korean" +input = "DC+1" +output = "" +rands = []