From 7a0e2070f24378cfebe143504d09313b52266701 Mon Sep 17 00:00:00 2001 From: SAKATA Sinji Date: Wed, 24 Jan 2024 22:19:17 +0900 Subject: [PATCH] Cop --- lib/bcdice/game_system/AniMalus.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bcdice/game_system/AniMalus.rb b/lib/bcdice/game_system/AniMalus.rb index 25c878863..8979323e2 100644 --- a/lib/bcdice/game_system/AniMalus.rb +++ b/lib/bcdice/game_system/AniMalus.rb @@ -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 @@ -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