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

[RuneQuest:Roleplaying in Glorantha]「失敗」判定の優先順位バグ修正 #645

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

FredGreenfield
Copy link
Contributor

【背景】
RuneQuest:Roleplaying in Glorantha(以下、RQG)の判定では01は常にクリティカル、00は常にファンブル、05以下は常に成功、96以上は常に失敗となる。しかし、500%以上の技能値を持つとき、ダイス目が96-99の時でも失敗ではなくスペシャルになるバグが存在していた。

【修正】
96以上は失敗する判定の前にスペシャルの判定があり、これにより上記の現象が発生していた。
このため以下のように判定の優先順位を修正した。
1.クリティカル(01、あるいはクリティカル成功値以下)
2.ファンブル(00、あるいはファンブル値以上)
3.失敗(96以上、5以下の出目を除く技能値を超える値)
4.スペシャル(技能値の1/5以下)
5.成功(05以下、あるいは技能値以下)

この修正に伴い、失敗値周りのコメントを上記の処理に合うよう変更。また、テストケースも2例追加した。

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (ad55636) 95.60% compared to head (3156562) 95.60%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #645      +/-   ##
==========================================
- Coverage   95.60%   95.60%   -0.01%     
==========================================
  Files         341      341              
  Lines       19560    19562       +2     
  Branches     5094     5096       +2     
==========================================
+ Hits        18701    18702       +1     
- Misses        859      860       +1     
Files Coverage Δ
...ice/game_system/RuneQuestRoleplayingInGlorantha.rb 90.54% <75.00%> (-1.13%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ysakasin ysakasin merged commit cd3107f into bcdice:master Nov 9, 2023
8 checks passed
@ysakasin
Copy link
Member

ysakasin commented Nov 9, 2023

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

@FredGreenfield FredGreenfield deleted the RQG_failure_priority_bugfix branch November 9, 2023 23:16
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.

None yet

2 participants