OSDN Git Service

hengbandforosx/hengbandosx.git
2 years ago[Refactor] #1710 Definitions QUEST_STATUS_* to enum class QuestStatusType
Hourier [Sat, 2 Oct 2021 10:21:05 +0000 (19:21 +0900)]
[Refactor] #1710 Definitions QUEST_STATUS_* to enum class QuestStatusType

2 years ago[Refactor] #1710 コンパイル警告を除去した (本件と無関係のものも含む。全て変数のナローイング警告)
Hourier [Sat, 2 Oct 2021 10:09:50 +0000 (19:09 +0900)]
[Refactor] #1710 コンパイル警告を除去した (本件と無関係のものも含む。全て変数のナローイング警告)

2 years ago[Refactor] #1710 Reshaped write-diary.cpp automatically
Hourier [Sat, 2 Oct 2021 09:59:35 +0000 (18:59 +0900)]
[Refactor] #1710 Reshaped write-diary.cpp automatically

2 years ago[Refactor] #1710 Included macro function is_fixed_quest_idx() to quest_type::is_fixed()
Hourier [Sat, 2 Oct 2021 09:58:41 +0000 (18:58 +0900)]
[Refactor] #1710 Included macro function is_fixed_quest_idx() to quest_type::is_fixed()

2 years ago[Refactor] #1710 Reshaped QuestCompletionChecker
Hourier [Sat, 2 Oct 2021 09:44:25 +0000 (18:44 +0900)]
[Refactor] #1710 Reshaped QuestCompletionChecker

2 years ago[Refacotor] #1710 Made QuestCompletionChecker class
Hourier [Sat, 2 Oct 2021 09:15:59 +0000 (18:15 +0900)]
[Refacotor] #1710 Made QuestCompletionChecker class

2 years agoMerge pull request #1709 from Hourier/Replace-RandomArtActType-Enum-Class
Hourier [Sat, 2 Oct 2021 15:10:32 +0000 (00:10 +0900)]
Merge pull request #1709 from Hourier/Replace-RandomArtActType-Enum-Class

random-art-activation-type をenum classに置換した

2 years ago[Fix] #1700 不要なメッセージを削除し、MAXの取り扱いを修正した
Hourier [Sat, 2 Oct 2021 14:51:13 +0000 (23:51 +0900)]
[Fix] #1700 不要なメッセージを削除し、MAXの取り扱いを修正した

2 years ago[Refactor] #1700 Habu氏の指摘に従って一部修正した
Hourier [Sat, 2 Oct 2021 13:20:18 +0000 (22:20 +0900)]
[Refactor] #1700 Habu氏の指摘に従って一部修正した

2 years ago[Refactor] info-reader-util.h に定義されていたusing sviewはここでしか使っておらず省略の意義も薄いのでstd::string_vi...
Hourier [Sat, 2 Oct 2021 11:19:34 +0000 (20:19 +0900)]
[Refactor] info-reader-util.h に定義されていたusing sviewはここでしか使っておらず省略の意義も薄いのでstd::string_viewに修正した

2 years ago[Refactor] #1700 RandomArtActTypeのACT_* を*に変更した
Hourier [Sat, 2 Oct 2021 07:42:00 +0000 (16:42 +0900)]
[Refactor] #1700 RandomArtActTypeのACT_* を*に変更した

2 years ago[Refactor] #1700 Made RandomArtActType enum class
Hourier [Sat, 2 Oct 2021 04:53:24 +0000 (13:53 +0900)]
[Refactor] #1700 Made RandomArtActType enum class

2 years agoMerge pull request #1718 from habu1010/feature/monk-class-specific-data
Habu [Sat, 2 Oct 2021 14:41:46 +0000 (23:41 +0900)]
Merge pull request #1718 from habu1010/feature/monk-class-specific-data

[Refactor] 修行僧の構えを職業固有データに移動する

2 years ago[Refactor] 侍の型に関するソースコード上の名称を統一
Habu [Sat, 2 Oct 2021 14:25:14 +0000 (23:25 +0900)]
[Refactor] 侍の型に関するソースコード上の名称を統一

コード上の一貫性を考慮し、修行僧の構えに関する名称を、"kata" から
"samurai stance" に統一する。

2 years ago[Refactor] 修行僧の構えに関するソースコード上の名称を統一
Habu [Sat, 2 Oct 2021 14:10:25 +0000 (23:10 +0900)]
[Refactor] 修行僧の構えに関するソースコード上の名称を統一

コード上の一貫性を考慮し、修行僧の構えに関する名称を、"kamae" から
"monk stance" に統一する。

2 years ago[Refactor] 修行僧の構えを職業固有データに移動する
Habu [Sat, 2 Oct 2021 13:46:06 +0000 (22:46 +0900)]
[Refactor] 修行僧の構えを職業固有データに移動する

修行僧の職業固有データ monk_data_type を定義し、修行僧の構えの状態を
player_ptr::special_defence から samurai_data_type::kamae に移動する。
剣術家の型と同様に、get_kamae/set_kamae/kamae_is のヘルパ関数を使用する。
さらにこれも剣術家の型と同様に、構えで得られる特性フラグを PlayerClass::
form_tr_flags()で取得できるようにし、has_*() のような特性フラグにおける
構えのチェックをこの関数から得られる特性フラグのチェックに集約する。

2 years agoMerge pull request #1715 from Hourier/Delete-Alloc-Entry-Definition
Hourier [Sat, 2 Oct 2021 13:16:28 +0000 (22:16 +0900)]
Merge pull request #1715 from Hourier/Delete-Alloc-Entry-Definition

alloc-entry-definition.h を alloc-entries.h に吸収合併した

2 years ago[Refactor] #1714 Unified alloc-entry-definition.h into alloc-entries.h
Hourier [Sat, 2 Oct 2021 11:44:32 +0000 (20:44 +0900)]
[Refactor] #1714 Unified alloc-entry-definition.h into alloc-entries.h

2 years agoMerge pull request #1707 from habu1010/feature/samurai-class-specific-data
Habu [Sat, 2 Oct 2021 07:33:50 +0000 (16:33 +0900)]
Merge pull request #1707 from habu1010/feature/samurai-class-specific-data

[Refactor] 剣術家の型を職業固有データに移動する

2 years agoMerge pull request #1698 from Hourier/Change-Activation-Info-Vector
Hourier [Sat, 2 Oct 2021 07:22:50 +0000 (16:22 +0900)]
Merge pull request #1698 from Hourier/Change-Activation-Info-Vector

activation_info を配列からvectorに差し替えた

2 years ago[Fix] GCC環境でのコンパイルエラーを解消した
Hourier [Sat, 2 Oct 2021 07:01:08 +0000 (16:01 +0900)]
[Fix] GCC環境でのコンパイルエラーを解消した

2 years ago[Refactor] Habu氏の指摘に対応した
Hourier [Sat, 2 Oct 2021 05:25:56 +0000 (14:25 +0900)]
[Refactor] Habu氏の指摘に対応した

2 years ago[Refactor] activation_infoが見つからなかった時にnullptrではなくnulloptを返すようにした
Hourier [Sat, 2 Oct 2021 00:00:35 +0000 (09:00 +0900)]
[Refactor] activation_infoが見つからなかった時にnullptrではなくnulloptを返すようにした

2 years ago[Refactor] activation_info を配列からvectorに差し替えた
Hourier [Fri, 1 Oct 2021 23:34:36 +0000 (08:34 +0900)]
[Refactor] activation_info を配列からvectorに差し替えた

2 years ago[Refactor] 現在の剣術家の型を判定する関数
Habu [Sat, 2 Oct 2021 06:58:47 +0000 (15:58 +0900)]
[Refactor] 現在の剣術家の型を判定する関数

PlayerClass::get_kata() == SamuraiKata::XXX というパターンが多いので、
PlayerClass::kata_is() を実装し PlayerClass::kata_is(SamuraiKata::XXX)
という形で現在の型を判定できるようにする。

2 years ago[Refactor] 剣術家の型を職業固有データに移動する
Habu [Sat, 2 Oct 2021 06:24:40 +0000 (15:24 +0900)]
[Refactor] 剣術家の型を職業固有データに移動する

剣術家の職業固有データ samurai_data_type を定義し、剣術家の型の状態を
player_ptr::special_defence から samurai_data_type::kata に移動する。
使用している箇所が多く毎回 get_specific_data を呼ぶのは煩わしいので、
以下のヘルパ関数を PlayerClass に用意する。

- get_kata: 現在構えている型を取得する
- set_kata: 指定した型で構える
- break_kata: 指定した型の構えをしている場合型を崩す

また、構えている型から得られる特性フラグを PlayerClass::form_tr_flags()
で取得できるようにし、has_*() のような特性フラグにおける型のチェックを
この関数から得られる特性フラグのチェックに集約する。

2 years agoMerge pull request #1705 from habu1010/feature/wiz-cmd-create-artifact-from-list
Habu [Sat, 2 Oct 2021 06:07:38 +0000 (15:07 +0900)]
Merge pull request #1705 from habu1010/feature/wiz-cmd-create-artifact-from-list

[Feature] デバッグコマンドの固定アーティファクト生成をリストで選択する

2 years agoMerge pull request #1706 from sikabane-works/feature/delay-setting
Deskull [Sat, 2 Oct 2021 05:01:38 +0000 (14:01 +0900)]
Merge pull request #1706 from sikabane-works/feature/delay-setting

[Feature] #83 ウェイト値をmsecで0から1000へ選択可能に。

2 years ago[Feature] #83 ウェイト値をmsecで0から1000へ選択可能に。セーブデータ含めて型をbyteからint32_tへ。
Deskull [Sat, 2 Oct 2021 03:04:24 +0000 (12:04 +0900)]
[Feature] #83 ウェイト値をmsecで0から1000へ選択可能に。セーブデータ含めて型をbyteからint32_tへ。

2 years ago[Feature] デバッグコマンドの固定アーティファクト生成をリストで選択する
Habu [Fri, 1 Oct 2021 18:43:13 +0000 (03:43 +0900)]
[Feature] デバッグコマンドの固定アーティファクト生成をリストで選択する

いちいち a_info.txt を見て固定アーティファクトのIDを調べるのがいいかげん
面倒くさくなった。
装備のカテゴリのリスト→アーティファクトのリストで選択できるようにする。

2 years agoMerge pull request #1699 from Hourier/Fix-Kawarimi
Hourier [Sat, 2 Oct 2021 02:05:29 +0000 (11:05 +0900)]
Merge pull request #1699 from Hourier/Fix-Kawarimi

忍者以外でも変わり身で攻撃を回避する場合がある不具合を解消した

2 years agoMerge pull request #1703 from habu1010/feature/refactor-wiz-spoiler-item-group-table
Habu [Sat, 2 Oct 2021 01:54:55 +0000 (10:54 +0900)]
Merge pull request #1703 from habu1010/feature/refactor-wiz-spoiler-item-group-table

[Refactor] スポイラー出力に使用するアイテムのカテゴリ分けテーブル

2 years agoMerge pull request #1697 from habu1010/feature/refactor-int-char-converter
Habu [Sat, 2 Oct 2021 01:40:47 +0000 (10:40 +0900)]
Merge pull request #1697 from habu1010/feature/refactor-int-char-converter

[Refactor] ASCII文字↔整数の変換マクロ群を関数化する

2 years ago[Refactor] スポイラー出力に使用するアイテムのカテゴリ分けテーブル
Habu [Sat, 2 Oct 2021 01:36:47 +0000 (10:36 +0900)]
[Refactor] スポイラー出力に使用するアイテムのカテゴリ分けテーブル

アイテムおよびアーティファクトのスポイラーファイル出力に使用するカテゴリ
分け用のテーブルが直感的でないので、テーブルの定義と関連するコードをカテ
ゴリ分けとして直感的になるようにリファクタリングする。

2 years ago[Fix] 忍者以外でも変わり身で攻撃を回避する場合がある不具合を解消した / Resolved the issue that the attack was avoide...
Hourier [Sat, 2 Oct 2021 00:04:19 +0000 (09:04 +0900)]
[Fix] 忍者以外でも変わり身で攻撃を回避する場合がある不具合を解消した / Resolved the issue that the attack was avoided by kawarimi when the class of the player was other than Ninja

2 years ago[Refactor] ASCII文字↔整数の変換マクロ群を関数化する
Habu [Fri, 1 Oct 2021 16:02:07 +0000 (01:02 +0900)]
[Refactor] ASCII文字↔整数の変換マクロ群を関数化する

int-char-converter.h に定義されている、ASCII文字と整数の変換を行うマクロを
関数にする。
まずマクロは特別に理由がなければ使用を避けるべきであるという点と、I2A等は
マクロであるため値が int であり、例えば std::stringstream に << 演算子で
I2A(0) などをそのまま入れると "a" ではなく "97" になってしまうといった
問題が避けられる。

2 years agoMerge pull request #1691 from Hourier/Remove-Unnecessary-Blind-Table
Hourier [Fri, 1 Oct 2021 14:48:45 +0000 (23:48 +0900)]
Merge pull request #1691 from Hourier/Remove-Unnecessary-Blind-Table

effect-player.cpp の整形

2 years ago[Refactor] Habu氏の指摘に対応した
Hourier [Fri, 1 Oct 2021 14:35:20 +0000 (23:35 +0900)]
[Refactor] Habu氏の指摘に対応した

2 years ago[Refactor] Reshaped affect_player()
Hourier [Fri, 1 Oct 2021 14:11:46 +0000 (23:11 +0900)]
[Refactor] Reshaped affect_player()

2 years ago[Refactor] Reshaped check_continue_player_effect()
Hourier [Fri, 1 Oct 2021 13:55:18 +0000 (22:55 +0900)]
[Refactor] Reshaped check_continue_player_effect()

2 years ago[Refactor] Reshaped process_bolt_reflection()
Hourier [Fri, 1 Oct 2021 13:50:59 +0000 (22:50 +0900)]
[Refactor] Reshaped process_bolt_reflection()

2 years ago[Refactor] Removed blind_spell_effect_messages and ep_check_result
Hourier [Fri, 1 Oct 2021 13:47:38 +0000 (22:47 +0900)]
[Refactor] Removed blind_spell_effect_messages and ep_check_result

2 years agoMerge pull request #1686 from Hourier/Remove-Easy-Mode
Hourier [Fri, 1 Oct 2021 14:09:42 +0000 (23:09 +0900)]
Merge pull request #1686 from Hourier/Remove-Easy-Mode

初心者用簡単モードを削除した

2 years agoMerge pull request #1689 from habu1010/feature/refactor-monster-powers-table
Habu [Fri, 1 Oct 2021 13:51:48 +0000 (22:51 +0900)]
Merge pull request #1689 from habu1010/feature/refactor-monster-powers-table

青魔法関連のリファクタリング

2 years ago[Refactor] 青魔法の失敗率の計算を共通化する
Habu [Fri, 1 Oct 2021 13:17:08 +0000 (22:17 +0900)]
[Refactor] 青魔法の失敗率の計算を共通化する

青魔法の失敗率の計算が魔法リスト一覧表示用と実際の使用時用で別々に実装
されている。シンプルに良くないので魔法リスト一覧表示用でリファクタリング
された関数を実際の使用時にも使用するようにする。
また、関数の先頭ですべての変数を宣言する悪しき習慣が残っていたので必要な
時になってからの宣言に変更しておく。

2 years ago[Refactor] monster_powers/monster_powers_short を std::map にする
Habu [Thu, 30 Sep 2021 15:39:19 +0000 (00:39 +0900)]
[Refactor] monster_powers/monster_powers_short を std::map にする

青魔法とものまねで使用するモンスターの特技の定義テーブルを配列からstd::mapに
変更する。余計な整数とenum間のキャストを減らし、コードを直感的にするため。
その過程で get_learned_spell は配列のインデックスではなくモンスターの特技の
enum値を返すようにするリファクタリングも同時に行った。

2 years agoMerge pull request #1667 from habu1010/feature/refactor-bluemage-select-spell
Habu [Thu, 30 Sep 2021 14:27:05 +0000 (23:27 +0900)]
Merge pull request #1667 from habu1010/feature/refactor-bluemage-select-spell

[Refactor] 青魔法の選択処理

2 years ago[Style] 整形フォーマットと関数名修正
Habu [Thu, 30 Sep 2021 14:10:44 +0000 (23:10 +0900)]
[Style] 整形フォーマットと関数名修正

ブレースの付いていない制御文にブレースを付ける。
また、失敗率を計算する関数なのに名前が success_probability となっている
ので、failure_probability に変更する。

2 years agoMerge pull request #1682 from Hourier/New-Stun-Spec
Hourier [Thu, 30 Sep 2021 14:06:35 +0000 (23:06 +0900)]
Merge pull request #1682 from Hourier/New-Stun-Spec

新しい朦朧の仕様を実装した

2 years ago[Refactor] 青魔法の選択処理
Habu [Mon, 27 Sep 2021 07:08:48 +0000 (16:08 +0900)]
[Refactor] 青魔法の選択処理

get_learned_power に始まる青魔法の選択処理は、元々長大な1つの
関数だったものをいくつかの処理に機械的に分割したため、関数間の
パラメータの受け渡しが多くの不要なものを含め巨大な構造体に全部
ひっくるめて入れられており、実質的にグローバル変数による実装に
なってしまっている。
あまりにも読みづらいため、基本的な分割単位は維持しつつ全面的に
処理を書き直す。

2 years agoMerge pull request #1687 from habu1010/feature/fix-windows-include-headers
Habu [Thu, 30 Sep 2021 13:58:56 +0000 (22:58 +0900)]
Merge pull request #1687 from habu1010/feature/fix-windows-include-headers

Windows(Visual Studio)用の必要ヘッダファイルの調整

2 years ago[Refactor] #553 朦朧蓄積ランクに痛恨等で補正をかけるようにした
Hourier [Thu, 30 Sep 2021 13:21:12 +0000 (22:21 +0900)]
[Refactor] #553 朦朧蓄積ランクに痛恨等で補正をかけるようにした

2 years ago[Fix] 不足しているヘッダをインクルードする
Habu [Thu, 30 Sep 2021 13:34:09 +0000 (22:34 +0900)]
[Fix] 不足しているヘッダをインクルードする

Visual Studioの環境でプリコンパイル済みヘッダを使用しているのでコンパイル
できているが、本来インクルードしないとコンパイルエラーとなるヘッダファイルを
インクルードするようにする。

2 years ago[Fix] h-system.h でインクルードするヘッダの調整
Habu [Thu, 30 Sep 2021 13:26:34 +0000 (22:26 +0900)]
[Fix] h-system.h でインクルードするヘッダの調整

現状プリプロセッサで WINDOWS が定義されていると多くの標準的なヘッダが
読み込まれないようになっているが、あえてWINDOWSで外す必要はないと思われる。
プリコンパイル済みヘッダーが無効の場合、これらのヘッダが無いために出る
エラーもあるので、WINDOWS以外の環境と同様にインクルードしておく。
(なおSET_UIDはLinux/UNIX系環境でないと定義されないので、その部分はインク
ルードされることはない。)

2 years ago[Feature] #553 新しい朦朧仕様を実装した
Hourier [Wed, 29 Sep 2021 10:58:56 +0000 (19:58 +0900)]
[Feature] #553 新しい朦朧仕様を実装した

2 years ago[Refactor] #1653 Reshaped do_cmd_options_cheat()
Hourier [Thu, 30 Sep 2021 12:37:37 +0000 (21:37 +0900)]
[Refactor] #1653 Reshaped do_cmd_options_cheat()

2 years ago[Refactor] #1653 option_info 系を配列からvectorに差し替えた
Hourier [Thu, 30 Sep 2021 12:26:34 +0000 (21:26 +0900)]
[Refactor] #1653 option_info 系を配列からvectorに差し替えた

2 years ago[Refactor] #1653 小文字のcでもデバッグオプションを変更できるようにした
Hourier [Thu, 30 Sep 2021 11:51:13 +0000 (20:51 +0900)]
[Refactor] #1653 小文字のcでもデバッグオプションを変更できるようにした

2 years ago[Refactor] #1653 初心者用簡単モードを削除した
Hourier [Thu, 30 Sep 2021 08:03:45 +0000 (17:03 +0900)]
[Refactor] #1653 初心者用簡単モードを削除した

2 years ago[Feature] #553 朦朧で知能と賢さが両方減る確率を33.3%から20%に落とした
Hourier [Wed, 29 Sep 2021 09:09:43 +0000 (18:09 +0900)]
[Feature] #553 朦朧で知能と賢さが両方減る確率を33.3%から20%に落とした

2 years ago[Refactor] #553 PlayerStunRankを外から隠蔽するように設計を少し変えた / Changed the design about PlayerSt...
Hourier [Wed, 29 Sep 2021 09:01:17 +0000 (18:01 +0900)]
[Refactor] #553 PlayerStunRankを外から隠蔽するように設計を少し変えた / Changed the design about PlayerStun so that PlayerStunRank can't be seen from anywhere

2 years ago[Refactor] #553 Renamed calc_player_stun() to process_player_stun()
Hourier [Wed, 29 Sep 2021 08:55:31 +0000 (17:55 +0900)]
[Refactor] #553 Renamed calc_player_stun() to process_player_stun()

2 years agoMerge pull request #1684 from habu1010/feature/fix-debug-command-player-class-specifi...
Habu [Thu, 30 Sep 2021 12:36:56 +0000 (21:36 +0900)]
Merge pull request #1684 from habu1010/feature/fix-debug-command-player-class-specific-info

[Fix] デバッグコマンド実行時に職業固有データを更新する

2 years ago[Fix] デバッグコマンド実行時に職業固有データを更新する
Habu [Thu, 30 Sep 2021 12:21:14 +0000 (21:21 +0900)]
[Fix] デバッグコマンド実行時に職業固有データを更新する

デバッグコマンドで職業変更/領域変更を行った時、参照する職業固有データを
変更する必要がある可能性があるので、PlayerClass::init_specific_dataを
呼び出して職業固有データを適切なものに更新する。

2 years agoMerge pull request #1648 from Hourier/Reshape-Cmd-Items
Hourier [Wed, 29 Sep 2021 14:04:48 +0000 (23:04 +0900)]
Merge pull request #1648 from Hourier/Reshape-Cmd-Items

アイテムの使用に関する exe_hoge() 関数をhoge-execution.cpp/h に移しクラス化した

2 years ago[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に魔法棒を振れる確率へ失率を追加した
Hourier [Sat, 25 Sep 2021 13:51:16 +0000 (22:51 +0900)]
[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に魔法棒を振れる確率へ失率を追加した

2 years ago[Refactor] #1644 Reshaped execute() in ObjectZapWandEntity
Hourier [Sat, 25 Sep 2021 13:43:19 +0000 (22:43 +0900)]
[Refactor] #1644 Reshaped execute() in ObjectZapWandEntity

2 years ago[Refactor] #1644 Separated zapwand-execution.cpp/h from cmd-zapwand.cpp/h
Hourier [Sat, 25 Sep 2021 13:39:04 +0000 (22:39 +0900)]
[Refactor] #1644 Separated zapwand-execution.cpp/h from cmd-zapwand.cpp/h

2 years ago[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際にロッドを振れる確率へ失率を追加した
Hourier [Sat, 25 Sep 2021 13:04:16 +0000 (22:04 +0900)]
[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際にロッドを振れる確率へ失率を追加した

2 years ago[Refactor] #1644 Reshaped execute() in zaprod-execution.cpp
Hourier [Sat, 25 Sep 2021 12:58:53 +0000 (21:58 +0900)]
[Refactor] #1644 Reshaped execute() in zaprod-execution.cpp

2 years ago[Refactor] #1644 Separated zaprod-execution.cpp/h from cmd-usestaff.cpp/h
Hourier [Sat, 25 Sep 2021 12:49:23 +0000 (21:49 +0900)]
[Refactor] #1644 Separated zaprod-execution.cpp/h from cmd-usestaff.cpp/h

2 years ago[Refactor] #1644 Defined item-use-checker.cpp/h and moved check_stun() from quaff...
Hourier [Sat, 25 Sep 2021 12:19:16 +0000 (21:19 +0900)]
[Refactor] #1644 Defined item-use-checker.cpp/h and moved check_stun() from quaff/read/use-execution.cpp to them

2 years ago[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に杖を振れる確率へ失率を追加した
Hourier [Sat, 25 Sep 2021 12:07:24 +0000 (21:07 +0900)]
[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に杖を振れる確率へ失率を追加した

2 years ago[Refactor] #1644 Made use-execution.cpp/h class
Hourier [Sat, 25 Sep 2021 11:37:06 +0000 (20:37 +0900)]
[Refactor] #1644 Made use-execution.cpp/h class

2 years ago[Refactor] #1644 Reshaped exe_use_staff()
Hourier [Sat, 25 Sep 2021 11:13:07 +0000 (20:13 +0900)]
[Refactor] #1644 Reshaped exe_use_staff()

2 years ago[Refactor] #1644 Separated use-execution.cpp/h from cmd-usestaff.cpp/h
Hourier [Sat, 25 Sep 2021 11:08:46 +0000 (20:08 +0900)]
[Refactor] #1644 Separated use-execution.cpp/h from cmd-usestaff.cpp/h

2 years ago[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に薬を飲める確率へ失率を追加した
Hourier [Sat, 25 Sep 2021 09:24:08 +0000 (18:24 +0900)]
[Feature] #1644 新仕様における「ひどく朦朧」以上の朦朧状態に陥った際に薬を飲める確率へ失率を追加した

2 years ago[Refactor] #1644 Made ObjectQuaffEntity class
Hourier [Sat, 25 Sep 2021 09:15:04 +0000 (18:15 +0900)]
[Refactor] #1644 Made ObjectQuaffEntity class

2 years ago[Refactor] #1644 quaff-execution.cpp の整形 (最小限)
Hourier [Sat, 25 Sep 2021 07:18:10 +0000 (16:18 +0900)]
[Refactor] #1644 quaff-execution.cpp の整形 (最小限)

2 years ago[Refactor] #1644 get_item_chance_penalty() を定義し、get_magic_chance_penalty() と処理を分離した
Hourier [Sat, 25 Sep 2021 06:00:32 +0000 (15:00 +0900)]
[Refactor] #1644 get_item_chance_penalty() を定義し、get_magic_chance_penalty() と処理を分離した
その上で、巻物を読める確率へ失率を追加した
(但し失率の定義は暫定なので既存の仕様通りに動作する)

2 years ago[Refactor] #1644 read-execution.cpp をクラスとして再定義した (最小限)
Hourier [Sat, 25 Sep 2021 03:31:45 +0000 (12:31 +0900)]
[Refactor] #1644 read-execution.cpp をクラスとして再定義した (最小限)

2 years agoMerge pull request #1677 from habu1010/feature/move-player-race-function-to-class...
Habu [Wed, 29 Sep 2021 12:33:03 +0000 (21:33 +0900)]
Merge pull request #1677 from habu1010/feature/move-player-race-function-to-class-member

[Refactor] 種族関連の処理を PlayerRace クラスへ移動する

2 years agoMerge pull request #1678 from habu1010/feature/add-new-resistances-to-ult-res-and...
Habu [Wed, 29 Sep 2021 12:32:39 +0000 (21:32 +0900)]
Merge pull request #1678 from habu1010/feature/add-new-resistances-to-ult-res-and-musou

[Feature] 究極の耐性と無双の型に新規耐性を追加

2 years ago[Feature] 究極の耐性と無双の型に新規耐性を追加
Habu [Wed, 29 Sep 2021 12:08:38 +0000 (21:08 +0900)]
[Feature] 究極の耐性と無双の型に新規耐性を追加

Resolve #1675.
究極の耐性と無双の型はあらゆる一時耐性を得る特徴を持っているが、
最近新規に追加された耐性フラグの水・時間逆転・呪力に対応していない。
特徴からいってこれらの耐性も得られるべきだと思われるので追加する。

2 years ago[Refactor] 種族関連の処理を PlayerRace クラスへ移動する
Habu [Tue, 28 Sep 2021 15:02:08 +0000 (00:02 +0900)]
[Refactor] 種族関連の処理を PlayerRace クラスへ移動する

以下の種族関連の処理を PlayerRace クラスのメンバ関数にする。

- player_race_has_flag / add_player_race_flags
  → 内容がほぼ同一なので PlayerRace::tr_flags() にまとめる
- get_player_race_info
- player_race_life / player_face_food

2 years agoMerge pull request #1676 from Hourier/Fix-Stun-Accumulation
Hourier [Wed, 29 Sep 2021 10:21:03 +0000 (19:21 +0900)]
Merge pull request #1676 from Hourier/Fix-Stun-Accumulation

痛恨の一撃を食らった時に朦朧値が正しく蓄積しない不具合を修正した

2 years ago[Fix] 痛恨の一撃を食らった時に朦朧値が正しく蓄積しない不具合を修正した / Resolved the issue that the accumulation...
Hourier [Wed, 29 Sep 2021 10:07:51 +0000 (19:07 +0900)]
[Fix] 痛恨の一撃を食らった時に朦朧値が正しく蓄積しない不具合を修正した / Resolved the issue that the accumulation value of stun didn't increase when the player is attacked with critical one

2 years agoMerge pull request #1674 from habu1010/feature/refactor-calss-tr-flags-dealing
Habu [Tue, 28 Sep 2021 15:01:41 +0000 (00:01 +0900)]
Merge pull request #1674 from habu1010/feature/refactor-calss-tr-flags-dealing

職業由来の特性フラグの処理のリファクタリング

2 years ago[Refactor] 職業由来の特性フラグを得るのに PlayerClass::tr_flags() を使用する
Habu [Tue, 28 Sep 2021 13:21:43 +0000 (22:21 +0900)]
[Refactor] 職業由来の特性フラグを得るのに PlayerClass::tr_flags() を使用する

既存の player-status-flags.cpp 内の特性フラグの有無をチェックする関数群で
職業由来の特性フラグの取得条件はプレイヤー情報表示用(旧 add_class_flags)と
別に二重実装されていた。
当然よろしくない状態なので、add_class_flags から移動させた PlayerClass::
tr_flags() を使用するようにする。
また、装備のスロット/種族/職業由来の特性フラグ有無を得る処理を
common_cause_flags() に共通化して同じコードが繰り返されないようにする。

2 years ago[Refactor] 職業の特性フラグを取得する関数を PlayerClass のメンバ関数にする
Habu [Tue, 28 Sep 2021 13:21:43 +0000 (22:21 +0900)]
[Refactor] 職業の特性フラグを取得する関数を PlayerClass のメンバ関数にする

職業(およびそのLV等)で得られる特性フラグを得る関数 add_class_flags を
PlayerClass::tr_flags() に移動する。

2 years agoMerge pull request #1673 from habu1010/feature/adjust-clang-format-rule
Habu [Tue, 28 Sep 2021 13:14:10 +0000 (22:14 +0900)]
Merge pull request #1673 from habu1010/feature/adjust-clang-format-rule

[Style] clang-format の整形ルールの調整

2 years agoMerge pull request #1629 from Hourier/Make-Chest-Class
Hourier [Tue, 28 Sep 2021 13:00:44 +0000 (22:00 +0900)]
Merge pull request #1629 from Hourier/Make-Chest-Class

chest.cpp/h のクラス化 w/ ChestTrapTypeの定義

2 years ago[Refactor] #1598 CHEST_* のdefine定数群をenum class ChestTrapTypeとして再定義した
Hourier [Fri, 24 Sep 2021 11:54:59 +0000 (20:54 +0900)]
[Refactor] #1598 CHEST_*  のdefine定数群をenum class ChestTrapTypeとして再定義した

2 years agoMerge pull request #1668 from habu1010/feature/swap-monster-capture-ball-with-weapon
Habu [Tue, 28 Sep 2021 12:24:34 +0000 (21:24 +0900)]
Merge pull request #1668 from habu1010/feature/swap-monster-capture-ball-with-weapon

[Feature] モンスター・ボールを武器と交換できるようにする

2 years ago[Feature] モンスター・ボールを武器と交換できるようにする
Habu [Mon, 27 Sep 2021 14:16:38 +0000 (23:16 +0900)]
[Feature] モンスター・ボールを武器と交換できるようにする

Resolve #1442.
現状、武器と盾を装備している時はモンスター・ボールを装備すると強制的に
盾と交換されてしまう。
一発で武器と交換できてはならない理由はないので交換できるようにする。

2 years ago[Style] clang-format の整形ルールの調整
Habu [Tue, 28 Sep 2021 11:38:45 +0000 (20:38 +0900)]
[Style] clang-format の整形ルールの調整

Resolve #1671.

2 years ago[Refactor] #1598 Changed chest_traps from array to vector in trap.cpp/h"
Hourier [Fri, 24 Sep 2021 10:38:43 +0000 (19:38 +0900)]
[Refactor] #1598 Changed chest_traps from array to vector in trap.cpp/h"

2 years ago[Refactor] #1598 Make chest.cpp/h class
Hourier [Fri, 24 Sep 2021 10:35:34 +0000 (19:35 +0900)]
[Refactor] #1598 Make chest.cpp/h class

2 years agoMerge pull request #1672 from habu1010/feature/flag-group-first
Habu [Tue, 28 Sep 2021 11:34:11 +0000 (20:34 +0900)]
Merge pull request #1672 from habu1010/feature/flag-group-first

[Feature] FlagGroup::first() を実装

2 years agoMerge pull request #1660 from Hourier/Remove-SourceTrail-Warning
Hourier [Tue, 28 Sep 2021 11:12:47 +0000 (20:12 +0900)]
Merge pull request #1660 from Hourier/Remove-SourceTrail-Warning

SourceTrailの解析 (clangベース)でエラーが出た箇所を修正した