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

Release/0.0.0.41 alpha #3539

Merged
merged 88 commits into from
Jul 17, 2023
Merged

Release/0.0.0.41 alpha #3539

merged 88 commits into from
Jul 17, 2023

Conversation

sikabane-works
Copy link
Owner

No description provided.

sikabane-works and others added 30 commits July 2, 2023 15:09
(Monster)チンポバトル兄貴と飢えたホビット追加、森を憎むものと木を殺すもの下方調整
(Rumor) クッソ汚い噂定期。
ダンジョンで生成されるモンスターのシンボル制限のデータを std::vector にし、現在4つ
までとなっている指定数の上限を撤廃する。
[Fix] ダンジョンのモンスターシンボル制限の指定数の上限をなくす
変愚「SwordEnchanter を分離してPolearmEnchanter とHaftedEnchanter を定義した」のマージ
(Monster)[Add] グレーター・ヤクザ「ハシバ」
引数で与えられたイテレータ範囲の要素をシャッフルする関数 rand_shuffle() を追加する。
標準ライブラリに同様の機能を提供する std::shuffle() があるが、基本的にゲームの RNG
オブジェクトはカプセル化しておきたいので、イテレータ範囲のみの引数でシャッフルできる
関数として別途実装しておく。

また、イテレータの指す要素が std::reference_wrapper の場合は、要素が保持している
参照先の値をシャッフルする。
シャッフルしたい要素そのものが配列ではない場合に、それぞれの要素を指す
std::reference_wrapper 配列を作ってシャッフルする用途を想定する。
アイテムのフレーバーのシャッフル処理を前コミットで実装した rand_shuffule 関数で置き
換える。
変愚「イテレータ範囲の要素をシャッフルする関数 rand_shuffle を実装 #2447」のマージ
基本的に cur_store_num は現在プレイヤーが居る店舗を持つグローバル変数のようだが、
すべて引数で渡せばグローバル変数にする必要が見当たらない。
例外としてプレイヤーが店舗に居ない時に呼ばれる store_shuffle() で cur_store_num
に店主入れ替えを行った店舗の番号を入れているようだが、これにしても次にプレイヤーが店舗に
入った時に更新されるので意味がなさそう。
したがってグローバル変数 cur_store_num を完全に削除する。

副作用として、グローバル変数とローカル変数の取り違いが原因で発生しているバグ #2442 も
修正される。
[Refactor] グローバル変数 cur_store_num を削除する
backwardsEric and others added 20 commits July 5, 2023 22:37
…ler errors when compiled without precompiled headers. Resolves hengband/hengband#2465 .
clang: include <unordered_map> in mspell/mspell-data.h to avoid compi…
変愚「English: change some messages, mostly related to the elementalists #2467」のマージ
[Fix] monster-eating.cpp で出ていたナローキャスティング警告を解消した
ードした時に強制的に残りターン数0にするようにしたが、ObjectType::is_fuel() のみを
見ているため油つぼも対象になっており、油つぼの補給ターン数も0になってしまっている。
ObjectType::is_fuel() に加えて ItemKindType::LITE であるかどうかもチェックする
ようにする。
[Fix] 油つぼからランタンの燃料補給ができなくなる
(Rumor)[Add] クッソ汚い噂定期。
(Rumor) クッソ汚い噂定期。
(Rumor)[Add] クッソ汚い噂定期。
@sikabane-works sikabane-works added the enhancement New feature or request label Jul 17, 2023
@sikabane-works sikabane-works self-assigned this Jul 17, 2023
@sikabane-works sikabane-works linked an issue Jul 17, 2023 that may be closed by this pull request
@sikabane-works sikabane-works merged commit 803207e into master Jul 17, 2023
@sikabane-works sikabane-works deleted the release/0.0.0.41-Alpha branch July 17, 2023 06:08
sikabane-works added a commit that referenced this pull request May 14, 2024
[Refactor] #3539 input_stock() の引数からcom_val をなくし、戻り値をoptional<short> に変えた
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.

0.0.0.41-Alphaリリース
6 participants