Skip to content

Commit

Permalink
Merge pull request #640 from h-mikisato/feature/sw_transcendent_criti…
Browse files Browse the repository at this point in the history
…cal_continue

[SwordWorld2.0/2.5] 超越判定の際に自動的成功した場合でも、達成値算出のために振り足しを行う
  • Loading branch information
ysakasin authored Sep 2, 2023
2 parents 1ee4af2 + 22aaf5f commit 825b399
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/bcdice/game_system/sword_world/transcendent_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def execute(randomizer)
fumble = first_value_group == [1, 1]
critical = first_value_group == [6, 6]

if !fumble && !critical
unless fumble
while sum_of_dice(value_groups.last) >= @critical_value
value_groups.push(randomizer.roll_barabara(2, 6))
end
Expand Down
8 changes: 6 additions & 2 deletions test/data/SwordWorld2_0.toml
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,14 @@ rands = [
[[ test ]]
game_system = "SwordWorld2.0"
input = "2D6@10+31>=30"
output = "(2D6@10+31>=30) > 12[6,6]+31 > 43 > 自動的成功"
output = "(2D6@10+31>=30) > 20[6,6][2,6]+31 > 51 > 自動的成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down Expand Up @@ -587,12 +589,14 @@ rands = []
[[ test ]]
game_system = "SwordWorld2.0"
input = "2d6@10+11>30"
output = "(2D6@10+11>30) > 12[6,6]+11 > 23 > 自動的成功"
output = "(2D6@10+11>30) > 20[6,6][2,6]+11 > 31 > 自動的成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down
8 changes: 6 additions & 2 deletions test/data/SwordWorld2_0_SimplifiedChinese.toml
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,14 @@ rands = [
[[ test ]]
game_system = "SwordWorld2.0:SimplifiedChinese"
input = "2D6@10+31>=30"
output = "(2D6@10+31>=30) > 12[6,6]+31 > 43 > 自动成功"
output = "(2D6@10+31>=30) > 20[6,6][2,6]+31 > 51 > 自动成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down Expand Up @@ -587,12 +589,14 @@ rands = []
[[ test ]]
game_system = "SwordWorld2.0:SimplifiedChinese"
input = "2d6@10+11>30"
output = "(2D6@10+11>30) > 12[6,6]+11 > 23 > 自动成功"
output = "(2D6@10+11>30) > 20[6,6][2,6]+11 > 31 > 自动成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down
8 changes: 6 additions & 2 deletions test/data/SwordWorld2_5.toml
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,14 @@ rands = [
[[ test ]]
game_system = "SwordWorld2.5"
input = "2D6@10+31>=30"
output = "(2D6@10+31>=30) > 12[6,6]+31 > 43 > 自動的成功"
output = "(2D6@10+31>=30) > 20[6,6][2,6]+31 > 51 > 自動的成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down Expand Up @@ -683,12 +685,14 @@ rands = []
[[ test ]]
game_system = "SwordWorld2.5"
input = "2d6@10+11>30"
output = "(2D6@10+11>30) > 12[6,6]+11 > 23 > 自動的成功"
output = "(2D6@10+11>30) > 20[6,6][2,6]+11 > 31 > 自動的成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down
8 changes: 6 additions & 2 deletions test/data/SwordWorld2_5_SimplifiedChinese.toml
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,14 @@ rands = [
[[ test ]]
game_system = "SwordWorld2.5:SimplifiedChinese"
input = "2D6@10+31>=30"
output = "(2D6@10+31>=30) > 12[6,6]+31 > 43 > 自动成功"
output = "(2D6@10+31>=30) > 20[6,6][2,6]+31 > 51 > 自动成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down Expand Up @@ -683,12 +685,14 @@ rands = []
[[ test ]]
game_system = "SwordWorld2.5:SimplifiedChinese"
input = "2d6@10+11>30"
output = "(2D6@10+11>30) > 12[6,6]+11 > 23 > 自动成功"
output = "(2D6@10+11>30) > 20[6,6][2,6]+11 > 31 > 自动成功"
success = true
critical = true
rands = [
{ sides = 6, value = 6 },
{ sides = 6, value = 6 },
{ sides = 6, value = 2 },
{ sides = 6, value = 6 },
]

[[ test ]]
Expand Down

0 comments on commit 825b399

Please sign in to comment.