OSDN Git Service

hengbandforosx/hengbandosx.git
3 years ago[Fix] 打撃回避判定のバグ修正
taotao54321 [Tue, 9 Feb 2021 23:42:48 +0000 (08:42 +0900)]
[Fix] 打撃回避判定のバグ修正

Fixes #21.

check_hit_from_monster_to_player() が偽を返したときに回避時の処理を行う
べきだが、そうなっていなかった。

3 years agoMerge pull request #23 from backwardsEric/english-player-edits
Hourier [Tue, 9 Feb 2021 12:09:59 +0000 (21:09 +0900)]
Merge pull request #23 from backwardsEric/english-player-edits

3.0.0.0: minor English edits for src/player

3 years agoMerge pull request #22 from backwardsEric/english-pet-edits
Hourier [Tue, 9 Feb 2021 12:09:39 +0000 (21:09 +0900)]
Merge pull request #22 from backwardsEric/english-pet-edits

3.0.0.0: minor English edits for src/pet

3 years agoMerge pull request #13 from habu1010/feature/Reenable-WORLD_SCORE-switch
Hourier [Tue, 9 Feb 2021 11:32:54 +0000 (20:32 +0900)]
Merge pull request #13 from habu1010/feature/Reenable-WORLD_SCORE-switch

WORLD_SCOREの定義によるスコア送信機能の切り替えが機能するようにする

3 years ago[fix] #12 do_cmd_options_auxの引数をgame_option_typesにする
Habu [Mon, 8 Feb 2021 14:32:18 +0000 (23:32 +0900)]
[fix] #12 do_cmd_options_auxの引数をgame_option_typesにする

do_cmd_options_auxの第2引数はOPT_PAGE_*を受け取るので、
int型ではなくgame_option_types型とすべき。

3 years agoMerge pull request #9 from dis-/feature/Implement-Skip-More
dis- [Tue, 9 Feb 2021 10:55:59 +0000 (19:55 +0900)]
Merge pull request #9 from dis-/feature/Implement-Skip-More

Feature/implement skip more

3 years agoMerge pull request #24 from backwardsEric/english-player-attack-edits
Hourier [Tue, 9 Feb 2021 10:38:30 +0000 (19:38 +0900)]
Merge pull request #24 from backwardsEric/english-player-attack-edits

3.0.0.0: minor English edits for src/player-attack

3 years agoMerge pull request #25 from backwardsEric/english-player-info-edits
dis- [Tue, 9 Feb 2021 10:33:00 +0000 (19:33 +0900)]
Merge pull request #25 from backwardsEric/english-player-info-edits

3.0.0.0: minor English edits for src/player-info

3 years agoMerge branch 'develop' into english-player-info-edits
dis- [Tue, 9 Feb 2021 10:30:48 +0000 (19:30 +0900)]
Merge branch 'develop' into english-player-info-edits

3 years agoMerge pull request #11 from habu1010/feature/Workflow-BuildTest-on-Linux
Habu [Tue, 9 Feb 2021 09:03:00 +0000 (18:03 +0900)]
Merge pull request #11 from habu1010/feature/Workflow-BuildTest-on-Linux

[feature] #1 Linuxでビルドテストを行うWorkflow

3 years agoUse terser, perhaps more idiomatic, English descriptions for the easy_spell and heavy...
Eric Branlund [Tue, 9 Feb 2021 00:01:26 +0000 (16:01 -0800)]
Use terser, perhaps more idiomatic, English descriptions for the easy_spell and heavy_spell effects.

3 years agoFor clearer English, replace "greate damages" with "great damage" in a description...
Eric Branlund [Mon, 8 Feb 2021 23:57:54 +0000 (15:57 -0800)]
For clearer English, replace "greate damages" with "great damage" in a description for force weapons.

3 years agoFor English description of beastmaster's dominate living things ability, match quoted...
Eric Branlund [Mon, 8 Feb 2021 23:43:32 +0000 (15:43 -0800)]
For English description of beastmaster's dominate living things ability, match quoted cost to the Japanese description and the cost in racial/class-racial-switcher.c.

3 years agoChange "a" to "an" to match "elastic".
Eric Branlund [Mon, 8 Feb 2021 23:25:54 +0000 (15:25 -0800)]
Change "a" to "an" to match "elastic".

3 years agoTo be more idiomatic, use "last words" rather than "last word".
Eric Branlund [Mon, 8 Feb 2021 22:53:25 +0000 (14:53 -0800)]
To be more idiomatic, use "last words" rather than "last word".

3 years agoCorrect comment introducing the English tiltes for the cavalry class.
Eric Branlund [Mon, 8 Feb 2021 22:48:07 +0000 (14:48 -0800)]
Correct comment introducing the English tiltes for the cavalry class.

3 years agoCorrect spelling mistake for "archmage".
Eric Branlund [Mon, 8 Feb 2021 22:46:32 +0000 (14:46 -0800)]
Correct spelling mistake for "archmage".

3 years agoCorrect English spelling mistake.
Eric Branlund [Mon, 8 Feb 2021 22:08:32 +0000 (14:08 -0800)]
Correct English spelling mistake.

3 years agoTo make an English message more idiomatic, shift "still" to avoid splitting the main...
Eric Branlund [Mon, 8 Feb 2021 22:04:07 +0000 (14:04 -0800)]
To make an English message more idiomatic, shift "still" to avoid splitting the main verb from "have".

3 years agoIn English messages, use "happens" to match with "nothing".
Eric Branlund [Mon, 8 Feb 2021 21:58:14 +0000 (13:58 -0800)]
In English messages, use "happens" to match with "nothing".

3 years agoIn English message for falling off but safely landing, drop comma since the clauses...
Eric Branlund [Mon, 8 Feb 2021 21:45:57 +0000 (13:45 -0800)]
In English message for falling off but safely landing, drop comma since the clauses share a subject.

3 years agoIn English message for nearly falling off, drop comma (clauses share subject) and...
Eric Branlund [Mon, 8 Feb 2021 21:44:15 +0000 (13:44 -0800)]
In English message for nearly falling off, drop comma (clauses share subject) and add an indefinite article to be more idiomatic.  Also add an indefinite article to the linked damage note.

3 years ago[fix] #12 game_option_types列挙型の数値割当を削除
Habu [Mon, 8 Feb 2021 13:42:44 +0000 (22:42 +0900)]
[fix] #12 game_option_types列挙型の数値割当を削除

OPT_PAGE_HIDEの新設に関連して、OPT_PAGE_* に割り当てられている
整数値には特に意味がないことが確認された。
enum型の存在意義の一つとして内部の整数値は意識せず比較できるという点が
あるので、必要の無い整数値の割当ては行わないようにする。
新設した値に整数値として何を与えるか考える必要もなくなる。

また、不要になった OPT_PAGE_JAPANESE_ONLY という定義の残骸が
残っていたので削除する。

3 years ago[fix] #12 WORLD_SCOREオフの時にエラーが出ないようにする
Habu [Mon, 8 Feb 2021 12:29:23 +0000 (21:29 +0900)]
[fix] #12 WORLD_SCOREオフの時にエラーが出ないようにする

既存のコードではWORLD_SCOREの定義をOFFにしているとpref-opt.prfの
send_scoreの解析でエラーが出てしまう。
send_score自体は拾うようにし、該当するオプションを表示しない
OPT_PAGE_HIDEというグループを新設してそこに含めるようにする。

3 years ago[fix] #12 VisualStudioの構成でWORLD_SCOREを指定する
Habu [Mon, 8 Feb 2021 12:20:37 +0000 (21:20 +0900)]
[fix] #12 VisualStudioの構成でWORLD_SCOREを指定する

h-config.hからWORLD_SCOREは削除し、WindowsではVSの
構成プロパティのプリプロセッサの定義で指定するようにする。
また、英語版のスコアサーバは運営していないため、英語版ビルドの
構成ではWORLD_SCOREは指定しないようにする。

3 years agoMerge remote-tracking branch 'eric/screen-dump-missing-symbol' into feature/Reenable...
Habu [Mon, 8 Feb 2021 11:32:44 +0000 (20:32 +0900)]
Merge remote-tracking branch 'eric/screen-dump-missing-symbol' into feature/Reenable-WORLD_SCORE-switch

3 years agoMerge remote-tracking branch 'eric/clang-save-missing-prototypes' into feature/Reenab...
Habu [Mon, 8 Feb 2021 11:32:39 +0000 (20:32 +0900)]
Merge remote-tracking branch 'eric/clang-save-missing-prototypes' into feature/Reenable-WORLD_SCORE-switch

3 years agoMerge remote-tracking branch 'eric/clang-player-damage-missing-prototype' into featur...
Habu [Mon, 8 Feb 2021 11:32:33 +0000 (20:32 +0900)]
Merge remote-tracking branch 'eric/clang-player-damage-missing-prototype' into feature/Reenable-WORLD_SCORE-switch

3 years ago[Implement] #7 キー待ちしないで全メッセージを流すオプションの作成
dis- [Mon, 8 Feb 2021 11:26:38 +0000 (20:26 +0900)]
[Implement] #7 キー待ちしないで全メッセージを流すオプションの作成

Auto-Moreオプションはダメージを受けたときとメッセージサブウィンドウが溢れたときにキー待ちする処理が入る。
これを排除し、全てのメッセージをスキップするskip_moreオプションを実装した。

3 years ago[feature] #1 Linuxでビルドテストを行うWorkflow
Habu [Mon, 8 Feb 2021 09:51:06 +0000 (18:51 +0900)]
[feature] #1 Linuxでビルドテストを行うWorkflow

Linux(Ubuntu-20.04)でビルドが通ることを確認するWorkflowを作成した。
このWorkflowは日本語版/英語版ともにエラーなくビルドができる
状態であることを確認する。
GCCのオプションに "-Werror -Wall -Wextra" を与えて、
警告レベル最大で警告をエラーとして扱うようにする。
ただし、現状のコードを鑑みて以下の警告は抑制する。

 - format-overflow
sprintfはstrcatなどのバッファサイズを指定しない文字列操作関数が
大量に使用されており、警告をなくすにはすべてsnprintfなどに
修正する必要がある。

 - no-switch
アイテム等の種類によるスイッチでdefault句が無い箇所が多い。
enumのすべてが列挙されていない場合defaultが無いと警告が出る。
とりあえず抑制しておく。

 - no-sign-compare
符号ありと符号無しで比較している箇所が多すぎて修正が困難。

 - no-unused-parameter, no-unused-function
修正や日英切り替えにより出る事があるが、ソースが壊れるわけではないので
ひとまず許可する。

3 years agoMerge pull request #8 from backwardsEric/english-perception-edits
Habu [Mon, 8 Feb 2021 09:55:35 +0000 (18:55 +0900)]
Merge pull request #8 from backwardsEric/english-perception-edits

3.0.0.0: minor English edits for src/perception

3 years agoMerge pull request #6 from backwardsEric/missing-english-potion-messages
Habu [Mon, 8 Feb 2021 08:59:20 +0000 (17:59 +0900)]
Merge pull request #6 from backwardsEric/missing-english-potion-messages

Add English translations in src/object-use/quaff-execution.c

3 years agoTo be more idiomatic, use "undead" rather than "undeads".
Eric Branlund [Mon, 8 Feb 2021 04:03:19 +0000 (20:03 -0800)]
To be more idiomatic, use "undead" rather than "undeads".

3 years agoTo be more idiomatic, reword the English message for decreased light radius.
Eric Branlund [Mon, 8 Feb 2021 00:26:55 +0000 (16:26 -0800)]
To be more idiomatic, reword the English message for decreased light radius.

3 years agoFor clarity, swap position of adverb in English description for SV_POISON_NEEDLE.
Eric Branlund [Mon, 8 Feb 2021 00:22:54 +0000 (16:22 -0800)]
For clarity, swap position of adverb in English description for SV_POISON_NEEDLE.

3 years agoAdd English translation for first SV_POTION_SLIME_MOLD message.
Eric Branlund [Mon, 8 Feb 2021 00:02:34 +0000 (16:02 -0800)]
Add English translation for first SV_POTION_SLIME_MOLD message.

3 years agoAdd English translation for first SV_POTION_APPLE_JUICE message.
Eric Branlund [Mon, 8 Feb 2021 00:01:26 +0000 (16:01 -0800)]
Add English translation for first SV_POTION_APPLE_JUICE message.

3 years agoAdd English translation for first SV_POTION_WATER message.
Eric Branlund [Sun, 7 Feb 2021 23:59:52 +0000 (15:59 -0800)]
Add English translation for first SV_POTION_WATER message.

3 years agoMerge branch 'release/3.0.0Alpha5' into develop
Habu [Sun, 7 Feb 2021 12:32:40 +0000 (21:32 +0900)]
Merge branch 'release/3.0.0Alpha5' into develop

3 years ago[Version] 3.0.0Alpha5
deskull [Sun, 7 Feb 2021 12:29:43 +0000 (21:29 +0900)]
[Version] 3.0.0Alpha5

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Refactor-Monster-Alpha5' into...
deskull [Sun, 7 Feb 2021 12:15:42 +0000 (21:15 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Refactor-Monster-Alpha5' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-Auto-More' into develop
deskull [Sun, 7 Feb 2021 12:08:41 +0000 (21:08 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-Auto-More' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-window-redrawer' into develop
deskull [Sun, 7 Feb 2021 12:04:09 +0000 (21:04 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-window-redrawer' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-Compile-on-Linux' into develop
deskull [Sun, 7 Feb 2021 11:58:01 +0000 (20:58 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-Compile-on-Linux' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Relocate-score-server' into...
deskull [Sun, 7 Feb 2021 11:54:09 +0000 (20:54 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Relocate-score-server' into develop

3 years ago[Fix] クイックメッセージの挙動が以前と異なる
dis- [Sun, 7 Feb 2021 11:50:49 +0000 (20:50 +0900)]
[Fix] クイックメッセージの挙動が以前と異なる

Auto-MoreがONで被弾したときのメッセージ送りの挙動が以前と異なっている。
以前の挙動と同じ状態に戻す。

3 years ago[Fix] 同じ行が2回ある
dis- [Sun, 7 Feb 2021 11:34:21 +0000 (20:34 +0900)]
[Fix] 同じ行が2回ある

編集ミス。修正する。

3 years ago[Fix] Auto-MoreがOFFのとき、過剰に-more-がカットされる
dis- [Sun, 7 Feb 2021 11:28:42 +0000 (20:28 +0900)]
[Fix] Auto-MoreがOFFのとき、過剰に-more-がカットされる

is_msg_window_flowed()を分離する際、そのロジックを使用する箇所を間違えていた。
以前の実装に合わせるのであれば、auto-more ONのときのメッセージ流量を調節するために使用するのが正しい。
auto-more OFFのときは単にnum_moreの値によってmoreの表示有無を決定する。

3 years ago[fix] #41495 Linux/Unix系OS用の修正を追加
Habu [Sun, 7 Feb 2021 10:35:43 +0000 (19:35 +0900)]
[fix] #41495 Linux/Unix系OS用の修正を追加

save_playerの引数変更に追従していないためコンパイルエラーが発生する。
引数をSAVE_TYPE_CLOSE_GAMEに修正する。

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-mindcrafter-crash' into...
deskull [Sun, 7 Feb 2021 10:30:31 +0000 (19:30 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-mindcrafter-crash' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-Throw-Redraw' into develop
deskull [Sun, 7 Feb 2021 09:58:22 +0000 (18:58 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-Throw-Redraw' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-Sanity-Blast-by-AutoSave...
deskull [Sun, 7 Feb 2021 08:34:10 +0000 (17:34 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-Sanity-Blast-by-AutoSave' into develop

3 years ago[fix] MPの無い職業に設定される定数を定義
Habu [Sun, 7 Feb 2021 08:22:21 +0000 (17:22 +0900)]
[fix] MPの無い職業に設定される定数を定義

m_info.txtにおいて、MPの無い職業のspell_firstに99を設定するが、
ソースコード上ではマジックナンバーとならないように
SPELL_FIRST_NO_SPELL を定義して使用する。

3 years ago[update] #41432 スコアサーバ移設
Habu [Sun, 7 Feb 2021 08:04:40 +0000 (17:04 +0900)]
[update] #41432 スコアサーバ移設

スコア送信先URLをOSDNからmarsに変更する。

3 years ago[fix] #41503 超能力者でゲームを開始しようとするとクラッシュ
Habu [Sun, 7 Feb 2021 07:08:05 +0000 (16:08 +0900)]
[fix] #41503 超能力者でゲームを開始しようとするとクラッシュ

超能力者(および青魔道師と鏡使い)は、m_info.txtでspell_bookにLIFEが
設定されている。
calc_spells()において最初にspell_bookをチェックしてNONEであれば
関数を抜けるようになっているが、spell_bookにLIFEが設定されているため
通過してしまい、realmsが設定されていないので後の配列インデックスの
計算結果で配列外アクセスを引き起こしている。
そもそも魔法書が設定されているのがおかしいのでこれら3つの職業の
spell_bookはNONEにする。
ただし、spell_bookはMPの計算時にも見ており、spell_bookをNONEに
しただけではMPの計算が行われずMPが0になってしまう。
従って、spell_firstを99から1にし、MPの計算と表示ではspell_bookが
NONEであることに加えspell_firstが99の時にのみMPの計算を
行わないようにする。
(元来MPが無い職業については、すべて99に設定されている)

3 years ago[Fix] 投げたオブジェクトの軌跡が残る
dis- [Sun, 7 Feb 2021 04:25:22 +0000 (13:25 +0900)]
[Fix] 投げたオブジェクトの軌跡が残る

#41382と同類の問題。delayが0のときの軌跡カットが漏れていた。
該当箇所を修正。

3 years ago[Refactor] #41042 『ヘルハウンド』の護衛を少し減らした / Decreased the escort of Hellhound (Unique)
Hourier [Sun, 7 Feb 2021 04:08:53 +0000 (13:08 +0900)]
[Refactor] #41042 『ヘルハウンド』の護衛を少し減らした / Decreased the escort of Hellhound (Unique)

3 years ago[Refactor] #41042 クリスタル・ドレイクの加速を+5にした / Adjusted the speed of crystal drake from...
Hourier [Sun, 7 Feb 2021 03:25:35 +0000 (12:25 +0900)]
[Refactor] #41042 クリスタル・ドレイクの加速を+5にした / Adjusted the speed of crystal drake from +10 to +5

3 years ago[Refactor] #41042 ホワイト・ドラゴンの経験値を他の属性ドラゴンに合わせた / Adjusted experience of white dragon
Hourier [Sun, 7 Feb 2021 03:21:11 +0000 (12:21 +0900)]
[Refactor] #41042 ホワイト・ドラゴンの経験値を他の属性ドラゴンに合わせた / Adjusted experience of white dragon

3 years ago[Implement] #41042 元素ドラゴンの速度を+5上げた / Changed speed of element dragons +5
Hourier [Sun, 7 Feb 2021 03:18:49 +0000 (12:18 +0900)]
[Implement] #41042 元素ドラゴンの速度を+5上げた / Changed speed of element dragons +5

3 years ago[Refactor] #41042 招き猫の償還率を若干下げた / Decreased the possibility of summon of beckoning cat
Hourier [Sun, 7 Feb 2021 01:50:58 +0000 (10:50 +0900)]
[Refactor] #41042 招き猫の償還率を若干下げた / Decreased the possibility of summon of beckoning cat

3 years ago[Refactor] #41042 『ミルムルニル』と『サーロクニル』の魔法使用率を若干上げた / Increased the possibility of magics...
Hourier [Sun, 7 Feb 2021 01:50:10 +0000 (10:50 +0900)]
[Refactor] #41042 『ミルムルニル』と『サーロクニル』の魔法使用率を若干上げた / Increased the possibility of magics of Mirmulnir and Sahloknir

3 years ago[Refactor] #41042 『アブドゥル・アルハザード』の打撃性能を調整した / Adjusted the spec of blows of Abdul...
Hourier [Sun, 7 Feb 2021 01:48:56 +0000 (10:48 +0900)]
[Refactor] #41042 『アブドゥル・アルハザード』の打撃性能を調整した / Adjusted the spec of blows of Abdul Alhazard

3 years ago[Refactor] #41042 グレーター・ファルメル類にPOWERFULフラグを追加した / Added POWERFUL flag to greater...
Hourier [Sat, 6 Feb 2021 15:13:14 +0000 (00:13 +0900)]
[Refactor] #41042 グレーター・ファルメル類にPOWERFULフラグを追加した / Added POWERFUL flag to greater falmers

3 years ago[Refactor] #41042 『ヘルハウンド』に恐怖耐性を追加した / Added NO_FEAR flag to Hellhound
Hourier [Sat, 6 Feb 2021 03:35:23 +0000 (12:35 +0900)]
[Refactor] #41042 『ヘルハウンド』に恐怖耐性を追加した / Added NO_FEAR flag to Hellhound

3 years ago[Refactor] #41042 バーゲストに恐怖耐性を追加し、群れ属性を削除した / Added NO_FEAR flag and removed FRIENDS...
Hourier [Sat, 6 Feb 2021 03:34:50 +0000 (12:34 +0900)]
[Refactor] #41042 バーゲストに恐怖耐性を追加し、群れ属性を削除した / Added NO_FEAR flag and removed FRIENDS flag to barghest

3 years ago[Refactor] #41042 ドラウグル類に恐怖耐性を追加した / Added NO_FEAR flag to draugrs
Hourier [Sat, 6 Feb 2021 02:23:01 +0000 (11:23 +0900)]
[Refactor] #41042 ドラウグル類に恐怖耐性を追加した / Added NO_FEAR flag to draugrs

3 years ago[Fix] #41486 型キャスト追加. / Add type casting.
deskull [Sat, 6 Feb 2021 15:36:06 +0000 (00:36 +0900)]
[Fix] #41486 型キャスト追加. / Add type casting.

3 years agoMerge pull request #41486 (taotao/hengband/fix-negative_max_to_a into develop).
deskull [Sat, 6 Feb 2021 15:33:16 +0000 (00:33 +0900)]
Merge pull request #41486 (taotao/hengband/fix-negative_max_to_a into develop).

3 years ago[Fix] #41495 感知時にエルドリッチホラーのメッセージ表示が何度でも発生する
dis- [Sat, 6 Feb 2021 15:28:21 +0000 (00:28 +0900)]
[Fix] #41495 感知時にエルドリッチホラーのメッセージ表示が何度でも発生する

is_loading_nowフラグを操作してからupdate_creature()をコールする必要がある。
セーブ時、ゲームが継続するならこの処理が必要である。
save_playerの引数でゲーム継続を判断し、必要なときに必要な手順でコールする。

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-saved-floor-exceed' into...
deskull [Sat, 6 Feb 2021 15:17:35 +0000 (00:17 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-saved-floor-exceed' into develop

3 years agoMerge pull request #41491 (taotao/hengband/fix-impure_calc_num_blow into develop).
deskull [Sat, 6 Feb 2021 15:07:50 +0000 (00:07 +0900)]
Merge pull request #41491 (taotao/hengband/fix-impure_calc_num_blow into develop).

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-Calc-to-AC' into develop
deskull [Sat, 6 Feb 2021 14:57:34 +0000 (23:57 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-Calc-to-AC' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Debug-save-for-non-Windows'...
deskull [Sat, 6 Feb 2021 13:32:42 +0000 (22:32 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Debug-save-for-non-Windows' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Refactor-Unnecessary-Files-Remov...
deskull [Sat, 6 Feb 2021 13:19:07 +0000 (22:19 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Refactor-Unnecessary-Files-Removal' into develop

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Fix-New-Game' into develop
deskull [Sat, 6 Feb 2021 13:04:27 +0000 (22:04 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-New-Game' into develop

3 years ago[Refactor] #41493 Removed unnecessary files in io/
Hourier [Sat, 6 Feb 2021 12:57:25 +0000 (21:57 +0900)]
[Refactor] #41493 Removed unnecessary files in io/

3 years ago[Refactor] #41493 Removed unnecessary files in core/
Hourier [Sat, 6 Feb 2021 12:57:13 +0000 (21:57 +0900)]
[Refactor] #41493 Removed unnecessary files in core/

3 years ago[Refactor] #41493 Removed art-definition/
Hourier [Sat, 6 Feb 2021 12:31:12 +0000 (21:31 +0900)]
[Refactor] #41493 Removed art-definition/

3 years agoMerge remote-tracking branch 'remotes/origin/feature/Refactor-Sound-Debug' into develop
deskull [Sat, 6 Feb 2021 12:43:58 +0000 (21:43 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Refactor-Sound-Debug' into develop

3 years ago[fix] #41489 明るいはずの場所でも灯りがない判定になっている
Habu [Sat, 6 Feb 2021 09:55:38 +0000 (18:55 +0900)]
[fix] #41489 明るいはずの場所でも灯りがない判定になっている

デバッグ用自動セーブをONにしている時に現象が発生。
セーブする時に、ダンジョンの明かりと視界の情報フラグが
一旦リセットされるのが原因。
同時に情報更新用のフラグが立てられているので、
自動セーブ後にupdate_creature()を呼んで改めて
明かりと視界の情報を更新するようにする。

3 years ago[Fix] 玄武の構えによるAC修正の計算を適切な位置へ移動
taotao54321 [Sat, 6 Feb 2021 09:19:53 +0000 (18:19 +0900)]
[Fix] 玄武の構えによるAC修正の計算を適切な位置へ移動

calc_num_blow() 内で計算されていたのを calc_to_ac() へ移動。
計算順序の関係で偶然壊れていなかったが、位置として明らかにおかしい。

3 years ago[Fix] 朱雀の構えによる格闘命中/ダメージ修正が機能していなかった
taotao54321 [Sat, 6 Feb 2021 09:10:53 +0000 (18:10 +0900)]
[Fix] 朱雀の構えによる格闘命中/ダメージ修正が機能していなかった

calc_num_blow() 内での計算結果が calc_to_hit(), calc_to_damage() の戻り値で上書きされていた。
当該コードを calc_to_hit(), calc_to_damage() へ移動。

3 years ago[Fix] 練気術師の練気による格闘ダメージ修正が機能していなかった
taotao54321 [Sat, 6 Feb 2021 08:29:30 +0000 (17:29 +0900)]
[Fix] 練気術師の練気による格闘ダメージ修正が機能していなかった

calc_num_blow() 内で計算したものが後から calc_to_damage() の戻り値で上書きされていた。
当該コードを calc_to_damage() に統合して解決。
ダメージ修正を計算するコード自体もトリッキーだったので、素直な実装にした。

プログラム設計の面では、現状以下のような問題が存在すると考えられる。今後の課題。

* 関数名から副作用の有無がわかりにくい。player_type* の内容を直接変更し
  ているのに calc_foo() といった名前になっているものがある。update_foo()
  などの方がわかりやすい。
* 副作用のない calc_foo() 関数の player_type* 引数に const が付いていれ
  ば本件のようなミスは防げる。ただし、下請け関数も含めて広範囲に const
  を付ける必要があるため作業量は多い。
* ステータス間に依存関係が存在するため、計算の順番を間違えないよう人手で
  チェックする必要がある。

3 years ago[Fix] #41488 新規セーブ作成時にiniファイルのSaveFileフィールドを参照する
dis- [Sat, 6 Feb 2021 08:47:05 +0000 (17:47 +0900)]
[Fix] #41488 新規セーブ作成時にiniファイルのSaveFileフィールドを参照する

新規ファイル作成するか否かの判断にsavefile変数が使用されている。
余力があるときに処理そのものの見直しが必要だが、とりあえず既存の挙動と同等になるように修正する。

3 years ago[Implement] #41487 music.cfg にサンプル記述を追加した / Added sample descriptions into music.cfg
Hourier [Sat, 6 Feb 2021 08:08:03 +0000 (17:08 +0900)]
[Implement] #41487 music.cfg にサンプル記述を追加した / Added sample descriptions into music.cfg

3 years ago[Refactor] #41487 sound.cfg にデフォルトのデバイスタイプを追加した / Added default device type into...
Hourier [Sat, 6 Feb 2021 08:07:24 +0000 (17:07 +0900)]
[Refactor] #41487 sound.cfg にデフォルトのデバイスタイプを追加した / Added default device type into sound.cfg

3 years ago[Fix] #41487 SoundとMusicを間違えていたので修正 / Resolved the typo
Hourier [Sat, 6 Feb 2021 08:00:07 +0000 (17:00 +0900)]
[Fix] #41487 SoundとMusicを間違えていたので修正 / Resolved the typo

3 years ago[Implement] #41487 #41415と同様に、効果音設定もDEBUG用と通常用の読み分け処理を追加した / Added a branch in order...
Hourier [Sat, 6 Feb 2021 07:24:10 +0000 (16:24 +0900)]
[Implement] #41487 #41415と同様に、効果音設定もDEBUG用と通常用の読み分け処理を追加した / Added a branch in order to read sound config for debug as same as #41415

3 years ago[Fix] 武器の (悪魔) エゴのAC修正が常に +1 になるのを直した
taotao54321 [Sat, 6 Feb 2021 06:18:45 +0000 (15:18 +0900)]
[Fix] 武器の (悪魔) エゴのAC修正が常に +1 になるのを直した

ego_item_type 構造体の max_to_a メンバの型が u8 から i16 に変更されたことによるエンバグ。
負数を u8 にキャストした際の動作を前提とするコードが残っていた。
max_to_a < 0 なら [max_to_a,-1] のランダムなAC修正が得られるように直した。
また、max_to_h, max_to_d にも同様の問題があるので一応直しておく。

3 years ago[fix] デバッグセーブ用ディレクトリのパス生成
Habu [Sat, 6 Feb 2021 03:59:40 +0000 (12:59 +0900)]
[fix] デバッグセーブ用ディレクトリのパス生成

デバッグセーブ用のディレクトリのパス生成でプラットフォーム間の
ディレクトリ区切り文字の差異を吸収するため、path_build() を使用する。

3 years agoMerge branch 'unix-debug-save-purge' into feature/Debug-save-for-non-Windows
Habu [Sat, 6 Feb 2021 03:56:13 +0000 (12:56 +0900)]
Merge branch 'unix-debug-save-purge' into feature/Debug-save-for-non-Windows

3 years ago[Fix] #41484 装備変更時、器用さ修正がACに即時反映されない
dis- [Sat, 6 Feb 2021 03:29:44 +0000 (12:29 +0900)]
[Fix] #41484 装備変更時、器用さ修正がACに即時反映されない

装備変更時、ステータスの修正が反映される前にACが計算されていた。
これにより現在の装備ではなく直前の装備のステータス修正でACが計算されていた。
ステータス修正を反映した後にAC計算を行うよう変更した。

3 years agoSince struct dirent only holds the last element in the path, build the full path...
Eric Branlund [Fri, 5 Feb 2021 23:06:42 +0000 (15:06 -0800)]
Since struct dirent only holds the last element in the path, build the full path and use that with test() and remove().

3 years agoRerrange so default_savefile is set on non-Windows platforms.
Eric Branlund [Fri, 5 Feb 2021 22:24:20 +0000 (14:24 -0800)]
Rerrange so default_savefile is set on non-Windows platforms.

3 years agoAlso define screen_dump when WORLD_SCORE is not set.
Eric Branlund [Fri, 5 Feb 2021 19:05:16 +0000 (11:05 -0800)]
Also define screen_dump when WORLD_SCORE is not set.

3 years agoInclude io/files-util.h for savefile, debug_savefile, and counts_write().
Eric Branlund [Fri, 5 Feb 2021 18:58:22 +0000 (10:58 -0800)]
Include io/files-util.h for savefile, debug_savefile, and counts_write().

3 years agoInclude io/files-util.h to get prototype for get_rnd_line().
Eric Branlund [Fri, 5 Feb 2021 18:49:18 +0000 (10:49 -0800)]
Include io/files-util.h to get prototype for get_rnd_line().

3 years agoAdded Unix implementation for purging old entries in ANGBAND_DIR_DEBUG_SAVE.
Eric Branlund [Fri, 5 Feb 2021 21:12:39 +0000 (13:12 -0800)]
Added Unix implementation for purging old entries in ANGBAND_DIR_DEBUG_SAVE.

3 years ago[fix] #41478 階段を上ったときにクラッシュ
Habu [Fri, 5 Feb 2021 15:45:13 +0000 (00:45 +0900)]
[fix] #41478 階段を上ったときにクラッシュ

新たなフロアに移動した時に、フロアの最大保存数を超えた場合は
一番古く生成されたフロアを消して使う仕様だが、
その処理にあたるfind_oldest_floor_id関数周りが
想定通りに動作していない。
うまいことやろうとしてスベってる感があるので、
フロアの保存数を超えた場合の処理をわかりやすく書き直す。