Skip to content

Commit 4909fe1

Browse files
authored
Merge pull request #64 from bcdice/update_bcdice_to_3.12.0
⬆️ Update BCDice to 3.12.0
2 parents 4113291 + 1552afb commit 4909fe1

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

BCDice

Submodule BCDice updated 41 files

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: BCDice
33
specs:
4-
bcdice (3.11.0)
4+
bcdice (3.12.0)
55
i18n (~> 1.8.5)
66

77
GEM

patch.diff

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ diff --git a/lib/bcdice/game_system/EclipsePhase.rb b/lib/bcdice/game_system/Ecl
555555
diff --git a/lib/bcdice/game_system/Emoklore.rb b/lib/bcdice/game_system/Emoklore.rb
556556
--- a/lib/bcdice/game_system/Emoklore.rb
557557
+++ b/lib/bcdice/game_system/Emoklore.rb
558-
@@ -67,7 +67,7 @@ module BCDice
559-
success_value = 2 * critical + success - fumble
558+
@@ -65,7 +65,7 @@ module BCDice
559+
success_value = critical + success - fumble
560560
result = compare_result(success_value)
561561

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

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

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

1062+
diff --git a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
1063+
--- a/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
1064+
+++ b/lib/bcdice/game_system/WerewolfTheApocalypse5th.rb
1065+
@@ -76,7 +76,7 @@ module BCDice
1066+
if rage_dice_pool
1067+
rage_dice_text, rage_success_dice, rage_ten_dice, brutal_result_dice = make_dice_roll(rage_dice_pool)
1068+
1069+
- brutal_outcome = brutal_result_dice / 2
1070+
+ brutal_outcome = (brutal_result_dice / 2).floor
1071+
ten_dice += rage_ten_dice
1072+
success_dice += rage_success_dice
1073+
1074+
@@ -155,7 +155,7 @@ module BCDice
1075+
1076+
def get_critical_success(ten_dice)
1077+
# 10の目が2個毎に追加2成功
1078+
- return ((ten_dice / 2) * 2)
1079+
+ return ((ten_dice / 2).floor * 2)
1080+
end
1081+
1082+
def make_dice_roll(dice_pool)
10621083
diff --git a/lib/bcdice/game_system/Yggdrasill.rb b/lib/bcdice/game_system/Yggdrasill.rb
10631084
--- a/lib/bcdice/game_system/Yggdrasill.rb
10641085
+++ b/lib/bcdice/game_system/Yggdrasill.rb

0 commit comments

Comments
 (0)