Skip to content

Commit

Permalink
Cop
Browse files Browse the repository at this point in the history
  • Loading branch information
ysakasin committed Jan 24, 2024
1 parent 2ba0f8d commit 7a0e207
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/bcdice/game_system/AniMalus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def resolute_attacking(command)
dice = @randomizer.roll_barabara(3, 6).sort
dice_text = dice.join(",")
success_num = dice.count { |val| val <= num_target }
is_critical = (dice[0] == 1 && dice[1] == 2 && dice[2] == 3)
is_fumble = (dice[0] == 4 && dice[1] == 5 && dice[2] == 6)
is_critical = dice[0] == 1 && dice[1] == 2 && dice[2] == 3
is_fumble = dice[0] == 4 && dice[1] == 5 && dice[2] == 6
damage1 = dice.max
damage2 = dice.max
if dice[0] == dice[1] && dice[1] == dice[2] && dice[2] <= num_target
Expand Down Expand Up @@ -161,8 +161,8 @@ def resolute_guarding(command)
dice = @randomizer.roll_barabara(3, 6).sort
dice_text = dice.join(",")
success_num = dice.count(num_target)
is_critical = (dice[0] == 1 && dice[1] == 2 && dice[2] == 3)
is_fumble = (dice[0] == 4 && dice[1] == 5 && dice[2] == 6)
is_critical = dice[0] == 1 && dice[1] == 2 && dice[2] == 3
is_fumble = dice[0] == 4 && dice[1] == 5 && dice[2] == 6

return Result.new.tap do |result|
result.critical = is_critical
Expand Down

0 comments on commit 7a0e207

Please sign in to comment.