OSDN Git Service

hengbandforosx/hengbandosx.git
3 years ago[Fix] Artifact Spoiler出力の射撃回数計算がおかしい
dis- [Mon, 15 Feb 2021 11:47:03 +0000 (20:47 +0900)]
[Fix] Artifact Spoiler出力の射撃回数計算がおかしい

describe_bowの射撃回数の計算部がおかしく、スポイラー生成時にクラッシュしていた。
射撃回数増加なしのクラスの射撃回数を計算し、OD_DEBUG時に使用する。

3 years agoMerge pull request #142 from backwardsEric/english-r_info-minor-changes
Hourier [Mon, 15 Feb 2021 09:40:01 +0000 (18:40 +0900)]
Merge pull request #142 from backwardsEric/english-r_info-minor-changes

3.0.0Alpha6: minor English changes for r_info.txt

3 years agoMerge pull request #144 from dis-/feature/Update-Output-Spoilers
Hourier [Mon, 15 Feb 2021 09:36:14 +0000 (18:36 +0900)]
Merge pull request #144 from dis-/feature/Update-Output-Spoilers

[Feature] Spoiler File出力関数のplayer_type依存解消

3 years agoMerge pull request #141 from taotao54321/refactor-object-scanner
taotao54321 [Mon, 15 Feb 2021 09:19:58 +0000 (18:19 +0900)]
Merge pull request #141 from taotao54321/refactor-object-scanner

[Refactor] scan_floor_items() のモードを表す定数を導入

3 years ago[Feature] Spoiler File出力関数のplayer_type依存解消
dis- [Mon, 15 Feb 2021 03:59:30 +0000 (12:59 +0900)]
[Feature] Spoiler File出力関数のplayer_type依存解消

exe_output_spoilers()で呼び出されるspoiler file生成関数が現在のplayerの状態に依存している。
この依存関係を解消し、playerの状態に寄らずspoiler fileの出力を一定にした。
必要な部分にdummyのplayer構造体を与える処理、デバッグ出力に不要な処理の排除を行った。

3 years agoMerge pull request #143 from dis-/feature/Fix-Artifact-Spoiler
Hourier [Mon, 15 Feb 2021 09:10:54 +0000 (18:10 +0900)]
Merge pull request #143 from dis-/feature/Fix-Artifact-Spoiler

[Fix] artifact.txtにEASY_SPELLが出力されていない #54

3 years ago[Fix] artifact.txtにEASY_SPELLが出力されていない #54
dis- [Mon, 15 Feb 2021 08:39:51 +0000 (17:39 +0900)]
[Fix] artifact.txtにEASY_SPELLが出力されていない #54

デバッグモードで出力されるartifact.txtに呪文失敗率減少の項目を追加した。

3 years agoAdjust the description of Chimaera to avoid some spelling errors and be more idiomatic.
Eric Branlund [Sun, 14 Feb 2021 19:54:36 +0000 (11:54 -0800)]
Adjust the description of Chimaera to avoid some spelling errors and be more idiomatic.

3 years agoFix last sentence in the description of "Cait Sith".
Eric Branlund [Sun, 14 Feb 2021 19:44:06 +0000 (11:44 -0800)]
Fix last sentence in the description of "Cait Sith".

3 years agoInsert missing "$" at the start of a line for the English description of "Vespoid...
Eric Branlund [Sun, 14 Feb 2021 19:39:38 +0000 (11:39 -0800)]
Insert missing "$" at the start of a line for the English description of "Vespoid Queen".

3 years agoReplaced "falmel" with "falmer".
Eric Branlund [Sun, 14 Feb 2021 19:34:32 +0000 (11:34 -0800)]
Replaced "falmel" with "falmer".

3 years agoChange "Draugr death overload" to "Draugr death overlord".
Eric Branlund [Sun, 14 Feb 2021 19:24:50 +0000 (11:24 -0800)]
Change "Draugr death overload" to "Draugr death overlord".

3 years agoTo be more idiomatic, reworded the second phrase in the description for Apollo.
Eric Branlund [Sun, 14 Feb 2021 19:12:36 +0000 (11:12 -0800)]
To be more idiomatic, reworded the second phrase in the description for Apollo.

3 years agoDrop "through land" from the description of the chiokovo: "over" would be better...
Eric Branlund [Sun, 14 Feb 2021 18:42:44 +0000 (10:42 -0800)]
Drop "through land" from the description of the chiokovo: "over" would be better than "through" but "over land" doesn't really add anything more besides what's implied by "run".

3 years agoSwap position of once in the description for an Internet exploder.
Eric Branlund [Sun, 14 Feb 2021 18:35:03 +0000 (10:35 -0800)]
Swap position of once in the description for an Internet exploder.

3 years agoReplace "applephobia" (fear of apples) with "applephobe" (one who fears apples) in...
Eric Branlund [Sun, 14 Feb 2021 16:55:08 +0000 (08:55 -0800)]
Replace "applephobia" (fear of apples) with "applephobe" (one who fears apples) in Bull Gates's name.

3 years agoCottingley Fairies: use "Fairy" in the English name since referring to one creature...
Eric Branlund [Sun, 14 Feb 2021 14:20:15 +0000 (06:20 -0800)]
Cottingley Fairies: use "Fairy" in the English name since referring to one creature. Also, the repetition of "only" in the description is awkward. Drop the first one.

3 years agoDrop unmatched trailing quotation marks in an English description.
Eric Branlund [Sun, 14 Feb 2021 06:18:29 +0000 (22:18 -0800)]
Drop unmatched trailing quotation marks in an English description.

3 years agoReplace "Seiren" with "Siren" to match the normal English spelling. Change verb to...
Eric Branlund [Sun, 14 Feb 2021 06:16:30 +0000 (22:16 -0800)]
Replace "Seiren" with "Siren" to match the normal English spelling. Change verb to match the plural noun.

3 years agoCorrect typo ("Engel" for "Angel") in English name.
Eric Branlund [Sun, 14 Feb 2021 06:11:35 +0000 (22:11 -0800)]
Correct typo ("Engel" for "Angel") in English name.

3 years agoReplace "Mirak" with "Miraak" to be consistent with the other descriptions and names.
Eric Branlund [Sun, 14 Feb 2021 05:59:57 +0000 (21:59 -0800)]
Replace "Mirak" with "Miraak" to be consistent with the other descriptions and names.

3 years agoFix English typo.
Eric Branlund [Sun, 14 Feb 2021 05:54:42 +0000 (21:54 -0800)]
Fix English typo.

3 years agoInsert comma between independent clauses.
Eric Branlund [Sun, 14 Feb 2021 05:28:21 +0000 (21:28 -0800)]
Insert comma between independent clauses.

3 years agoUse "an" as the article in front of "ancient".
Eric Branlund [Sun, 14 Feb 2021 05:22:57 +0000 (21:22 -0800)]
Use "an" as the article in front of "ancient".

3 years agoUse cardinal rather than ordinal number in the English description for a big beholder.
Eric Branlund [Sun, 14 Feb 2021 05:20:48 +0000 (21:20 -0800)]
Use cardinal rather than ordinal number in the English description for a big beholder.

3 years ago[Refactor] scan_floor_items のモードを表す定数を導入
taotao54321 [Sun, 14 Feb 2021 15:54:04 +0000 (00:54 +0900)]
[Refactor] scan_floor_items のモードを表す定数を導入

即値指定で呼び出されており、可読性に問題があったため。

3 years agoMerge pull request #139 from dis-/feature/Update-Debug-Mon-Info
dis- [Sun, 14 Feb 2021 15:30:58 +0000 (00:30 +0900)]
Merge pull request #139 from dis-/feature/Update-Debug-Mon-Info

[Feature] mon-info.txtの出力情報を現在のプレイヤー情報に依存させない

3 years ago[Feature] mon-info.txtの出力情報を現在のプレイヤー情報に依存させない
dis- [Sun, 14 Feb 2021 15:06:34 +0000 (00:06 +0900)]
[Feature] mon-info.txtの出力情報を現在のプレイヤー情報に依存させない

デバッグ情報の出力が現在のキャラクターの状態に依存していて不安定であった。
将来的にコマンドラインからコールすることも考慮し、依存関係を排除する。

3 years agoMerge pull request #134 from Hourier/release/3.0.0Alpha6
Habu [Sun, 14 Feb 2021 14:00:19 +0000 (23:00 +0900)]
Merge pull request #134 from Hourier/release/3.0.0Alpha6

[Version] 3.0.0Alpha6

3 years ago[Version] 3.0.0Alpha6
Hourier [Sun, 14 Feb 2021 09:24:35 +0000 (18:24 +0900)]
[Version] 3.0.0Alpha6

3 years agoMerge pull request #113 from taotao54321/fix-insufficient-mbe-info
Hourier [Sun, 14 Feb 2021 13:48:32 +0000 (22:48 +0900)]
Merge pull request #113 from taotao54321/fix-insufficient-mbe-info

[Fix] mbe_info の配列外参照を修正

3 years agoMerge pull request #137 from dis-/feature/Fix-check_floor_item_tag_inventory
Hourier [Sun, 14 Feb 2021 13:47:11 +0000 (22:47 +0900)]
Merge pull request #137 from dis-/feature/Fix-check_floor_item_tag_inventory

[Fix] アイテム選択時にクラッシュ #117

3 years agoMerge pull request #136 from dis-/feature/Refactor-Monster-Lore-Mode
Hourier [Sun, 14 Feb 2021 13:43:41 +0000 (22:43 +0900)]
Merge pull request #136 from dis-/feature/Refactor-Monster-Lore-Mode

[Refactor] モンスターの思い出表示のモードをenumに変更

3 years agoMerge pull request #123 from backwardsEric/autopick-junk-key
Hourier [Sun, 14 Feb 2021 13:43:06 +0000 (22:43 +0900)]
Merge pull request #123 from backwardsEric/autopick-junk-key

English autopick adjustments for "junks" to "junk" change

3 years ago[Fix] アイテム選択時にクラッシュ #117
dis- [Sun, 14 Feb 2021 13:07:15 +0000 (22:07 +0900)]
[Fix] アイテム選択時にクラッシュ #117

コマンド繰り返しでタグ付アイテムを使用する行動を繰り返すとき、個数が0になっても該当アイテムを選択し続けていた。
check_floor_item_tag_inventory()の処理がv2.2.1と異なっていたため、従来の挙動通りになるように再度実装した。
具体的には、コマンド繰り返しでタグ付アイテムの取得に失敗したときに以降の処理を打ち切ってFALSEを返すように変更した。

3 years ago[Refactor] モンスターの思い出表示のモードをenumに変更
dis- [Sun, 14 Feb 2021 10:41:20 +0000 (19:41 +0900)]
[Refactor] モンスターの思い出表示のモードをenumに変更

可読性が厳しかったため、enumにして条件を整理した。
通常用、調査時専用、デバッグ専用の3種類のモードがある。

3 years agoMerge pull request #132 from Hourier/feature/Refactor-Monster-Alpha6
Deskull [Sun, 14 Feb 2021 07:31:08 +0000 (23:31 -0800)]
Merge pull request #132 from Hourier/feature/Refactor-Monster-Alpha6

Feature/refactor monster alpha6

3 years ago[Implement] #41345 バンシーに悲鳴フラグを追加した / Added SHRIEK flag to Banshee
Hourier [Sun, 14 Feb 2021 04:32:52 +0000 (13:32 +0900)]
[Implement] #41345 バンシーに悲鳴フラグを追加した / Added SHRIEK flag to Banshee

3 years ago[Implement] #41042 バーゲストのレアリティを1から2に下げた / Decreased the rarity of barghest from 1...
Hourier [Sun, 14 Feb 2021 04:25:16 +0000 (13:25 +0900)]
[Implement] #41042 バーゲストのレアリティを1から2に下げた / Decreased the rarity of barghest from 1 to 2

3 years ago[WIP] [Refactor] #41042 赤チォコヴォのパラメータを調整した / Adjusted the parameters of red chiokovo
Hourier [Sun, 14 Feb 2021 02:44:40 +0000 (11:44 +0900)]
[WIP] [Refactor] #41042 赤チォコヴォのパラメータを調整した / Adjusted the parameters of red chiokovo

3 years ago[Implement] #41042 投稿頂いたモンスター群の修正依頼を実装した/ Adjusted the parameters of monsters by...
Hourier [Sun, 14 Feb 2021 02:30:32 +0000 (11:30 +0900)]
[Implement] #41042 投稿頂いたモンスター群の修正依頼を実装した/ Adjusted the parameters of monsters by poster

3 years ago[Refactor] #41042 相談により『ソラリス』のパラメータを変更した / Adjusted the parameters of Solaris by...
Hourier [Thu, 11 Feb 2021 02:49:11 +0000 (11:49 +0900)]
[Refactor] #41042 相談により『ソラリス』のパラメータを変更した / Adjusted the parameters of Solaris by meeting

3 years ago[Refactor] #41042 グレーター・ファルメル・スクルカーからPOWERFULフラグを削除した / Removed POWERFUL flag from...
Hourier [Wed, 10 Feb 2021 14:35:36 +0000 (23:35 +0900)]
[Refactor] #41042 グレーター・ファルメル・スクルカーからPOWERFULフラグを削除した / Removed POWERFUL flag from Greater falmer skulker

3 years ago[Refactor] #41042 lainのパラメータを調整した / Adjusted the parameters of lain
Hourier [Wed, 10 Feb 2021 14:34:53 +0000 (23:34 +0900)]
[Refactor] #41042 lainのパラメータを調整した / Adjusted the parameters of lain

3 years ago[Refactor] #41042 『アルドゥイン』のパラメータを調整した / Adjusted the parameters of Alduin
Hourier [Wed, 10 Feb 2021 14:34:20 +0000 (23:34 +0900)]
[Refactor] #41042 『アルドゥイン』のパラメータを調整した / Adjusted the parameters of Alduin

3 years ago[Fix] #41042 二周目の泡に関するモンスターの表記ゆれを修正した / Resolved the issue that monster notation...
Hourier [Wed, 10 Feb 2021 11:47:55 +0000 (20:47 +0900)]
[Fix] #41042 二周目の泡に関するモンスターの表記ゆれを修正した / Resolved the issue that monster notation fluctuations related to aqua illusions in 2nd lap

3 years agoMerge pull request #122 from backwardsEric/english-wizard-edits
dis- [Sun, 14 Feb 2021 01:51:24 +0000 (10:51 +0900)]
Merge pull request #122 from backwardsEric/english-wizard-edits

3.0.0.0: minor English edits for src/wizard

3 years agoMerge pull request #121 from backwardsEric/english-view-edits
dis- [Sun, 14 Feb 2021 01:50:09 +0000 (10:50 +0900)]
Merge pull request #121 from backwardsEric/english-view-edits

3.0.0.0: minor English edits for src/view

3 years agoTo match the "junks" to "junk" change for the autopick key in the source code, change...
Eric Branlund [Sat, 13 Feb 2021 21:21:26 +0000 (13:21 -0800)]
To match the "junks" to "junk" change for the autopick key in the source code, change the default English autopick preference file and the autopick help file.

3 years agoFix English spoiler label for TR_AGGRAVATE.
Eric Branlund [Sat, 13 Feb 2021 19:40:08 +0000 (11:40 -0800)]
Fix English spoiler label for TR_AGGRAVATE.

3 years agoFix English typo.
Eric Branlund [Sat, 13 Feb 2021 19:13:48 +0000 (11:13 -0800)]
Fix English typo.

3 years agoReplaced "Bare hand" with "Barehanded".
Eric Branlund [Sat, 13 Feb 2021 18:56:46 +0000 (10:56 -0800)]
Replaced "Bare hand" with "Barehanded".

3 years agoFor the English self information about demon lords, put "nether" after "breathe"...
Eric Branlund [Sat, 13 Feb 2021 18:26:11 +0000 (10:26 -0800)]
For the English self information about demon lords, put "nether" after "breathe" to be more idiomatic and consistent with the breath messages elsewhere.

3 years agoMerge pull request #103 from dis-/feature/Fix-Update-Message-Window
dis- [Sat, 13 Feb 2021 15:26:15 +0000 (00:26 +0900)]
Merge pull request #103 from dis-/feature/Fix-Update-Message-Window

[Fix] 床置きアイテム自動破壊時にメッセージウインドウが遅れる #92

3 years agoMerge pull request #116 from dis-/feature/Fix-Blue-Mage-Firebolt
Hourier [Sat, 13 Feb 2021 15:07:34 +0000 (00:07 +0900)]
Merge pull request #116 from dis-/feature/Fix-Blue-Mage-Firebolt

[Fix] 青魔導士のファイア・ボルトがMP消費ターン消費なし #115

3 years ago[Fix] 青魔導士のファイア・ボルトがMP消費ターン消費なし #115
dis- [Sat, 13 Feb 2021 15:04:23 +0000 (00:04 +0900)]
[Fix] 青魔導士のファイア・ボルトがMP消費ターン消費なし #115

ファイア・ボルトのみコスト消費判定が反転している。
該当箇所を修正。

3 years agoMerge pull request #114 from taotao54321/fix-music-after-home-and-museum
Hourier [Sat, 13 Feb 2021 13:34:18 +0000 (22:34 +0900)]
Merge pull request #114 from taotao54321/fix-music-after-home-and-museum

[Fix] 我が家/博物館から出た際に辺境の地のBGMが鳴るバグを修正

3 years agoMerge pull request #102 from dis-/feature/Fix-Load-Save
Hourier [Sat, 13 Feb 2021 13:32:40 +0000 (22:32 +0900)]
Merge pull request #102 from dis-/feature/Fix-Load-Save

[Fix] セーブファイルを指定して起動した時にpath指定がおかしくて起動しない #101

3 years ago[Fix] 我が家/博物館から出た際に辺境の地のBGMが鳴るバグを修正
taotao54321 [Sat, 13 Feb 2021 13:24:44 +0000 (22:24 +0900)]
[Fix] 我が家/博物館から出た際に辺境の地のBGMが鳴るバグを修正

我が家/博物館の場合、一時的に現在地 (player_ptr->town_num) を辺境の地に
偽装して処理するが、その偽装を解除する前に select_floor_music() していた
のが原因。

そもそも player_ptr->town_num 自体を書き換える必要があるのかは疑わしい。
この偽装がなければ inner_town_num グローバル変数も消せるはず。
今後のリファクタ課題。

3 years ago[Fix] mbe_info の要素が足りていなかったのを修正
taotao54321 [Sat, 13 Feb 2021 11:51:25 +0000 (20:51 +0900)]
[Fix] mbe_info の要素が足りていなかったのを修正

RBE_INERTIA, RBE_STUN, RBE_FLAVOR に対応する要素を追加。
RBE_FLAVOR はただのフレーバーなので、(0, GF_NONE) を設定した。

INERTIA(減速)、STUN(朦朧)について:
今のところこれらの効果で爆発するモンスターはいないので、explode_type は
他の効果に倣って GF_MISSILE を設定した。
power は命中率に影響する。とりあえず他のデバフ効果の power が 0~10 程度
なので 5 としておいた。

3 years ago[Refactor] rbm_type, rbe_type に enum バリアント数を追加
taotao54321 [Sat, 13 Feb 2021 11:43:30 +0000 (20:43 +0900)]
[Refactor] rbm_type, rbe_type に enum バリアント数を追加

NB_<型名> というバリアントを enum のバリアント数を表す定数として定義する。
そして、配列サイズなどバリアント数が必要な箇所ではこの定数を使う。

従来は配列サイズなどを別個に定数定義していたため、enum のバリアントが増
えたのに配列サイズの方を変え忘れて配列外参照を起こしたりしていた。
本修正により自動で配列サイズの方も変わるので、少なくとも配列外参照はなく
なる。ただし、配列内容の追加忘れまでは防げない(初期化時に要素が足りなく
ても単に0初期化されるため。今後の課題)。

3 years agoMerge pull request #110 from taotao54321/fix-unexpected-rbe-none
taotao54321 [Sat, 13 Feb 2021 10:51:10 +0000 (19:51 +0900)]
Merge pull request #110 from taotao54321/fix-unexpected-rbe-none

[Fix] 打撃効果 RBE_NONE の警告メッセージが出るバグを修正

3 years agoMerge pull request #109 from taotao54321/fix-typo-rumors-j
Hourier [Sat, 13 Feb 2021 08:42:24 +0000 (17:42 +0900)]
Merge pull request #109 from taotao54321/fix-typo-rumors-j

[Fix] rumors_j.txt の typo を修正。クイスルグス -> クイルスルグ

3 years ago[Refactor] 実質 bool 型の関数の戻り型が int だったのを修正
taotao54321 [Sat, 13 Feb 2021 08:29:17 +0000 (17:29 +0900)]
[Refactor] 実質 bool 型の関数の戻り型が int だったのを修正

3 years ago[Fix] 打撃効果 RBE_NONE の警告メッセージが出るバグを修正
taotao54321 [Sat, 13 Feb 2021 05:51:22 +0000 (14:51 +0900)]
[Fix] 打撃効果 RBE_NONE の警告メッセージが出るバグを修正

r_info.txt の "B:" トークンで method だけが定義されていて effect がない
ものがあり、その場合 effect が RBE_NONE になっていた。
これに該当するのは「金をせがむ」「よだれをたらす」などのフレーバー的行動
のみなので、Discord での議論も踏まえて RBE_FLAVOR を新設し、RBE_NONE は
従来通り異常値扱いにした。

とりあえず v2.2.1 の仕様を踏襲し、RBE_FLAVOR は必中扱いとする。
ただしこれだとフレーバー的行動でも対邪悪結界や変わり身が発動するので、そ
の辺は議論の余地ありかも。
また、rbe_type のバリアントが増えたので MAX_MBE, mbe_info も更新する必要
があるが、それは #105 に回す。

3 years agoMerge pull request #95 from taotao54321/fix-monap-type-ap-cnt
Hourier [Sat, 13 Feb 2021 07:15:17 +0000 (16:15 +0900)]
Merge pull request #95 from taotao54321/fix-monap-type-ap-cnt

[Refactor] mon_type、monap_type の ap_cnt メンバを除去

3 years ago[Fix] rumors_j.txt の typo を修正。クイスルグス -> クイルスルグ
taotao54321 [Sat, 13 Feb 2021 07:13:13 +0000 (16:13 +0900)]
[Fix] rumors_j.txt の typo を修正。クイスルグス -> クイルスルグ

3 years agoMerge pull request #104 from habu1010/feature/Fix-pkg-config-error
Habu [Sat, 13 Feb 2021 04:24:27 +0000 (13:24 +0900)]
Merge pull request #104 from habu1010/feature/Fix-pkg-config-error

[fix] pkg-config のチェックを追加 #12

3 years agoMerge pull request #76 from taotao54321/fix-left-shift-by-31
taotao54321 [Sat, 13 Feb 2021 04:11:44 +0000 (13:11 +0900)]
Merge pull request #76 from taotao54321/fix-left-shift-by-31

[Fix] s64b_RSHIFT() の未定義動作を修正

3 years ago[Fix] 床置きアイテム自動破壊時にメッセージウインドウが遅れる #92
dis- [Sat, 13 Feb 2021 03:17:14 +0000 (12:17 +0900)]
[Fix] 床置きアイテム自動破壊時にメッセージウインドウが遅れる #92

マクロ動作完了後、キー入力前のタイミングで必要項目を再描画するようにしました。
全サブウィンドウに対してこの処理を実行するので、視界内のモンスター表示のみを強制描写していた処理が不要になりました。
fix_monster_list()の引数を減らし、never_freshフラグを操作して描写処理を行います。

3 years ago[fix] pkg-config のチェックを追加 #12
Habu [Sat, 13 Feb 2021 03:17:45 +0000 (12:17 +0900)]
[fix] pkg-config のチェックを追加 #12

./configureに --enable-xft と --disable-worldscore の両方の
スイッチを渡すと、XFTの検出ができずエラーとなる。
現象から判断するに、先にlibcurlの検出をしていると
XFTの検出もできる模様。
他のソフトウェアのconfigure.acの例を見て、
PKG_PROG_PKG_CONFIG (pkg-configの検出)を追加すると
--enable-xft と --disable-worldscore の両方を渡しても
正常に検出できるようになった。
正直 configure.ac は複雑すぎてわからないところだらけで
PKG_PROG_PKG_CONFIG の追加でOKになった理由も
よくわからないが、どのみち pkg-config の検出は
あったほうが良いと思われるので追加して修正とする。

3 years agoincrease_blow_type_seen() に doxygen コメントを追加。
taotao54321 [Sat, 13 Feb 2021 03:14:19 +0000 (12:14 +0900)]
increase_blow_type_seen() に doxygen コメントを追加。

3 years agoMerge pull request #97 from habu1010/feature/Fix-flicker-monster-list
Habu [Sat, 13 Feb 2021 03:01:46 +0000 (12:01 +0900)]
Merge pull request #97 from habu1010/feature/Fix-flicker-monster-list

[fix] モンスター一覧を表示すると画面がちらつく#96

3 years ago[Fix] 64bitシフト演算を関数化(未定義動作の回避、仕様の明確化)
taotao54321 [Thu, 11 Feb 2021 20:13:14 +0000 (05:13 +0900)]
[Fix] 64bitシフト演算を関数化(未定義動作の回避、仕様の明確化)

従来の64bitシフト関数には以下のような問題があった:

* s64b_RSHIFT() は、(V1<<(32-(N))) の部分で未定義動作が起こりうる。
  例えば V1 != 0 && N == 1 のとき、V1 が 31 回左シフトされてオーバーフローする。
  現状では敵を殴るだけでこれが発生するため、ubsan を用いたデバッグがしにくい。
* シフト量 0 を渡すと 32 回のシフトが発生して未定義動作となる。
* マクロで実装されているため型チェックが甘く、assert なども入れにくい。
* 引数の範囲についての仕様が書かれていない。

非マクロ関数を設けてこれらを解決する。
シフト対象は64bit非負整数、シフト量は [0,31] という仕様にする。
既存コードのシフト関数呼び出しを見る限り、これで要求は満たしているはず。

3 years ago[Fix] セーブファイルを指定して起動した時にpath指定がおかしくて起動しない #101
dis- [Sat, 13 Feb 2021 02:02:01 +0000 (11:02 +0900)]
[Fix] セーブファイルを指定して起動した時にpath指定がおかしくて起動しない #101

コマンドライン等からセーブファイルを起動するときcheck_for_save_file()にて引数を判断している。
ここでグローバル変数savefileが空であることを前提にしてstrcatしていたためパスを正常に指定できなくなっていた。
コマンドライン等からの起動であるとき、INIファイルを無視して指定セーブを開く挙動が正しい。
よってsavefileを上書きするstrcpyを使用するよう変更した。

ついでに、初期化中ダイアログを初期化処理未完了の場合のみ表示するよう変更。

3 years agoMerge pull request #100 from backwardsEric/english-term-edits
Hourier [Sat, 13 Feb 2021 00:26:04 +0000 (09:26 +0900)]
Merge pull request #100 from backwardsEric/english-term-edits

3.0.0.0: minor English edits for src/term

3 years agoMerge pull request #99 from backwardsEric/english-store-edits
Hourier [Sat, 13 Feb 2021 00:25:45 +0000 (09:25 +0900)]
Merge pull request #99 from backwardsEric/english-store-edits

3.0.0.0: minor English edits for src/store

3 years agoMerge pull request #84 from backwardsEric/english-spell-realm-edits
Hourier [Sat, 13 Feb 2021 00:18:23 +0000 (09:18 +0900)]
Merge pull request #84 from backwardsEric/english-spell-realm-edits

3.0.0.0: minor English edits for src/spell-realm

3 years agoFor the English symbol descriptions of shop entrances, add "the" to be idiomatic...
Eric Branlund [Fri, 12 Feb 2021 21:58:15 +0000 (13:58 -0800)]
For the English symbol descriptions of shop entrances, add "the" to be idiomatic (except for the player's home) and match the name (both words and capitalization) to what's in f_info.txt.

3 years agoTo be more idiomatic, change "don't have any item" to "don't have any items".
Eric Branlund [Fri, 12 Feb 2021 21:05:17 +0000 (13:05 -0800)]
To be more idiomatic, change "don't have any item" to "don't have any items".

3 years agoFill out English message for rejecting purchases in the museum.
Eric Branlund [Fri, 12 Feb 2021 21:02:57 +0000 (13:02 -0800)]
Fill out English message for rejecting purchases in the museum.

3 years agoTo be more idiomatic, preface "Museum" with "the".
Eric Branlund [Fri, 12 Feb 2021 20:58:40 +0000 (12:58 -0800)]
To be more idiomatic, preface "Museum" with "the".

3 years ago[fix] モンスター一覧を表示すると画面がちらつく#96
Habu [Fri, 12 Feb 2021 19:06:04 +0000 (04:06 +0900)]
[fix] モンスター一覧を表示すると画面がちらつく#96

Linux/UNIX環境のGCU版で、サブウィンドウに視界内のモンスター
一覧を表示していると、毎ターン画面がちらつく。
原因は、視界内のモンスター一覧で最初に画面を全消去するため
term_clear()を呼んでいる事にある。
GCU版では、term_clearにより画面の全消去が入ると、端末全体の
再描画が行われるようになっているので、モンスター一覧のみで
なく画面全体の再描画が行われてしまう。

対応策として、term_clear()による全消去は行わずモンスター一覧を
表示する時に1行ずつterm_eraseで消去してから書くようにする。
これはサブウィンドウの持ち物一覧表示などでも使用している
方法で、先に全消去するよりもパフォーマンスもいいのではないかと
推察する。

3 years ago[Refactor] mon_type、monap_type の ap_cnt メンバを除去
taotao54321 [Fri, 12 Feb 2021 15:34:22 +0000 (00:34 +0900)]
[Refactor] mon_type、monap_type の ap_cnt メンバを除去

Fixes #63.

3 years agoMerge pull request #90 from habu1010/feature/Expand-screen-dump-size
Habu [Fri, 12 Feb 2021 16:27:15 +0000 (01:27 +0900)]
Merge pull request #90 from habu1010/feature/Expand-screen-dump-size

[update] 大きなサイズのマップもスコアサーバへ送信できるようにしたい #43

3 years agoMerge pull request #35 from taotao54321/fix-chameleon-cave-monster-generation
taotao54321 [Fri, 12 Feb 2021 15:39:15 +0000 (00:39 +0900)]
Merge pull request #35 from taotao54321/fix-chameleon-cave-monster-generation

[Fix] カメレオン洞に通常モンスターが生成されるのを修正

3 years agoMerge pull request #94 from taotao54321/fix-rumors-j-missing-newline
taotao54321 [Fri, 12 Feb 2021 15:07:13 +0000 (00:07 +0900)]
Merge pull request #94 from taotao54321/fix-rumors-j-missing-newline

[Fix] rumors_j.txt 内の改行忘れを修正

3 years agoMerge pull request #36 from taotao54321/fix-wrong-evasion-message
taotao54321 [Fri, 12 Feb 2021 14:43:12 +0000 (23:43 +0900)]
Merge pull request #36 from taotao54321/fix-wrong-evasion-message

[Fix] 打撃回避判定のバグ修正

3 years ago[Fix] rumors_j.txt 内の改行忘れを修正
taotao54321 [Fri, 12 Feb 2021 14:36:45 +0000 (23:36 +0900)]
[Fix] rumors_j.txt 内の改行忘れを修正

Fixes #93.

3 years ago[Fix] 対邪悪結界で打撃を撃退した際は落馬/変わり身処理を行わない
taotao54321 [Fri, 12 Feb 2021 13:50:18 +0000 (22:50 +0900)]
[Fix] 対邪悪結界で打撃を撃退した際は落馬/変わり身処理を行わない

process_monster_attack_hit() の戻り値を無視していたため、撃退したのに落
馬/変わり身処理が発動するようになっていた。
なお、#21 での議論により、撃退時も思い出処理は行うこととした (v2.2.1 か
らの仕様変更)。

3 years ago[update] 大きなサイズのマップもスコアサーバへ送信できるようにしたい #43
Habu [Fri, 12 Feb 2021 12:32:38 +0000 (21:32 +0900)]
[update] 大きなサイズのマップもスコアサーバへ送信できるようにしたい #43

生成されるスクリーンダンプのサイズ制限を、256KiB→1MiBに拡張する。
また、セーブファイルからスクリーンダンプをロードする時に
スタック領域に1MiBのバッファを積むことはできないので、
ヒープ領域にバッファを用意する。

3 years agoMerge pull request #87 from habu1010/feature/Fix-window-width-overflow
Habu [Fri, 12 Feb 2021 11:21:54 +0000 (20:21 +0900)]
Merge pull request #87 from habu1010/feature/Fix-window-width-overflow

[fix] 横幅をめちゃくちゃ広くすると、インベントリの表示などが乱れる #86

3 years ago[fix] 横幅をめちゃくちゃ広くすると、インベントリの表示などが乱れる #86
Habu [Fri, 12 Feb 2021 10:55:12 +0000 (19:55 +0900)]
[fix] 横幅をめちゃくちゃ広くすると、インベントリの表示などが乱れる #86

ターミナルのサイズをbyteからTERM_LEN(int)に拡張したのに、
座標を代入する時に(byte)に不要なキャストをしているのが原因。
キャストせずそのまま代入するようにする。

3 years agoMerge pull request #85 from backwardsEric/english-status-edits
Deskull [Fri, 12 Feb 2021 10:44:59 +0000 (19:44 +0900)]
Merge pull request #85 from backwardsEric/english-status-edits

3.0.0.0: minor English edits for src/status

3 years agoMerge pull request #70 from habu1010/feature/Fix-object-no-choice
Habu [Fri, 12 Feb 2021 09:33:04 +0000 (18:33 +0900)]
Merge pull request #70 from habu1010/feature/Fix-object-no-choice

[fix] #65 未初期化の変数を参照している

3 years agoFor "x resistant" insert a "-" (combining noun and adjective to from an adjective...
Eric Branlund [Fri, 12 Feb 2021 09:28:27 +0000 (01:28 -0800)]
For "x resistant" insert a "-" (combining noun and adjective to from an adjective).  Alternatively could use "resistant to x", but that's longer.

3 years agoModify test for "a" or "an" in race change message to allow for the possibility that...
Eric Branlund [Fri, 12 Feb 2021 09:23:51 +0000 (01:23 -0800)]
Modify test for "a" or "an" in race change message to allow for the possibility that effect_msg could start with a vowel (current callers only pass messages that start with consontants).

3 years agoTo avoid the impression that there are three regeneration states (fast, normal, slow...
Eric Branlund [Fri, 12 Feb 2021 07:26:00 +0000 (23:26 -0800)]
To avoid the impression that there are three regeneration states (fast, normal, slow), reword the English message displayed when fast regeneration lapses.

3 years agoMerge pull request #80 from taotao54321/fix-ubsan-spell-is-inate
taotao54321 [Fri, 12 Feb 2021 05:19:56 +0000 (14:19 +0900)]
Merge pull request #80 from taotao54321/fix-ubsan-spell-is-inate

[Fix] spell_is_inate() の未定義動作を修正

3 years agoMerge pull request #78 from taotao54321/fix-x11-convert-to-euc
taotao54321 [Fri, 12 Feb 2021 05:19:32 +0000 (14:19 +0900)]
Merge pull request #78 from taotao54321/fix-x11-convert-to-euc

[Fix] X11 ドライバで日本語入力時にゴミが入ることがあるのを修正