Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Update BCDice to 3.12.0 #64

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BCDice
Submodule BCDice updated 41 files
+31 −0 CHANGELOG.md
+1,625 −529 i18n/FutariSousa/ko_kr.yml
+393 −258 i18n/Insane/ko_kr.yml
+34 −0 i18n/NinjaSlayer2/ja_jp.yml
+4 −0 lib/bcdice/game_system.rb
+4 −6 lib/bcdice/game_system/Emoklore.rb
+44 −19 lib/bcdice/game_system/FutariSousa_Korean.rb
+10 −3 lib/bcdice/game_system/HunterTheReckoning5th.rb
+11 −11 lib/bcdice/game_system/Insane_Korean.rb
+251 −0 lib/bcdice/game_system/KamitsubakiCityUnderConstructionNarrative.rb
+3 −1 lib/bcdice/game_system/NinjaSlayer.rb
+299 −0 lib/bcdice/game_system/NinjaSlayer2.rb
+9 −6 lib/bcdice/game_system/RuneQuestRoleplayingInGlorantha.rb
+5 −1 lib/bcdice/game_system/SajinsenkiAGuS.rb
+285 −0 lib/bcdice/game_system/SajinsenkiAGuS2E.rb
+1 −1 lib/bcdice/game_system/SkynautsBouken.rb
+16 −0 lib/bcdice/game_system/SwordWorld.rb
+8 −1 lib/bcdice/game_system/SwordWorld2_5.rb
+10 −4 lib/bcdice/game_system/VampireTheMasquerade5th.rb
+173 −0 lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
+3 −0 lib/bcdice/game_system/sword_world/rating_options.rb
+9 −0 lib/bcdice/game_system/sword_world/rating_parsed.rb
+28 −2 lib/bcdice/game_system/sword_world/rating_parser.y
+1 −1 lib/bcdice/game_system/sword_world/transcendent_test.rb
+1 −1 lib/bcdice/version.rb
+18 −0 test/data/Emoklore.toml
+456 −43 test/data/FutariSousa_Korean.toml
+42 −6 test/data/HunterTheReckoning5th.toml
+35 −35 test/data/Insane_Korean.toml
+1,069 −0 test/data/KamitsubakiCityUnderConstructionNarrative.toml
+243 −0 test/data/NinjaSlayer2.toml
+24 −0 test/data/RuneQuestRoleplayingInGlorantha.toml
+5 −5 test/data/SajinsenkiAGuS.toml
+470 −0 test/data/SajinsenkiAGuS2E.toml
+1 −1 test/data/SkynautsBouken.toml
+6 −2 test/data/SwordWorld2_0.toml
+6 −2 test/data/SwordWorld2_0_SimplifiedChinese.toml
+113 −2 test/data/SwordWorld2_5.toml
+6 −2 test/data/SwordWorld2_5_SimplifiedChinese.toml
+143 −22 test/data/VampireTheMasquerade5th.toml
+2,926 −0 test/data/WerewolfTheApocalypse5th.toml
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: BCDice
specs:
bcdice (3.11.0)
bcdice (3.12.0)
i18n (~> 1.8.5)

GEM
Expand Down
29 changes: 25 additions & 4 deletions patch.diff
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,8 @@ diff --git a/lib/bcdice/game_system/EclipsePhase.rb b/lib/bcdice/game_system/Ecl
diff --git a/lib/bcdice/game_system/Emoklore.rb b/lib/bcdice/game_system/Emoklore.rb
--- a/lib/bcdice/game_system/Emoklore.rb
+++ b/lib/bcdice/game_system/Emoklore.rb
@@ -67,7 +67,7 @@ module BCDice
success_value = 2 * critical + success - fumble
@@ -65,7 +65,7 @@ module BCDice
success_value = critical + success - fumble
result = compare_result(success_value)

- result.text = "#{values} > #{success_value} > #{translate('Emoklore.success_count', count: success_value)} #{result.text}"
Expand Down Expand Up @@ -693,7 +693,7 @@ diff --git a/lib/bcdice/game_system/Hieizan.rb b/lib/bcdice/game_system/Hieizan.
diff --git a/lib/bcdice/game_system/HunterTheReckoning5th.rb b/lib/bcdice/game_system/HunterTheReckoning5th.rb
--- a/lib/bcdice/game_system/HunterTheReckoning5th.rb
+++ b/lib/bcdice/game_system/HunterTheReckoning5th.rb
@@ -134,7 +134,7 @@ module BCDice
@@ -141,7 +141,7 @@ module BCDice

def get_critical_success(ten_dice)
# 10の目が2個毎に追加2成功
Expand Down Expand Up @@ -989,7 +989,7 @@ diff --git a/lib/bcdice/game_system/TunnelsAndTrolls.rb b/lib/bcdice/game_system
diff --git a/lib/bcdice/game_system/VampireTheMasquerade5th.rb b/lib/bcdice/game_system/VampireTheMasquerade5th.rb
--- a/lib/bcdice/game_system/VampireTheMasquerade5th.rb
+++ b/lib/bcdice/game_system/VampireTheMasquerade5th.rb
@@ -157,7 +157,7 @@ module BCDice
@@ -163,7 +163,7 @@ module BCDice

def get_critical_success(ten_dice)
# 10の目が2個毎に追加2成功
Expand Down Expand Up @@ -1059,6 +1059,27 @@ diff --git a/lib/bcdice/game_system/Warhammer4.rb b/lib/bcdice/game_system/Warha
end
end

diff --git a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
--- a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
+++ b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
@@ -76,7 +76,7 @@ module BCDice
if rage_dice_pool
rage_dice_text, rage_success_dice, rage_ten_dice, brutal_result_dice = make_dice_roll(rage_dice_pool)

- brutal_outcome = brutal_result_dice / 2
+ brutal_outcome = (brutal_result_dice / 2).floor
ten_dice += rage_ten_dice
success_dice += rage_success_dice

@@ -155,7 +155,7 @@ module BCDice

def get_critical_success(ten_dice)
# 10の目が2個毎に追加2成功
- return ((ten_dice / 2) * 2)
+ return ((ten_dice / 2).floor * 2)
end

def make_dice_roll(dice_pool)
diff --git a/lib/bcdice/game_system/Yggdrasill.rb b/lib/bcdice/game_system/Yggdrasill.rb
--- a/lib/bcdice/game_system/Yggdrasill.rb
+++ b/lib/bcdice/game_system/Yggdrasill.rb
Expand Down