OSDN Git Service
taotao54321 [Fri, 12 Feb 2021 13:50:18 +0000 (22:50 +0900)]
[Fix] 対邪悪結界で打撃を撃退した際は落馬/変わり身処理を行わない
process_monster_attack_hit() の戻り値を無視していたため、撃退したのに落
馬/変わり身処理が発動するようになっていた。
なお、#21 での議論により、撃退時も思い出処理は行うこととした (v2.2.1 か
らの仕様変更)。
taotao54321 [Thu, 11 Feb 2021 16:56:52 +0000 (01:56 +0900)]
[Fix] モンスターの打撃に対する思い出処理のエンバグを修正
increase_blow_type_seen() 内で monap_ptr の内容を参照している関係上、こ
の関数の呼び出しは命中/回避処理の後でなければならない。
合わせて、process_monster_blows(), increase_blow_type_seen() の仕様に関
するコメントを多少追加。
taotao54321 [Thu, 11 Feb 2021 14:59:46 +0000 (23:59 +0900)]
[Fix] 打撃を受けた際の落馬/変わり身処理の発動条件を修正
落馬/変わり身処理は命中時のみ行うようにした。
落馬に関しては元々ダメージ0なら落馬しないという条件があるので実質変更なし。
変わり身に関しては、「〜の攻撃をかわした。失敗!攻撃を受けてしまった。」
というメッセージ表示が不自然であることからこのようにした。厳密には仕様変
更となるので、もし問題となるようなら仕様を再考することとしたい。
この修正に伴い、思い出処理を命中判定より先に行うようにした。これを後に置
くと変わり身発動時の return により飛ばされてしまう可能性があるため。
(思い出処理は命中/変わり身の成否によらず行うという従来の仕様を維持)
taotao54321 [Wed, 10 Feb 2021 13:28:28 +0000 (22:28 +0900)]
[Fix] 敵の攻撃効果が無効値 RBE_NONE なら攻撃を打ち切る
effect == RBE_NONE なら打撃が命中したと判定するロジックになっていたが、
これは単に v2.2.1 の誤ったロジックを引き継いだにすぎない。
敵が打撃を行う際に effect == RBE_NONE となることは理論上あり得ないので、
命中判定の条件からは外す。安全のため、万一 RBE_NONE が現れたらそこで攻撃
を打ち切る。
taotao54321 [Tue, 9 Feb 2021 23:42:48 +0000 (08:42 +0900)]
[Fix] 打撃回避判定のバグ修正
Fixes #21.
check_hit_from_monster_to_player() が偽を返したときに回避時の処理を行う
べきだが、そうなっていなかった。
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
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
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の定義によるスコア送信機能の切り替えが機能するようにする
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型とすべき。
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
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
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
dis- [Tue, 9 Feb 2021 10:30:48 +0000 (19:30 +0900)]
Merge branch 'develop' into english-player-info-edits
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
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.
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.
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.
Eric Branlund [Mon, 8 Feb 2021 23:25:54 +0000 (15:25 -0800)]
Change "a" to "an" to match "elastic".
Eric Branlund [Mon, 8 Feb 2021 22:53:25 +0000 (14:53 -0800)]
To be more idiomatic, use "last words" rather than "last word".
Eric Branlund [Mon, 8 Feb 2021 22:48:07 +0000 (14:48 -0800)]
Correct comment introducing the English tiltes for the cavalry class.
Eric Branlund [Mon, 8 Feb 2021 22:46:32 +0000 (14:46 -0800)]
Correct spelling mistake for "archmage".
Eric Branlund [Mon, 8 Feb 2021 22:08:32 +0000 (14:08 -0800)]
Correct English spelling mistake.
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".
Eric Branlund [Mon, 8 Feb 2021 21:58:14 +0000 (13:58 -0800)]
In English messages, use "happens" to match with "nothing".
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.
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.
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 という定義の残骸が
残っていたので削除する。
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というグループを新設してそこに含めるようにする。
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は指定しないようにする。
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
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
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
dis- [Mon, 8 Feb 2021 11:26:38 +0000 (20:26 +0900)]
[Implement] #7 キー待ちしないで全メッセージを流すオプションの作成
Auto-Moreオプションはダメージを受けたときとメッセージサブウィンドウが溢れたときにキー待ちする処理が入る。
これを排除し、全てのメッセージをスキップするskip_moreオプションを実装した。
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
修正や日英切り替えにより出る事があるが、ソースが壊れるわけではないので
ひとまず許可する。
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
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
Eric Branlund [Mon, 8 Feb 2021 04:03:19 +0000 (20:03 -0800)]
To be more idiomatic, use "undead" rather than "undeads".
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.
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.
Eric Branlund [Mon, 8 Feb 2021 00:02:34 +0000 (16:02 -0800)]
Add English translation for first SV_POTION_SLIME_MOLD message.
Eric Branlund [Mon, 8 Feb 2021 00:01:26 +0000 (16:01 -0800)]
Add English translation for first SV_POTION_APPLE_JUICE message.
Eric Branlund [Sun, 7 Feb 2021 23:59:52 +0000 (15:59 -0800)]
Add English translation for first SV_POTION_WATER message.
Habu [Sun, 7 Feb 2021 12:32:40 +0000 (21:32 +0900)]
Merge branch 'release/3.0.0Alpha5' into develop
deskull [Sun, 7 Feb 2021 12:29:43 +0000 (21:29 +0900)]
[Version] 3.0.0Alpha5
deskull [Sun, 7 Feb 2021 12:15:42 +0000 (21:15 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Refactor-Monster-Alpha5' 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
deskull [Sun, 7 Feb 2021 12:04:09 +0000 (21:04 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-window-redrawer' 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
deskull [Sun, 7 Feb 2021 11:54:09 +0000 (20:54 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Relocate-score-server' into develop
dis- [Sun, 7 Feb 2021 11:50:49 +0000 (20:50 +0900)]
[Fix] クイックメッセージの挙動が以前と異なる
Auto-MoreがONで被弾したときのメッセージ送りの挙動が以前と異なっている。
以前の挙動と同じ状態に戻す。
dis- [Sun, 7 Feb 2021 11:34:21 +0000 (20:34 +0900)]
[Fix] 同じ行が2回ある
編集ミス。修正する。
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の表示有無を決定する。
Habu [Sun, 7 Feb 2021 10:35:43 +0000 (19:35 +0900)]
[fix] #41495 Linux/Unix系OS用の修正を追加
save_playerの引数変更に追従していないためコンパイルエラーが発生する。
引数をSAVE_TYPE_CLOSE_GAMEに修正する。
deskull [Sun, 7 Feb 2021 10:30:31 +0000 (19:30 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-mindcrafter-crash' 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
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
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 を定義して使用する。
Habu [Sun, 7 Feb 2021 08:04:40 +0000 (17:04 +0900)]
[update] #41432 スコアサーバ移設
スコア送信先URLをOSDNからmarsに変更する。
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に設定されている)
dis- [Sun, 7 Feb 2021 04:25:22 +0000 (13:25 +0900)]
[Fix] 投げたオブジェクトの軌跡が残る
#41382と同類の問題。delayが0のときの軌跡カットが漏れていた。
該当箇所を修正。
Hourier [Sun, 7 Feb 2021 04:08:53 +0000 (13:08 +0900)]
[Refactor] #41042 『ヘルハウンド』の護衛を少し減らした / Decreased the escort of Hellhound (Unique)
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
Hourier [Sun, 7 Feb 2021 03:21:11 +0000 (12:21 +0900)]
[Refactor] #41042 ホワイト・ドラゴンの経験値を他の属性ドラゴンに合わせた / Adjusted experience of white dragon
Hourier [Sun, 7 Feb 2021 03:18:49 +0000 (12:18 +0900)]
[Implement] #41042 元素ドラゴンの速度を+5上げた / Changed speed of element dragons +5
Hourier [Sun, 7 Feb 2021 01:50:58 +0000 (10:50 +0900)]
[Refactor] #41042 招き猫の償還率を若干下げた / Decreased the possibility of summon of beckoning cat
Hourier [Sun, 7 Feb 2021 01:50:10 +0000 (10:50 +0900)]
[Refactor] #41042 『ミルムルニル』と『サーロクニル』の魔法使用率を若干上げた / Increased the possibility of magics of Mirmulnir and Sahloknir
Hourier [Sun, 7 Feb 2021 01:48:56 +0000 (10:48 +0900)]
[Refactor] #41042 『アブドゥル・アルハザード』の打撃性能を調整した / Adjusted the spec of blows of Abdul Alhazard
Hourier [Sat, 6 Feb 2021 15:13:14 +0000 (00:13 +0900)]
[Refactor] #41042 グレーター・ファルメル類にPOWERFULフラグを追加した / Added POWERFUL flag to greater falmers
Hourier [Sat, 6 Feb 2021 03:35:23 +0000 (12:35 +0900)]
[Refactor] #41042 『ヘルハウンド』に恐怖耐性を追加した / Added NO_FEAR flag to Hellhound
Hourier [Sat, 6 Feb 2021 03:34:50 +0000 (12:34 +0900)]
[Refactor] #41042 バーゲストに恐怖耐性を追加し、群れ属性を削除した / Added NO_FEAR flag and removed FRIENDS flag to barghest
Hourier [Sat, 6 Feb 2021 02:23:01 +0000 (11:23 +0900)]
[Refactor] #41042 ドラウグル類に恐怖耐性を追加した / Added NO_FEAR flag to draugrs
deskull [Sat, 6 Feb 2021 15:36:06 +0000 (00:36 +0900)]
[Fix] #41486 型キャスト追加. / Add type casting.
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).
dis- [Sat, 6 Feb 2021 15:28:21 +0000 (00:28 +0900)]
[Fix] #41495 感知時にエルドリッチホラーのメッセージ表示が何度でも発生する
is_loading_nowフラグを操作してからupdate_creature()をコールする必要がある。
セーブ時、ゲームが継続するならこの処理が必要である。
save_playerの引数でゲーム継続を判断し、必要なときに必要な手順でコールする。
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
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).
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
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
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
deskull [Sat, 6 Feb 2021 13:04:27 +0000 (22:04 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Fix-New-Game' into develop
Hourier [Sat, 6 Feb 2021 12:57:25 +0000 (21:57 +0900)]
[Refactor] #41493 Removed unnecessary files in io/
Hourier [Sat, 6 Feb 2021 12:57:13 +0000 (21:57 +0900)]
[Refactor] #41493 Removed unnecessary files in core/
Hourier [Sat, 6 Feb 2021 12:31:12 +0000 (21:31 +0900)]
[Refactor] #41493 Removed art-definition/
deskull [Sat, 6 Feb 2021 12:43:58 +0000 (21:43 +0900)]
Merge remote-tracking branch 'remotes/origin/feature/Refactor-Sound-Debug' into develop
Habu [Sat, 6 Feb 2021 09:55:38 +0000 (18:55 +0900)]
[fix] #41489 明るいはずの場所でも灯りがない判定になっている
デバッグ用自動セーブをONにしている時に現象が発生。
セーブする時に、ダンジョンの明かりと視界の情報フラグが
一旦リセットされるのが原因。
同時に情報更新用のフラグが立てられているので、
自動セーブ後にupdate_creature()を呼んで改めて
明かりと視界の情報を更新するようにする。
taotao54321 [Sat, 6 Feb 2021 09:19:53 +0000 (18:19 +0900)]
[Fix] 玄武の構えによるAC修正の計算を適切な位置へ移動
calc_num_blow() 内で計算されていたのを calc_to_ac() へ移動。
計算順序の関係で偶然壊れていなかったが、位置として明らかにおかしい。
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() へ移動。
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
を付ける必要があるため作業量は多い。
* ステータス間に依存関係が存在するため、計算の順番を間違えないよう人手で
チェックする必要がある。
dis- [Sat, 6 Feb 2021 08:47:05 +0000 (17:47 +0900)]
[Fix] #41488 新規セーブ作成時にiniファイルのSaveFileフィールドを参照する
新規ファイル作成するか否かの判断にsavefile変数が使用されている。
余力があるときに処理そのものの見直しが必要だが、とりあえず既存の挙動と同等になるように修正する。
Hourier [Sat, 6 Feb 2021 08:08:03 +0000 (17:08 +0900)]
[Implement] #41487 music.cfg にサンプル記述を追加した / Added sample descriptions into music.cfg
Hourier [Sat, 6 Feb 2021 08:07:24 +0000 (17:07 +0900)]
[Refactor] #41487 sound.cfg にデフォルトのデバイスタイプを追加した / Added default device type into sound.cfg
Hourier [Sat, 6 Feb 2021 08:00:07 +0000 (17:00 +0900)]
[Fix] #41487 SoundとMusicを間違えていたので修正 / Resolved the typo
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
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 にも同様の問題があるので一応直しておく。
Habu [Sat, 6 Feb 2021 03:59:40 +0000 (12:59 +0900)]
[fix] デバッグセーブ用ディレクトリのパス生成
デバッグセーブ用のディレクトリのパス生成でプラットフォーム間の
ディレクトリ区切り文字の差異を吸収するため、path_build() を使用する。
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
dis- [Sat, 6 Feb 2021 03:29:44 +0000 (12:29 +0900)]
[Fix] #41484 装備変更時、器用さ修正がACに即時反映されない
装備変更時、ステータスの修正が反映される前にACが計算されていた。
これにより現在の装備ではなく直前の装備のステータス修正でACが計算されていた。
ステータス修正を反映した後にAC計算を行うよう変更した。
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().
Eric Branlund [Fri, 5 Feb 2021 22:24:20 +0000 (14:24 -0800)]
Rerrange so default_savefile is set on non-Windows platforms.
Eric Branlund [Fri, 5 Feb 2021 19:05:16 +0000 (11:05 -0800)]
Also define screen_dump when WORLD_SCORE is not set.