Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AnimaAnimus]Result対応 #436

Merged
merged 2 commits into from
Apr 28, 2021
Merged

Conversation

spore0814
Copy link
Contributor

#423 のResult対応をしました。
Regexp.last_matchの削除とArithmeticEvaluator.evalからArithmetic.evalへの変更も行いました。

@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #436 (ab211a7) into master (03262c9) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #436      +/-   ##
==========================================
+ Coverage   95.20%   95.21%   +0.01%     
==========================================
  Files         288      288              
  Lines       18650    18692      +42     
==========================================
+ Hits        17755    17797      +42     
  Misses        895      895              
Impacted Files Coverage Δ
lib/bcdice/game_system/AnimaAnimus.rb 100.00% <100.00%> (ø)
lib/bcdice/game_system/ColossalHunter.rb 99.02% <0.00%> (-0.04%) ⬇️
lib/bcdice/game_system/CodeLayerd.rb 100.00% <0.00%> (ø)
lib/bcdice/game_system/DoubleCross.rb 100.00% <0.00%> (ø)
lib/bcdice/game_system/LogHorizon.rb 98.72% <0.00%> (+0.01%) ⬆️
lib/bcdice/game_system/DeadlineHeroes.rb 97.76% <0.00%> (+0.01%) ⬆️
lib/bcdice/game_system/SRS.rb 98.23% <0.00%> (+0.08%) ⬆️
lib/bcdice/game_system/BeastBindTrinity.rb 95.90% <0.00%> (+0.36%) ⬆️
lib/bcdice/game_system/SamsaraBallad.rb 98.30% <0.00%> (+0.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03262c9...ab211a7. Read the comment docs.

return roll_tables(command, TABLES)
else
return check_action(/(\d+)AN<=(\d+([+\-]\d+)*)/i.match(command))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/(\d+)AN<=(\d+([+\-]\d+)*)/i にマッチしなかった場合 check_action() の引数がnilとなってしまい実行時エラーが発生してしまいます。

@ysakasin ysakasin merged commit a716a1e into bcdice:master Apr 28, 2021
@ysakasin
Copy link
Member

ありがとうございます。マージしました。

@spore0814 spore0814 deleted the animaanimus_result branch April 28, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants