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

新しい朦朧の仕様を実装した #1682

Merged
merged 5 commits into from
Sep 30, 2021

Conversation

Hourier
Copy link
Member

@Hourier Hourier commented Sep 29, 2021

掲題の通りです
今回は、直接打撃に基づく朦朧値の蓄積を緩やかにしました
それ以外 (例:轟音ブレス)は敢えて手つかずにすることで緩やかな蓄積となるように調整しました
手元で確認したところ、「Lv50のちからじまんサイクロプス戦士が宵闇のローブ+両手に肉体強化の指輪を着ている」というレベルの極端な状況でない限り「昏倒=行動不能」にはならないようになりました
また、そうであるが故にアイテム使用全般に失率を設けるのも妥当と判断しました
ご確認下さい

@Hourier Hourier added the enhancement New feature or request label Sep 29, 2021
@Hourier Hourier added this to the 3.0.0Alpha40Release milestone Sep 29, 2021
@Hourier Hourier self-assigned this Sep 29, 2021
Copy link
Member

@habu1010 habu1010 left a comment

Choose a reason for hiding this comment

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

全体として処理には問題ないと思うのですが、faint を失神するという意味で使うのはやや馴染みが薄い気がします。
英語のメッセージでもある、knocked_out はどうでしょうか?

@Hourier
Copy link
Member Author

Hourier commented Sep 30, 2021

確認ありがとうございます
FAINT → KNOCKED に変更してforce pushしました (他が単語1つなのと、文脈的にOUTを抜いても分かると判断して省略)
ご確認下さい

@habu1010
Copy link
Member

is_faint() も合わせて変えたほうがよさそうです。

@Hourier
Copy link
Member Author

Hourier commented Sep 30, 2021

is_faint() の方は忘れてました
修正してforce pushしました

@habu1010
Copy link
Member

確認しました。対応ありがとうざいました。
朦朧の新しい仕様のバランスについてはDiscussionである程度議論済みで、あとは実際のプレイ感を聞くところかと思いますので、Approveします。

Copy link
Member

@habu1010 habu1010 left a comment

Choose a reason for hiding this comment

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

すみません、1件追加で気づいた点がありました。

*/
bool PlayerStun::is_knocked_out() const
{
return this->get_rank() > PlayerStunRank::KNOCKED;
Copy link
Member

Choose a reason for hiding this comment

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

ここの不等号、=がなくて大丈夫でしょうか?

Copy link
Member Author

Choose a reason for hiding this comment

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

ここは最悪値なので「==」が正しいです
修正してforce pushしました

habu1010
habu1010 previously approved these changes Sep 30, 2021
Copy link
Member

@habu1010 habu1010 left a comment

Choose a reason for hiding this comment

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

修正確認しました。再Approveします。

@Hourier
Copy link
Member Author

Hourier commented Sep 30, 2021

すみません、過去に組んだ処理がマージミスでどこかへ消えていました
もう1回コミットしますので再チェック&Approveお願いします

@Hourier
Copy link
Member Author

Hourier commented Sep 30, 2021

朦朧蓄積ランクに補正をかける処理を追加しました
お手数ですが再確認下さい

Copy link
Member

@habu1010 habu1010 left a comment

Choose a reason for hiding this comment

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

追加分確認しました。
すごく細かいですが、Doxygenコメントと実装の不一致が1箇所あったので、その部分だけコメントしました。

auto str = stat_value(player_ptr->stat_cur[A_STR]);
auto dex = stat_value(player_ptr->stat_cur[A_DEX]);
auto con = stat_value(player_ptr->stat_cur[A_CON]);
auto is_powerful_body = str + dex + con > 80;
Copy link
Member

Choose a reason for hiding this comment

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

コメントでは80以上となっていますが、実装は80より大きいとなっています。
どちらかを正しい方によせてください。

Copy link
Member Author

Choose a reason for hiding this comment

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

コードの方が正しかったのでDoxygenを修正しforce pushしました
ご確認下さい

Copy link
Member

@habu1010 habu1010 left a comment

Choose a reason for hiding this comment

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

修正確認しました。
他はDoxygenのコメントの意図通りの実装となっていると思いますので、Approveします。

@Hourier Hourier merged commit 1225a10 into hengband:develop Sep 30, 2021
@Hourier Hourier deleted the New-Stun-Spec branch September 30, 2021 14:06
@Hourier
Copy link
Member Author

Hourier commented Sep 30, 2021

確認ありがとうございました!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants