Skip to content

Commit

Permalink
Merge pull request #481 from ViVi-shark/features/fix_round_type-Stell…
Browse files Browse the repository at this point in the history
…arknights

[StellarKnights] 数式解釈時の round_type 指定が不適切だったのを修正
  • Loading branch information
ysakasin authored Jun 25, 2021
2 parents 2f4fc68 + 6164702 commit ebe0133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bcdice/game_system/StellarKnights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def eval_game_system_specific_command(command)
if (table = self.class::TABLES[command])
table.roll(@randomizer)
elsif (m = %r{([()+/\d]+)SK(\d)?((,\d>\d)+)?}.match(command))
num_dices = Arithmetic.eval(m[1], round_type: RoundType::FLOOR)
num_dices = Arithmetic.eval(m[1], RoundType::FLOOR)

unless num_dices.nil?
resolute_action(num_dices, m[2] && m[2].to_i, m[3])
Expand Down

0 comments on commit ebe0133

Please sign in to comment.