Skip to content

Commit

Permalink
[StellarLife] Refactor: remove redundant to_i
Browse files Browse the repository at this point in the history
  • Loading branch information
ViVi committed Aug 18, 2021
1 parent 287f5b2 commit 8f56013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bcdice/game_system/StellarLife.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def getJudgeResult(command)
number.times do
dice = @randomizer.roll_once(10)
dice = 0 if dice == 10
if (dice + correction).to_i >= single || dice == triple then success += 1 end
if (dice + correction).to_i >= double || dice == triple then success += 1 end
if (dice + correction) >= single || dice == triple then success += 1 end
if (dice + correction) >= double || dice == triple then success += 1 end
if dice == triple then success += 1 end # unless triple == -1 3成功はダイス目一致時のみ
if dicetext == ""
dicetext = dice.to_s
Expand Down

0 comments on commit 8f56013

Please sign in to comment.