OSDN Git Service

hengbandforosx/hengbandosx.git
3 years ago[Fix] 大鷲系モンスターの特別行動でショートテレポートするとモンスターが増殖する #337 / Cloning large eagle type monster...
iks [Sat, 27 Feb 2021 10:10:46 +0000 (19:10 +0900)]
[Fix] 大鷲系モンスターの特別行動でショートテレポートするとモンスターが増殖する #337 / Cloning large eagle type monster when he/she blinks away.

spell_RF6_SPECIAL_B()の戻り値を直した。

3 years agoMerge pull request #332 from habu1010/feature/fix-array-excess-access-chaos-patron...
Habu [Sat, 27 Feb 2021 05:44:06 +0000 (14:44 +0900)]
Merge pull request #332 from habu1010/feature/fix-array-excess-access-chaos-patron-reward

[fix] カオスパトロンの報酬の召喚で配列外アクセス #331

3 years agoMerge pull request #327 from iks3/fix-artifact-knowledge
iks [Sat, 27 Feb 2021 03:04:02 +0000 (12:04 +0900)]
Merge pull request #327 from iks3/fix-artifact-knowledge

Fix: 既知の★一覧でID256以上の★の表示がおかしい #326

3 years ago[fix] カオスパトロンの報酬の召喚で配列外アクセス #331
Habu [Sat, 27 Feb 2021 02:05:15 +0000 (11:05 +0900)]
[fix] カオスパトロンの報酬の召喚で配列外アクセス #331

カオスパトロンの召喚時は summon_specific_who が -1 になっている
にも関わらず配列のインデクスとして使用されているため
配列外アクセスを引き起こしている。
summon_specific_who が -1 の時は配列を参照しないようにする。

3 years agoMerge pull request #329 from backwardsEric/automake-readme-md
Deskull [Fri, 26 Feb 2021 22:07:42 +0000 (07:07 +0900)]
Merge pull request #329 from backwardsEric/automake-readme-md

Update top-level Makefile.am for the renaming of readme.txt

3 years agoMerge pull request #328 from backwardsEric/english-readme-changes
Deskull [Fri, 26 Feb 2021 22:06:05 +0000 (07:06 +0900)]
Merge pull request #328 from backwardsEric/english-readme-changes

English readme:  add link to Japanese version; use backticks for Unix shell commands

3 years agoUpdate top-level Makefile.am for the renaming of readme.txt and readme_eng.txt.
Eric Branlund [Fri, 26 Feb 2021 19:58:20 +0000 (11:58 -0800)]
Update top-level Makefile.am for the renaming of readme.txt and readme_eng.txt.

3 years agoUse backticks rather than blockquote for the shell commands in the Unix section.
Eric Branlund [Fri, 26 Feb 2021 19:51:19 +0000 (11:51 -0800)]
Use backticks rather than blockquote for the shell commands in the Unix section.

3 years agoAdd a link to the Japanese readme at the start of the English one.
Eric Branlund [Fri, 26 Feb 2021 19:46:00 +0000 (11:46 -0800)]
Add a link to the Japanese readme at the start of the English one.

3 years agoFix: 既知の★一覧でID256以上の★の表示がおかしい #326 / Wrong desc of art ID of which is more than 255...
iks [Fri, 26 Feb 2021 15:20:59 +0000 (00:20 +0900)]
Fix: 既知の★一覧でID256以上の★の表示がおかしい #326 / Wrong desc of art ID of which is more than 255 in known arts list command.

3 years agoMerge pull request #316 from sikabane-works/feature/readme-md
Deskull [Fri, 26 Feb 2021 10:59:37 +0000 (19:59 +0900)]
Merge pull request #316 from sikabane-works/feature/readme-md

Feature/readme md

3 years ago[Add] 日本語版mdに英語mdリンク追加.
deskull [Fri, 26 Feb 2021 10:49:31 +0000 (19:49 +0900)]
[Add] 日本語版mdに英語mdリンク追加.

3 years ago[Feature] 英語版 readme.md をとりあえず整形. / Format readme-eng.md instantly.
deskull [Fri, 26 Feb 2021 10:39:13 +0000 (19:39 +0900)]
[Feature] 英語版 readme.md をとりあえず整形. / Format readme-eng.md instantly.

3 years ago[Fix] 日本語readme.mdの項目名若干修正.
deskull [Fri, 26 Feb 2021 10:38:29 +0000 (19:38 +0900)]
[Fix] 日本語readme.mdの項目名若干修正.

3 years agoMerge pull request #312 from dis-/feature/Update-Bit-Macro
dis- [Fri, 26 Feb 2021 10:15:10 +0000 (19:15 +0900)]
Merge pull request #312 from dis-/feature/Update-Bit-Macro

[Refactor] ビットテスト/ビット操作マクロの再整理案 #283

3 years ago[Refactor] ビットテスト/ビット操作マクロの再整理案 #283
dis- [Fri, 26 Feb 2021 03:31:29 +0000 (12:31 +0900)]
[Refactor] ビットテスト/ビット操作マクロの再整理案 #283

複数形への修正 set_bit -> set_bits, reest_bit -> reset_bits
ビットテストマクロの細分化
test_bit -> any_bits (第二引数で指定したいずれかのビットがON)
all_bits (第二引数で指定した全てのビットがON)
none_bits (第二引数で指定した全てのビットがOFF)
以上の導入と、以前に使用していたマクロの置換を行った。

3 years agoMerge pull request #309 from habu1010/feature/fix-vanish-summoned-pet
Habu [Fri, 26 Feb 2021 09:43:00 +0000 (18:43 +0900)]
Merge pull request #309 from habu1010/feature/fix-vanish-summoned-pet

[fix] ペットが召喚したペットが消えない #302

3 years agoMerge pull request #315 from iks3/fix-kendo-mult
iks [Fri, 26 Feb 2021 09:31:13 +0000 (18:31 +0900)]
Merge pull request #315 from iks3/fix-kendo-mult

[Fix] 剣術の技のダイス倍率増加が適用されない #313

3 years ago[Fix] Multipliers of Kendo technics. #313
iks [Fri, 26 Feb 2021 08:53:02 +0000 (17:53 +0900)]
[Fix] Multipliers of Kendo technics. #313

3 years agoMerge pull request #308 from taotao54321/fix-place-bold-grid
taotao54321 [Fri, 26 Feb 2021 07:49:29 +0000 (16:49 +0900)]
Merge pull request #308 from taotao54321/fix-place-bold-grid

[Fix] アリーナ外周の上辺と左辺が永久壁でなく花崗岩になる #294

3 years ago[Fix] place_bold(p,y,x,ty) と place_grid(p,g,ty) の動作を同じにした
taotao54321 [Thu, 25 Feb 2021 15:49:57 +0000 (00:49 +0900)]
[Fix] place_bold(p,y,x,ty) と place_grid(p,g,ty) の動作を同じにした

これらは本来引数の形式が違うだけで同じことをするはずだが、実際は異なる動
作をしていた。このため、アリーナ外周が永久壁でなく花崗岩になる問題が生じ
ていた。
同じ動作にして問題ないと確認がとれたのでそのようにする。

3 years agoMerge pull request #273 from dis-/feature/Refactor-tim_player_flags
dis- [Thu, 25 Feb 2021 22:40:00 +0000 (07:40 +0900)]
Merge pull request #273 from dis-/feature/Refactor-tim_player_flags

[Refactor] tim_player_flagsから二重実装になっている判定を排除

3 years ago[fix] ペットが召喚したペットが消えない #302
Habu [Thu, 25 Feb 2021 22:32:23 +0000 (07:32 +0900)]
[fix] ペットが召喚したペットが消えない #302

詳細な原因は下記を参照:
https://github.com/hengband/hengband/issues/302#issuecomment-786108417

対応策として、召喚元の親モンスターが消滅した場合は、召喚された
子モンスターのparent_m_idxを自分自身のm_idxを指すようにし、
召喚された子モンスターを消す処理でparent_m_idxが自分自身の
m_idxを指している場合も消すようにする。

3 years agoMerge pull request #291 from habu1010/feature/Refactor-player-bonuses
Habu [Thu, 25 Feb 2021 22:31:01 +0000 (07:31 +0900)]
Merge pull request #291 from habu1010/feature/Refactor-player-bonuses

[refactor] プレイヤーのステータス更新処理のリファクタリング

3 years agoMerge pull request #305 from habu1010/feature/utf8-euc-convert-conponentize
Habu [Thu, 25 Feb 2021 21:57:10 +0000 (06:57 +0900)]
Merge pull request #305 from habu1010/feature/utf8-euc-convert-conponentize

[refactor] UTF-8 ↔ EUC-JPの変換処理を共通化

3 years ago[refactor] UTF-8 ↔ EUC-JPの変換処理を共通化
Habu [Thu, 25 Feb 2021 13:51:42 +0000 (22:51 +0900)]
[refactor] UTF-8 ↔ EUC-JPの変換処理を共通化

X11ドライバとGCUドライバでそれぞれ独自に行っている
UTF-8とEUC-JP間の変換処理をlocale/japanese.cにまとめ
共通化する。
Linux/UNIX(EUC-JP)環境では utf8_to_sys からも同じく
共通化した処理を使用する。

3 years agoMerge pull request #297 from dis-/feature/Fix-Only-Item
dis- [Thu, 25 Feb 2021 11:45:16 +0000 (20:45 +0900)]
Merge pull request #297 from dis-/feature/Fix-Only-Item

[Feature] r_info.txt において、DROP_GOOD または DROP_GREAT を指定したら自動的にONLY_ITE…

3 years agoMerge pull request #298 from backwardsEric/english-monsters-misc-1
Deskull [Thu, 25 Feb 2021 11:44:31 +0000 (20:44 +0900)]
Merge pull request #298 from backwardsEric/english-monsters-misc-1

English: edits for post 2.2.1 monster additions

3 years agoMerge pull request #301 from dis-/feature/Fix-process_weapon_attack
dis- [Thu, 25 Feb 2021 09:18:28 +0000 (18:18 +0900)]
Merge pull request #301 from dis-/feature/Fix-process_weapon_attack

[Fix] 地震を起こす武器で地震が起こらない #286

3 years agoMerge pull request #296 from dis-/feature/Fix-Riding-Flag-Initialize
dis- [Thu, 25 Feb 2021 08:08:47 +0000 (17:08 +0900)]
Merge pull request #296 from dis-/feature/Fix-Riding-Flag-Initialize

[Fix] 特性フラグ一覧表示の2ページ目がランダムに緑や赤になる #295

3 years agoMerge pull request #292 from taotao54321/feature-editorconfig
taotao54321 [Thu, 25 Feb 2021 08:06:48 +0000 (17:06 +0900)]
Merge pull request #292 from taotao54321/feature-editorconfig

[Add] .editorconfig を追加

3 years ago[Fix] 地震を起こす武器で地震が起こらない #286
dis- [Thu, 25 Feb 2021 07:30:49 +0000 (16:30 +0900)]
[Fix] 地震を起こす武器で地震が起こらない #286

攻撃中の武器がimpactフラグを持っているかの判定に誤りがあった。
該当部を修正する。

3 years ago[Feature] r_info.txt において、DROP_GOOD または DROP_GREAT を指定したら自動的にONLY_ITEMフラグも付与したい #265
dis- [Thu, 25 Feb 2021 03:20:25 +0000 (12:20 +0900)]
[Feature] r_info.txt において、DROP_GOOD または DROP_GREAT を指定したら自動的にONLY_ITEMフラグも付与したい #265

DROP_GOODまたはDROP_GREATフラグがあるとき金貨を落とさず、アイテムのみを落とすように修正しました。

3 years agoEdit the English description of Pennywise to more strongly allude to the scene from...
Eric Branlund [Thu, 25 Feb 2021 03:16:44 +0000 (19:16 -0800)]
Edit the English description of Pennywise to more strongly allude to the scene from the 1990 TV movie, Stephen King's It:  https://quotes.net/mquote/1184602 .

3 years agoTo be more idiomatic, reworded the English description for the vespoid queen.
Eric Branlund [Thu, 25 Feb 2021 02:41:57 +0000 (18:41 -0800)]
To be more idiomatic, reworded the English description for the vespoid queen.

3 years ago[Fix] 特性フラグ一覧表示の2ページ目がランダムに緑や赤になる #295
dis- [Wed, 24 Feb 2021 23:48:50 +0000 (08:48 +0900)]
[Fix] 特性フラグ一覧表示の2ページ目がランダムに緑や赤になる #295

display_player_flag_info_2()内での初期化処理が漏れていた。
重複コードがこのようなバグの原因であるため、処理の重複を解消する。

3 years agoChange the first part of the English description for the middle titan to a complete...
Eric Branlund [Wed, 24 Feb 2021 22:34:34 +0000 (14:34 -0800)]
Change the first part of the English description for the middle titan to a complete sentence.  Break off the second phrase of the last sentence into a sentence of its own; try to keep the same meaning but swap the subject and object with a change of the verb.

3 years agoTo be more idiomatic, switch second "with" to "on" in the English description for...
Eric Branlund [Wed, 24 Feb 2021 22:26:18 +0000 (14:26 -0800)]
To be more idiomatic, switch second "with" to "on" in the English description for the rotten beholder.

3 years agoIn the English description for the Lycian Chimaera, combined the first, incomplete...
Eric Branlund [Wed, 24 Feb 2021 22:22:35 +0000 (14:22 -0800)]
In the English description for the Lycian Chimaera, combined the first, incomplete sentence, with the second sentence.  Drop an unnecessary possesive in the last sentence.

3 years agoPrimarily for clarity, reworded the first part of the English description of Orthus...
Eric Branlund [Wed, 24 Feb 2021 22:10:00 +0000 (14:10 -0800)]
Primarily for clarity, reworded the first part of the English description of Orthus.  Added articles and change "Namea" to the usual spelling "Nemea" (see https://en.wikipedia.org/wiki/Orthrus ).

3 years agoTo be more direct, change the second phrase in the English description for Echidna...
Eric Branlund [Wed, 24 Feb 2021 21:59:45 +0000 (13:59 -0800)]
To be more direct, change the second phrase in the English description for Echidna to a simple sentence.

3 years agoIn the English description for moai, add an indefinite article to be more idiomatic...
Eric Branlund [Wed, 24 Feb 2021 21:50:50 +0000 (13:50 -0800)]
In the English description for moai, add an indefinite article to be more idiomatic and a descriptive clause for the ion rings to better match Google Translate's result and to mark the difference from the source material (villains in the Gradius series).

3 years agoAccording to Google Translate, the original English translation for small moai descri...
Eric Branlund [Wed, 24 Feb 2021 21:48:17 +0000 (13:48 -0800)]
According to Google Translate, the original English translation for small moai description is negated relative to the Japanese.  Negating again so they align.

3 years ago[refactor] main-gcu.c の整形
Habu [Wed, 24 Feb 2021 21:20:16 +0000 (06:20 +0900)]
[refactor] main-gcu.c の整形

3 years ago[refactor] japanese.c の整形
Habu [Wed, 24 Feb 2021 21:02:02 +0000 (06:02 +0900)]
[refactor] japanese.c の整形

3 years agoTo be more idiomatic, reword the English description for skaven warrior.
Eric Branlund [Wed, 24 Feb 2021 19:58:18 +0000 (11:58 -0800)]
To be more idiomatic, reword the English description for skaven warrior.

3 years agoTo be more idiomatic, reword second part of the dracolisk's English description.
Eric Branlund [Wed, 24 Feb 2021 19:22:52 +0000 (11:22 -0800)]
To be more idiomatic, reword second part of the dracolisk's English description.

3 years ago[Add] .editorconfig を追加
taotao54321 [Wed, 24 Feb 2021 14:29:44 +0000 (23:29 +0900)]
[Add] .editorconfig を追加

新規ファイルを追加する際、エンコーディングなどが統一されないミスが生じて
いたので、自動で統一されるよう .editorconfig を追加する。

設定は以下の通り:

* エンコーディング: UTF-8-BOM
* ファイル末尾の改行: あり

改行コードについては git 側の設定と干渉して全行変更扱いにされるなどの事
故が考えられるため、ここでは指定しない。

3 years ago[refactor] プレイヤーのステータス更新処理のリファクタリング
Habu [Wed, 24 Feb 2021 12:26:50 +0000 (21:26 +0900)]
[refactor] プレイヤーのステータス更新処理のリファクタリング

* 処理の内容にそぐわない名前のものを変更
  has_* や calc_* なのに状態の更新をしているものは
  update_* という名前にする。
  状態を更新せずに値を返せるものは値を返して、
  呼び出し側で更新する。

* calc_num_blow内でやっているheavy_wieldの更新処理を分離する
* calc_riding_bow_penalty内でやっているriding_ryouteの
  更新処理を分離する

3 years agoMerge pull request #288 from dis-/feature/Fix-Riding-Levitation
dis- [Wed, 24 Feb 2021 13:57:40 +0000 (22:57 +0900)]
Merge pull request #288 from dis-/feature/Fix-Riding-Levitation

[Feature] 騎乗時の浮遊処理の仕様を修正 #285

3 years agoMerge pull request #281 from taotao54321/fix-x11-selection
taotao54321 [Wed, 24 Feb 2021 13:47:34 +0000 (22:47 +0900)]
Merge pull request #281 from taotao54321/fix-x11-selection

[Fix] X11 ドライバで画面コピーに失敗するのを修正 #215

3 years ago[Feature] 騎乗時の浮遊処理の仕様を修正 #285
dis- [Wed, 24 Feb 2021 13:17:15 +0000 (22:17 +0900)]
[Feature] 騎乗時の浮遊処理の仕様を修正 #285

乗馬時、プレイヤーの浮遊を無視して乗馬の浮遊をそのまま適用する。
この変更に際してプレイヤーの浮遊装備が無効になっていることをステータス表示画面で視認できるように変更した。
乗馬により浮遊が無効になっているときは該当行を赤くして右端に-を表記。
乗馬により浮遊が有効になっているときは該当行を緑にして右端に+を表記。

3 years agoMerge pull request #290 from iks3/fix/mane-flag
iks [Wed, 24 Feb 2021 13:39:25 +0000 (22:39 +0900)]
Merge pull request #290 from iks3/fix/mane-flag

Fix: display reverse imitation status. #289

3 years ago[Fix] X11 ドライバで画面コピーに失敗するのを修正
taotao54321 [Wed, 24 Feb 2021 02:10:06 +0000 (11:10 +0900)]
[Fix] X11 ドライバで画面コピーに失敗するのを修正

コピー対象文字列が空白のみからなる場合にバッファオーバーランしていたので、
ついでに修正。

3 years ago[Refactor] コード整形
dis- [Wed, 24 Feb 2021 13:14:19 +0000 (22:14 +0900)]
[Refactor] コード整形

clang-formatを適用

3 years agoFix: display reverse imitation status. #289
iks [Wed, 24 Feb 2021 13:10:58 +0000 (22:10 +0900)]
Fix: display reverse imitation status. #289

3 years agoMerge pull request #282 from sikabane-works/feature/fix-player-status-flags
Deskull [Wed, 24 Feb 2021 11:00:21 +0000 (20:00 +0900)]
Merge pull request #282 from sikabane-works/feature/fix-player-status-flags

[Fix] #280 player-status-flags.c 内で論理和計算すべきところを即値代入しているミスを修正.

3 years ago[Fix] さらに has_see_nocto() の抜けをさらに修正. / Fix player-status-flags.c again at has_see_noc...
deskull [Wed, 24 Feb 2021 09:55:23 +0000 (18:55 +0900)]
[Fix] さらに has_see_nocto() の抜けをさらに修正. / Fix player-status-flags.c again at has_see_nocto().

3 years ago[Fix] #280 player-status-flags.c 内で論理和計算すべきところを即値代入しているミスを修正. / Corrected a mistake...
deskull [Wed, 24 Feb 2021 03:24:17 +0000 (12:24 +0900)]
[Fix] #280 player-status-flags.c 内で論理和計算すべきところを即値代入しているミスを修正. / Corrected a mistake in assigning an immediate value where the logical sum should be calculated in player-status-flags.c.

3 years ago[Refactor] main-x11.c の整形
taotao54321 [Wed, 24 Feb 2021 01:22:42 +0000 (10:22 +0900)]
[Refactor] main-x11.c の整形

3 years agoMerge pull request #248 from dis-/feature/Refactor-resistance-checker
dis- [Tue, 23 Feb 2021 22:26:22 +0000 (07:26 +0900)]
Merge pull request #248 from dis-/feature/Refactor-resistance-checker

[Refacotr] resistance-checkerのBIT_FLAGS演算をマクロで置換

3 years agoMerge pull request #275 from habu1010/feature/fix-unconnected-stair
Habu [Tue, 23 Feb 2021 14:30:13 +0000 (23:30 +0900)]
Merge pull request #275 from habu1010/feature/fix-unconnected-stair

[fix] テレポートレベル巻物で下の階へ移動してから階段を登ると巻物を読んだ場所に出ることがある #192

3 years agoMerge pull request #277 from dis-/feature/Fix-Autospoiler-spelldamage
dis- [Tue, 23 Feb 2021 14:15:28 +0000 (23:15 +0900)]
Merge pull request #277 from dis-/feature/Fix-Autospoiler-spelldamage

[Fix] 自動生成スポイラーに魔法・ブレスの威力を表示

3 years ago[Fix] 自動生成スポイラーに魔法・ブレスの威力を表示
dis- [Tue, 23 Feb 2021 13:45:56 +0000 (22:45 +0900)]
[Fix] 自動生成スポイラーに魔法・ブレスの威力を表示

自動生成スポイラーに魔法・ブレスの威力表示を追加。

3 years agoMerge pull request #276 from iks3/fix-wild-only-and-ocean
iks [Tue, 23 Feb 2021 13:31:53 +0000 (22:31 +0900)]
Merge pull request #276 from iks3/fix-wild-only-and-ocean

[Fix] WILD_ONLYとWILD_OCEANを同時に持つと荒野に登場しない #274

3 years ago[Fix] Monsters which have WILD_ONLY and WILD_OCEAN flags sametime can not appear...
iks [Tue, 23 Feb 2021 13:11:40 +0000 (22:11 +0900)]
[Fix] Monsters which have WILD_ONLY and WILD_OCEAN flags sametime can not appear in wild maps. #274

mon_hook_dungeon() always returns TRUE for WILD_ONLY monsters when player is not in dungeons and not in quests, because other hook limits monsters which can appear in wild maps.

3 years ago[fix] テレポートレベル巻物で下の階へ移動してから階段を登ると巻物を読んだ場所に出ることがある #192
Habu [Tue, 23 Feb 2021 12:52:09 +0000 (21:52 +0900)]
[fix] テレポートレベル巻物で下の階へ移動してから階段を登ると巻物を読んだ場所に出ることがある #192

レベルテレポートで移動した時に移動元フロアの階段から適当なものを
選んで移動先のフロアにつなげる処理が呼ばれていないため、移動元
フロアの最後に居た位置に戻ってしまうのが原因。
そもそも上述の処理が呼ばれていない原因となっている、フロアIDを
新規に取得する処理が不要だと思われる(後に再度取得されている)
ので、その部分の処理を削除して階段をつなげる処理が必ず
行われるようにする。

3 years agoMerge pull request #268 from iks3/fix-aquatics-in-mountain
iks [Tue, 23 Feb 2021 11:57:06 +0000 (20:57 +0900)]
Merge pull request #268 from iks3/fix-aquatics-in-mountain

[Fix] Aquatic monsters appear in moutain or volcano dungeons. #51

3 years ago[Refactor] tim_player_flagsから二重実装になっている判定を排除
dis- [Tue, 23 Feb 2021 10:08:45 +0000 (19:08 +0900)]
[Refactor] tim_player_flagsから二重実装になっている判定を排除

表示用のテンポラリフラグ取得関数に、外部実装されているものを可能な限り使用するよう変更した。
二重に実装されている部分を排除する目的。
ついでに発見した、一時的赤外線視力のフラグが適切に反映されていないバグを修正。

3 years agoMerge pull request #272 from habu1010/feature/wizard-cmd-kill-enemy
Habu [Tue, 23 Feb 2021 09:01:39 +0000 (18:01 +0900)]
Merge pull request #272 from habu1010/feature/wizard-cmd-kill-enemy

[feature] 敵を一撃で倒すデバッグコマンド #234

RES_ALL持ちだけには効果が無いですが、デバッグコマンドという限られたシチュエーションでの使用でさらに数少ないRES_ALL持ちのためだけに例外的なコードを入れるのもいかがなものかと思うので、これでマージしようと思います。
RES_ALLは超弓矢とかを作って倒すってことで。

3 years ago[feature] 敵を一撃で倒すデバッグコマンド #234
Habu [Tue, 23 Feb 2021 08:09:04 +0000 (17:09 +0900)]
[feature] 敵を一撃で倒すデバッグコマンド #234

敵を倒した時の挙動が確認しやすくなるように、敵を一撃で
倒すデバッグコマンドを追加する。
発動は ^A y で、目当ての敵を倒す以外の作用が起きない
ように、GF_MISSILE属性でダメージ100万・半径0の
ボールを放つ。

3 years agoMerge pull request #270 from iks3/feature-find-keyword
iks [Tue, 23 Feb 2021 07:12:41 +0000 (16:12 +0900)]
Merge pull request #270 from iks3/feature-find-keyword

[Feature] Draw line with different colors in show_file()'s keyword finding. #211

3 years agoMerge pull request #271 from dis-/feature/Fix-snprintf
dis- [Tue, 23 Feb 2021 06:18:03 +0000 (15:18 +0900)]
Merge pull request #271 from dis-/feature/Fix-snprintf

[Fix] snprintfの第二引数を訂正 #267

3 years ago[Fix] snprintfの第二引数を訂正 #267
dis- [Tue, 23 Feb 2021 06:06:21 +0000 (15:06 +0900)]
[Fix] snprintfの第二引数を訂正 #267

snprintfの第二引数はバッファの最大長を指定するべきと指摘があったので修正。

3 years agoMerge pull request #269 from dis-/feature/Fix-Magic-Armor
dis- [Tue, 23 Feb 2021 05:51:10 +0000 (14:51 +0900)]
Merge pull request #269 from dis-/feature/Fix-Magic-Armor

[Fix] 魔法の鎧使用時、実際には浮遊していない

3 years agoMerge pull request #266 from dis-/feature/Fix-Keep-Subwindows
dis- [Tue, 23 Feb 2021 05:49:18 +0000 (14:49 +0900)]
Merge pull request #266 from dis-/feature/Fix-Keep-Subwindows

[Fix] #247のサブウィンドウ関連オプションをウィンドウズのメニュー処理に移行

3 years ago[Feature] Draw line with different colors between keyword matched line or not in...
iks [Tue, 23 Feb 2021 05:48:10 +0000 (14:48 +0900)]
[Feature] Draw line with different colors between keyword matched line or not in show_file(). #211

show_file() function is used in ex. '我が家のアイテム' and helps.

3 years ago[Fix] 魔法の鎧使用時、実際には浮遊していない
dis- [Tue, 23 Feb 2021 05:16:58 +0000 (14:16 +0900)]
[Fix] 魔法の鎧使用時、実際には浮遊していない

表示のみ浮遊になっているが、実際に浮遊を付与する処理が漏れていた。
該当箇所を修正。

3 years ago[Fix] Aquatic monsters appear in moutain or volcano dungeons. #51
iks [Tue, 23 Feb 2021 03:55:12 +0000 (12:55 +0900)]
[Fix] Aquatic monsters appear in moutain or volcano dungeons. #51

Also allow them which have a wild flag fitting current dungeon to appear in there.

3 years ago[Fix] #247のサブウィンドウ関連オプションをウィンドウズのメニュー処理に移行
dis- [Tue, 23 Feb 2021 02:32:02 +0000 (11:32 +0900)]
[Fix] #247のサブウィンドウ関連オプションをウィンドウズのメニュー処理に移行

keep_subwindowsの所作はwindowsのみに影響があるので、ゲームメニューオプションにあるべきではなかった。
オプションからは削除し、メニュー処理として改めて実装する。
ウィンドウズ固有の処理なので、保存領域としてはHengband.INIを使用する。

3 years agoMerge pull request #261 from dis-/feature/Fix-ini-path
dis- [Tue, 23 Feb 2021 02:22:50 +0000 (11:22 +0900)]
Merge pull request #261 from dis-/feature/Fix-ini-path

[Feature] hengband.iniに刻まれるセーブファイルのpathをexeからの相対pathにして欲しい #181

3 years ago[Feature] hengband.iniに刻まれるセーブファイルのpathをexeからの相対pathにして欲しい #181
dis- [Mon, 22 Feb 2021 15:43:22 +0000 (00:43 +0900)]
[Feature] hengband.iniに刻まれるセーブファイルのpathをexeからの相対pathにして欲しい #181

常に相対パスにすると、特定のフォルダにセーブファイルを固める運用をしている人が困る。
Hengband.exeの存在するフォルダより下の階層にセーブファイルがあるときのみ、相対パスを指定するよう設定した。
相対パス指定ではGetOpenFileNameが期待通り動いてくれないので、フルパスに展開して渡すようにする。

3 years agoMerge pull request #262 from habu1010/feature/fix-unexpected-newline
Habu [Mon, 22 Feb 2021 17:40:11 +0000 (02:40 +0900)]
Merge pull request #262 from habu1010/feature/fix-unexpected-newline

[fix] 思い出の改行位置がおかしい #17

3 years ago[fix] 思い出の改行位置がおかしい #17
Habu [Mon, 22 Feb 2021 16:56:04 +0000 (01:56 +0900)]
[fix] 思い出の改行位置がおかしい #17

思い出を描画中にASCII文字で端末の右端に到達した場合、
区切りの良い場所から次の行へ移動させるために
遡って半角スペースを探しているが、直前が日本語の
全角文字だった場合にスペースがみつかるまで
大幅に遡ってしまい、改行位置がおかしくなる。
遡った時に半角スペースに加え、全角文字である場合も
探すのを終了するべきだが、全角文字の2バイト目のコードが
SHIFT-JISの場合ASCIIとコードが被っており後ろからの
検索では全角文字の2バイト目の正確な判定ができないので、
行の先頭からASCIIと全角文字を読み分けながら次の行へ
移す位置を探すように修正する。

3 years agoMerge pull request #240 from taotao54321/fix-restore-latest-visit-mark
taotao54321 [Mon, 22 Feb 2021 14:18:26 +0000 (23:18 +0900)]
Merge pull request #240 from taotao54321/fix-restore-latest-visit-mark

[Fix] ロード時に latest_visit_mark を復元

3 years agoMerge pull request #252 from iks3/fix-sniper-rushing-arrow
iks [Mon, 22 Feb 2021 11:28:56 +0000 (20:28 +0900)]
Merge pull request #252 from iks3/fix-sniper-rushing-arrow

[Fix] drawing sniper rushing arrow's moving points #251

3 years ago[Fix] drawing sniper rushing arrow's moving points #251
iks [Mon, 22 Feb 2021 11:22:54 +0000 (20:22 +0900)]
[Fix] drawing sniper rushing arrow's moving points #251

Fix drawing oddly moving points of monster which is rushed by rushing arrow with many @s because update_monster() reference wrong monster's index.

3 years ago[Refacotr] resistance-checkerのBIT_FLAGS演算をマクロで置換
dis- [Mon, 22 Feb 2021 08:37:53 +0000 (17:37 +0900)]
[Refacotr] resistance-checkerのBIT_FLAGS演算をマクロで置換

可読性向上のため、BIT_FLAGS演算をマクロで置換する。
動作は変更しない。

3 years agoMerge pull request #247 from dis-/feature/Implement-KeepSubwindow
dis- [Mon, 22 Feb 2021 03:30:44 +0000 (12:30 +0900)]
Merge pull request #247 from dis-/feature/Implement-KeepSubwindow

[Implement] アプリを切り替えてもサブウィンドウが消えないオプションが欲しい #14

3 years ago[Implement] アプリを切り替えてもサブウィンドウが消えないオプションが欲しい #14
dis- [Mon, 22 Feb 2021 03:21:38 +0000 (12:21 +0900)]
[Implement] アプリを切り替えてもサブウィンドウが消えないオプションが欲しい #14

オプションkeep_subwindowsを新設する。
このオプションが有効なとき、Hengbandがフォーカスを失うときにサブウィンドウを表示する。

3 years agoMerge pull request #245 from sikabane-works/release/3.0.0Alpha8
Deskull [Sun, 21 Feb 2021 15:37:04 +0000 (00:37 +0900)]
Merge pull request #245 from sikabane-works/release/3.0.0Alpha8

[Version] 3.0.0Alpha8

3 years ago[Version] 3.0.0Alpha8
deskull [Sun, 21 Feb 2021 15:28:48 +0000 (00:28 +0900)]
[Version] 3.0.0Alpha8

3 years agoMerge pull request #243 from Hourier/hotfix/Fix-Blood-Sucking-Flag
Hourier [Sun, 21 Feb 2021 14:32:57 +0000 (23:32 +0900)]
Merge pull request #243 from Hourier/hotfix/Fix-Blood-Sucking-Flag

Hotfix/fix blood sucking flag

3 years ago[Fix] #241 吸血の対象判定が逆になっていたのを修正した / Resolved the issue that the target of races for...
Hourier [Sun, 21 Feb 2021 14:23:13 +0000 (23:23 +0900)]
[Fix] #241 吸血の対象判定が逆になっていたのを修正した / Resolved the issue that the target of races for blood sucking was reversed

3 years ago[Fix] ロード時に latest_visit_mark を復元
taotao54321 [Sun, 21 Feb 2021 13:37:33 +0000 (22:37 +0900)]
[Fix] ロード時に latest_visit_mark を復元

Fixes #239.

起動時の `latest_visit_mark` の値が 1 固定だったため、セーブ/ロードを挟
むと保存フロアがいっぱいになったときの削除順がおかしくなっていた。

ロード時に全ての保存済みフロアについての `visit_mark` の最大値 + 1 を
`latest_visit_mark` の値とすることで解決。

3 years agoMerge pull request #238 from dis-/feature/Fix-has_icky_wield_weapon
dis- [Sun, 21 Feb 2021 12:02:43 +0000 (21:02 +0900)]
Merge pull request #238 from dis-/feature/Fix-has_icky_wield_weapon

[Fix] スペルマスター、プリーストが盾装備時ふさわしくない武器判定される

3 years ago[Fix] スペルマスター、プリーストが盾装備時ふさわしくない武器判定される
dis- [Sun, 21 Feb 2021 11:55:19 +0000 (20:55 +0900)]
[Fix] スペルマスター、プリーストが盾装備時ふさわしくない武器判定される

has_icky_wield_weapon()内の判定にて、盾装備が許可されていなかった。
従来の仕様に合わせて修正する。

3 years agoMerge pull request #227 from iks3/artifact-from-xangband
iks [Sun, 21 Feb 2021 11:01:15 +0000 (20:01 +0900)]
Merge pull request #227 from iks3/artifact-from-xangband

Add: 3 artifacts from XAngband. #225

3 years agoMerge pull request #236 from dis-/feature/Fix-Fresh-Once-Save
dis- [Sun, 21 Feb 2021 06:53:41 +0000 (15:53 +0900)]
Merge pull request #236 from dis-/feature/Fix-Fresh-Once-Save

[Fix] fresh_onceオプションをセーブできない

3 years ago[Fix] fresh_onceオプションをセーブできない
dis- [Sun, 21 Feb 2021 05:43:38 +0000 (14:43 +0900)]
[Fix] fresh_onceオプションをセーブできない

option_typeのo_bitを保存している領域の都合上、o_bitは0~31しか記録できないようである。
そのため、fresh_onceをTRUEでセーブしても次回起動時デフォルトのFALSEになっていた。
今回は空き番号を使用して回避する。