OSDN Git Service

hengbandforosx/hengbandosx.git
2 years ago[Refactor] #1469 Moved hex_spelling() from global to RealmHex
Hourier [Mon, 6 Sep 2021 10:55:25 +0000 (19:55 +0900)]
[Refactor] #1469 Moved hex_spelling() from global to RealmHex

2 years ago[Refactor] #1469 United *_barrier() to check_hex_barrier()
Hourier [Mon, 6 Sep 2021 09:44:07 +0000 (18:44 +0900)]
[Refactor] #1469 United *_barrier() to check_hex_barrier()

2 years ago[Refactor] #1469 Reshaped multiply_barrier()
Hourier [Mon, 6 Sep 2021 09:32:14 +0000 (18:32 +0900)]
[Refactor] #1469 Reshaped multiply_barrier()

2 years ago[Refactor] #1469 Moved multiply_barrier() from global to RealmHex
Hourier [Mon, 6 Sep 2021 09:31:13 +0000 (18:31 +0900)]
[Refactor] #1469 Moved multiply_barrier() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped magic_barrier()
Hourier [Mon, 6 Sep 2021 09:29:37 +0000 (18:29 +0900)]
[Refactor] #1469 Reshaped magic_barrier()

2 years ago[Refactor] #1469 Moved magic_barrier() from global to RealmHex
Hourier [Mon, 6 Sep 2021 09:27:20 +0000 (18:27 +0900)]
[Refactor] #1469 Moved magic_barrier() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped teleport_barrier()
Hourier [Mon, 6 Sep 2021 09:25:27 +0000 (18:25 +0900)]
[Refactor] #1469 Reshaped teleport_barrier()

2 years ago[Refactor] #1469 Moved teleport_barrier() from global to RealmHex
Hourier [Mon, 6 Sep 2021 09:24:01 +0000 (18:24 +0900)]
[Refactor] #1469 Moved teleport_barrier() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped revenge_store()
Hourier [Mon, 6 Sep 2021 09:21:37 +0000 (18:21 +0900)]
[Refactor] #1469 Reshaped revenge_store()

2 years ago[Refactor] #1469 Moved revenge_store() from global to RealmHex
Hourier [Mon, 6 Sep 2021 09:19:47 +0000 (18:19 +0900)]
[Refactor] #1469 Moved revenge_store() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped revenge_spell()
Hourier [Mon, 6 Sep 2021 09:19:27 +0000 (18:19 +0900)]
[Refactor] #1469 Reshaped revenge_spell()

2 years ago[Refactor] #1469 Moved revenge_spell() from global to RealmHex
Hourier [Mon, 6 Sep 2021 09:18:19 +0000 (18:18 +0900)]
[Refactor] #1469 Moved revenge_spell() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped hex_spell_fully()
Hourier [Mon, 6 Sep 2021 09:18:05 +0000 (18:18 +0900)]
[Refactor] #1469 Reshaped hex_spell_fully()

2 years ago[Refactor] #1469 Moved hex_spell_fully() from global to RealmHex
Hourier [Mon, 6 Sep 2021 08:57:49 +0000 (17:57 +0900)]
[Refactor] #1469 Moved hex_spell_fully() from global to RealmHex

2 years ago[Refactor] #1469 Reshaped stop_hex_spell_all()
Hourier [Mon, 6 Sep 2021 08:56:10 +0000 (17:56 +0900)]
[Refactor] #1469 Reshaped stop_hex_spell_all()

2 years ago[Refactor] #1469 Moved stop_hex_spell_all() from global to RealmHex
Hourier [Mon, 6 Sep 2021 08:53:09 +0000 (17:53 +0900)]
[Refactor] #1469 Moved stop_hex_spell_all() from global to RealmHex

2 years ago[Refactor] #1469 Separated display_spells_list() from select_spell_stopping()
Hourier [Sun, 5 Sep 2021 15:30:34 +0000 (00:30 +0900)]
[Refactor] #1469 Separated display_spells_list() from select_spell_stopping()

2 years ago[Refactor] #1469 Adjusted arguments of gain_exp_expert() and gain_exp_master()
Hourier [Sun, 5 Sep 2021 15:20:42 +0000 (00:20 +0900)]
[Refactor] #1469 Adjusted arguments of gain_exp_expert() and gain_exp_master()

2 years ago[Refactor] #1469 Separated gain_exp_master() from gain_exp_from_hex()
Hourier [Sun, 5 Sep 2021 15:18:34 +0000 (00:18 +0900)]
[Refactor] #1469 Separated gain_exp_master() from gain_exp_from_hex()

2 years ago[Refactor] #1469 Separated gain_exp_expert() from gain_exp_from_hex()
Hourier [Sun, 5 Sep 2021 15:16:04 +0000 (00:16 +0900)]
[Refactor] #1469 Separated gain_exp_expert() from gain_exp_from_hex()

2 years ago[Refactor] #1469 Separated gain_exp_skilled() from gain_exp_from_hex()
Hourier [Sun, 5 Sep 2021 15:13:47 +0000 (00:13 +0900)]
[Refactor] #1469 Separated gain_exp_skilled() from gain_exp_from_hex()

2 years ago[Refactor] #1469 Separated gain_exp_from_hex() from check_hex()
Hourier [Sun, 5 Sep 2021 15:10:48 +0000 (00:10 +0900)]
[Refactor] #1469 Separated gain_exp_from_hex() from check_hex()

2 years ago[Refactor] #1469 Separated process_mana_cost() from check_hex()
Hourier [Sun, 5 Sep 2021 14:59:01 +0000 (23:59 +0900)]
[Refactor] #1469 Separated process_mana_cost() from check_hex()

2 years ago[Refactor] #1469 Separated check_restart() from check_hex()
Hourier [Sun, 5 Sep 2021 14:51:05 +0000 (23:51 +0900)]
[Refactor] #1469 Separated check_restart() from check_hex()

2 years ago[Refactor] #1469 Reshaped check_hex()
Hourier [Sun, 5 Sep 2021 14:48:11 +0000 (23:48 +0900)]
[Refactor] #1469 Reshaped check_hex()

2 years ago[Refactor] #1469 Moved check_hex() from global to RealmHex
Hourier [Sun, 5 Sep 2021 14:38:41 +0000 (23:38 +0900)]
[Refactor] #1469 Moved check_hex() from global to RealmHex

2 years ago[Refactor] #1469 Separated select_spell_stopping() from stop_hex_spell()
Hourier [Sun, 5 Sep 2021 13:33:02 +0000 (22:33 +0900)]
[Refactor] #1469 Separated select_spell_stopping() from stop_hex_spell()

2 years ago[Refactor] #1469 Reshaped stop_hex_spell()
Hourier [Sun, 5 Sep 2021 13:23:54 +0000 (22:23 +0900)]
[Refactor] #1469 Reshaped stop_hex_spell()

2 years ago[Refactor] #1469 Moved stop_hex_spell() from global to RealmHex
Hourier [Sun, 5 Sep 2021 08:54:23 +0000 (17:54 +0900)]
[Refactor] #1469 Moved stop_hex_spell() from global to RealmHex

2 years ago[Refactor] #1469 Defined the class RealmHex
Hourier [Sun, 5 Sep 2021 08:48:10 +0000 (17:48 +0900)]
[Refactor] #1469 Defined the class RealmHex

2 years agoMerge pull request #1481 from habu1010/featufe/add-bom-all-source-code
Habu [Mon, 6 Sep 2021 12:01:39 +0000 (21:01 +0900)]
Merge pull request #1481 from habu1010/featufe/add-bom-all-source-code

[Fix] すべてのソースファイルにBOMを付与する

2 years ago[Fix] すべてのソースファイルにBOMを付与する
Habu [Mon, 6 Sep 2021 11:49:33 +0000 (20:49 +0900)]
[Fix] すべてのソースファイルにBOMを付与する

2 years agoMerge pull request #1472 from habu1010/feature/tr-flags-flaggroupnize
Habu [Mon, 6 Sep 2021 11:42:29 +0000 (20:42 +0900)]
Merge pull request #1472 from habu1010/feature/tr-flags-flaggroupnize

TrFlagsのFlagGroup化

2 years ago[Feature/Refactor] TrFlagsをFlagGroupクラスにする
Habu [Sun, 5 Sep 2021 14:10:42 +0000 (23:10 +0900)]
[Feature/Refactor] TrFlagsをFlagGroupクラスにする

これまでBIT_FLAGSの配列として定義されていたアイテムの特性フラグ(TR_*)の
集合を扱う変数をFlagGroupクラスに移行する。
FlagGroupクラスを使うことにより、特性フラグ関連のコードが読み書きしやす
くなり、特性フラグを増やすのも容易になる。

2 years agoMerge pull request #1475 from shimitei/feature/fix_cave_no_regen
shimitei [Mon, 6 Sep 2021 09:55:04 +0000 (18:55 +0900)]
Merge pull request #1475 from shimitei/feature/fix_cave_no_regen

[Fix] 地形ダメージ判定時の自然回復フラグ修正

2 years ago[Fix] 地形ダメージ判定時の自然回復フラグ修正
shimitei [Mon, 6 Sep 2021 05:02:47 +0000 (14:02 +0900)]
[Fix] 地形ダメージ判定時の自然回復フラグ修正

溶岩等の地形ダメージ判定時に、ダメージを受けた場合のみ自然回復なしフラグを設定するように修正した。

2 years agoMerge pull request #1463 from habu1010/feature/fix-x11-resource-leak
Habu [Sun, 5 Sep 2021 14:09:11 +0000 (23:09 +0900)]
Merge pull request #1463 from habu1010/feature/fix-x11-resource-leak

[Fix] X11版インターフェースのリソースリーク

2 years agoMerge pull request #1470 from sikabane-works/release/3.0.0Alpha37
Deskull [Sun, 5 Sep 2021 12:56:38 +0000 (21:56 +0900)]
Merge pull request #1470 from sikabane-works/release/3.0.0Alpha37

[Release] 3.0.0Alpha37

2 years ago[Release] 3.0.0Alpha37
Deskull [Sun, 5 Sep 2021 12:34:28 +0000 (21:34 +0900)]
[Release] 3.0.0Alpha37

2 years ago[Fix] X11版インターフェースのリソースリーク
Habu [Sat, 4 Sep 2021 11:12:35 +0000 (20:12 +0900)]
[Fix] X11版インターフェースのリソースリーク

Memory Sanitizer のノイズとなるので見つけうる限りのリソース漏れ
コードを修正する。

XIMとXftに関するリソース漏れだけはどうしても修正できなかった。
ライブラリの仕様としてどうしても完全にリソース漏れ無しにできない
可能性がある。

2 years agoMerge pull request #1467 from Hourier/feature/Unite-Grid-Type-Alpha37
Hourier [Sun, 5 Sep 2021 09:20:10 +0000 (18:20 +0900)]
Merge pull request #1467 from Hourier/feature/Unite-Grid-Type-Alpha37

grid-type.cpp/h のリファクタリング&メソッド移動

2 years agoMerge pull request #1465 from Hourier/feature/Replace-NULL-to-nullptr
Hourier [Sun, 5 Sep 2021 09:10:13 +0000 (18:10 +0900)]
Merge pull request #1465 from Hourier/feature/Replace-NULL-to-nullptr

'NULL' を 'nullptr' に変える (Win32APIを除く)

2 years ago[Refactor] #1444 Added const to all methods in grid_type
Hourier [Fri, 3 Sep 2021 12:46:08 +0000 (21:46 +0900)]
[Refactor] #1444 Added const to all methods in grid_type

2 years ago[Refactor] #1444 ついでながらtgt_pt_move_to_symbol() をtgt_pt_info::move_to_symbol() に繰り込んだ
Hourier [Fri, 3 Sep 2021 12:42:28 +0000 (21:42 +0900)]
[Refactor] #1444 ついでながらtgt_pt_move_to_symbol() をtgt_pt_info::move_to_symbol() に繰り込んだ

2 years ago[Refactor] #1444 Renamed cave_is_symbol_grid() to is_symbol() and moved from grid...
Hourier [Fri, 3 Sep 2021 12:07:46 +0000 (21:07 +0900)]
[Refactor] #1444 Renamed cave_is_symbol_grid() to is_symbol() and moved from grid-selector.cpp to grid-type-definition.cpp/h

2 years ago[Refactor] #1444 Reshaped cave_set_feat()
Hourier [Fri, 3 Sep 2021 11:59:57 +0000 (20:59 +0900)]
[Refactor] #1444 Reshaped cave_set_feat()

2 years ago[Refactor] #1444 Removed player_has_los_grid() and replaced it to is_view()
Hourier [Fri, 3 Sep 2021 11:58:50 +0000 (20:58 +0900)]
[Refactor] #1444 Removed player_has_los_grid() and replaced it to is_view()

2 years ago[Refactor] #1448 Replaced 'NULL' to 'nullptr' except for Win32API
Hourier [Sun, 5 Sep 2021 02:15:19 +0000 (11:15 +0900)]
[Refactor] #1448 Replaced 'NULL' to 'nullptr' except for Win32API

2 years ago[Refactor] #1448 Replaced 'return (NULL);' to 'return nullptr;'
Hourier [Sun, 5 Sep 2021 02:07:22 +0000 (11:07 +0900)]
[Refactor] #1448 Replaced 'return (NULL);' to 'return nullptr;'

2 years ago[Refactor] #1448 Changed 'NULL == hoge' to 'hoge == nullptr'
Hourier [Sun, 5 Sep 2021 02:05:24 +0000 (11:05 +0900)]
[Refactor] #1448 Changed 'NULL == hoge' to 'hoge == nullptr'

2 years ago[Refactor] #1448 Reshaped automatically for non-Windows main*.cpp
Hourier [Sun, 5 Sep 2021 01:19:29 +0000 (10:19 +0900)]
[Refactor] #1448 Reshaped automatically for non-Windows main*.cpp

2 years agoMerge pull request #1462 from Hourier/feature/Delete-Unused-Hook-Files
Hourier [Sat, 4 Sep 2021 11:16:02 +0000 (20:16 +0900)]
Merge pull request #1462 from Hourier/feature/Delete-Unused-Hook-Files

使われていないhook-*.cpp/h の削除

2 years ago[Refactor] Deleted unused hook-*.cpp/h
Hourier [Sat, 4 Sep 2021 10:16:51 +0000 (19:16 +0900)]
[Refactor] Deleted unused hook-*.cpp/h

2 years agoMerge pull request #1461 from habu1010/feature/object-flags-change-interface
Habu [Sat, 4 Sep 2021 10:49:20 +0000 (19:49 +0900)]
Merge pull request #1461 from habu1010/feature/object-flags-change-interface

[Refactor] object_flags関数のインターフェースを変更する

2 years ago[Refactor] object_flags_known のインターフェース変更
Habu [Sat, 4 Sep 2021 09:31:44 +0000 (18:31 +0900)]
[Refactor] object_flags_known のインターフェース変更

object_flags関数と同様のインターフェース変更をobject_flags_known
関数にも適用する。

2 years agoMerge pull request #1416 from Hourier/feature/Remove-Unused-Preprocessor
Hourier [Sat, 4 Sep 2021 09:41:46 +0000 (18:41 +0900)]
Merge pull request #1416 from Hourier/feature/Remove-Unused-Preprocessor

もう使われていないプリプロの削除@h-system.h

2 years agoMerge pull request #1408 from sikabane-works/feature/refactor-avatar-comments
Deskull [Sat, 4 Sep 2021 09:26:15 +0000 (18:26 +0900)]
Merge pull request #1408 from sikabane-works/feature/refactor-avatar-comments

[Refactor] avatar ディレクトリ以下のコメントをDoxygen向けに追加、整理.

2 years agoMerge pull request #1421 from sikabane-works/feature/refactor-io-dump-comment
Deskull [Sat, 4 Sep 2021 09:26:00 +0000 (18:26 +0900)]
Merge pull request #1421 from sikabane-works/feature/refactor-io-dump-comment

[Refactor] io-dump ディレクトリ内のコメントを Doxygen 向けに整理.

2 years ago[Refactor] object_flags のインターフェース変更
Habu [Sat, 4 Sep 2021 09:05:30 +0000 (18:05 +0900)]
[Refactor] object_flags のインターフェース変更

object_flags関数でアイテムのフラグ情報の変数を得る方法を、引数にフラグ
情報変数を渡して書き換えてもらう方式から、戻り値でフラグ情報変数を
取得する方法に変更する。
このほうがフラグ情報を得るインターフェースとして明白であるし、RVOに
より最適化されるのでオブジェクトのコピーも発生せずパフォーマンスにも
問題はない。

2 years ago[Refactor] TrFlagsを生配列からstd::arrayにする
Habu [Sat, 4 Sep 2021 09:20:03 +0000 (18:20 +0900)]
[Refactor] TrFlagsを生配列からstd::arrayにする

今後のリファクタリングを見据えるため、TrFlagsを生配列から
std::array型へ変更する。
これに伴い、配列インデックスのループによる処理を以下の通り
置き換える。

- クリア → std::array::fill メソッドによるクリア
- コピー → 構造体のコピー代入
- 比較 → std::arrayクラスの比較演算子による比較

2 years ago[Style] apply clang-format
Habu [Sat, 4 Sep 2021 09:20:03 +0000 (18:20 +0900)]
[Style] apply clang-format

2 years agoMerge pull request #1458 from Hourier/feature/Replace-Typedef
Hourier [Sat, 4 Sep 2021 09:16:04 +0000 (18:16 +0900)]
Merge pull request #1458 from Hourier/feature/Replace-Typedef

typedef struct hoge_type hoge_type; をstruct hoge_type; に置換する

2 years ago[Refactor] #1447 Removed typedef declerations in main-*.cpp regarding Linux
Hourier [Sat, 4 Sep 2021 08:26:56 +0000 (17:26 +0900)]
[Refactor] #1447 Removed typedef declerations in main-*.cpp regarding Linux

2 years ago[Refactor] #1447 Replaced 'typedef struct old_race_flags old_race_flags;' to 'struct...
Hourier [Sat, 4 Sep 2021 08:20:24 +0000 (17:20 +0900)]
[Refactor] #1447 Replaced 'typedef struct old_race_flags old_race_flags;' to 'struct old_race_flags;'

2 years ago[Refactor] #1447 Replaced 'typedef struct turn_flags turn_flags;' to 'struct turn_flags;'
Hourier [Sat, 4 Sep 2021 08:19:37 +0000 (17:19 +0900)]
[Refactor] #1447 Replaced 'typedef struct turn_flags turn_flags;' to 'struct turn_flags;'

2 years ago[Refactor] #1447 Replaced 'typedef struct saved_floor_type saved_floor_type;' to...
Hourier [Sat, 4 Sep 2021 07:07:30 +0000 (16:07 +0900)]
[Refactor] #1447 Replaced 'typedef struct saved_floor_type saved_floor_type;' to 'struct saved_floor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct player_attack_type player_attack_type;...
Hourier [Sat, 4 Sep 2021 07:05:55 +0000 (16:05 +0900)]
[Refactor] #1447 Replaced 'typedef struct player_attack_type player_attack_type;' to 'struct player_attack_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct flavor_type flavor_type;' to 'struct flavor...
Hourier [Sat, 4 Sep 2021 07:04:09 +0000 (16:04 +0900)]
[Refactor] #1447 Replaced 'typedef struct flavor_type flavor_type;' to 'struct flavor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct bmc_type bmc_type;' to 'struct bmc_type;'
Hourier [Sat, 4 Sep 2021 07:03:24 +0000 (16:03 +0900)]
[Refactor] #1447 Replaced 'typedef struct bmc_type bmc_type;' to 'struct bmc_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct activation_type activation_type;' to 'struc...
Hourier [Sat, 4 Sep 2021 07:01:46 +0000 (16:01 +0900)]
[Refactor] #1447 Replaced 'typedef struct activation_type activation_type;' to 'struct activation_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct lore_type lore_type;' to 'struct lore_type;'
Hourier [Sat, 4 Sep 2021 06:58:50 +0000 (15:58 +0900)]
[Refactor] #1447 Replaced 'typedef struct lore_type lore_type;' to 'struct lore_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct effect_player_type effect_player_type;...
Hourier [Sat, 4 Sep 2021 06:55:59 +0000 (15:55 +0900)]
[Refactor] #1447 Replaced 'typedef struct effect_player_type effect_player_type;' to 'struct effect_player_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct effect_monster_type effect_monster_type...
Hourier [Sat, 4 Sep 2021 06:55:08 +0000 (15:55 +0900)]
[Refactor] #1447 Replaced 'typedef struct effect_monster_type effect_monster_type;' to 'struct effect_monster_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct rc_type rc_type;' to 'struct rc_type;'
Hourier [Sat, 4 Sep 2021 06:53:37 +0000 (15:53 +0900)]
[Refactor] #1447 Replaced 'typedef struct rc_type rc_type;' to 'struct rc_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct rpi_type rpi_type;' to 'struct rpi_type;'
Hourier [Sat, 4 Sep 2021 06:53:29 +0000 (15:53 +0900)]
[Refactor] #1447 Replaced 'typedef struct rpi_type rpi_type;' to 'struct rpi_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct text_body_type text_body_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:50:47 +0000 (15:50 +0900)]
[Refactor] #1447 Replaced 'typedef struct text_body_type text_body_type;' to 'struct text_body_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct self_info_type self_info_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:49:29 +0000 (15:49 +0900)]
[Refactor] #1447 Replaced 'typedef struct self_info_type self_info_type;' to 'struct self_info_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dt_type dt_type;' to 'struct dt_type;'
Hourier [Sat, 4 Sep 2021 06:43:54 +0000 (15:43 +0900)]
[Refactor] #1447 Replaced 'typedef struct dt_type dt_type;' to 'struct dt_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dungeon_type dungeon_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:42:41 +0000 (15:42 +0900)]
[Refactor] #1447 Replaced 'typedef struct dungeon_type dungeon_type;' to 'struct dungeon_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dun_data_type dun_data_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:41:57 +0000 (15:41 +0900)]
[Refactor] #1447 Replaced 'typedef struct dun_data_type dun_data_type;' to 'struct dun_data_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct monster_race monster_race;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:40:50 +0000 (15:40 +0900)]
[Refactor] #1447 Replaced 'typedef struct monster_race monster_race;' to 'struct monster_race;'

2 years ago[Refactor] #1447 Replaced 'typedef struct monster_type monster_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:40:10 +0000 (15:40 +0900)]
[Refactor] #1447 Replaced 'typedef struct monster_type monster_type;' to 'struct monster_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct grid_type grid_type;' to 'struct grid_type;'
Hourier [Sat, 4 Sep 2021 06:38:33 +0000 (15:38 +0900)]
[Refactor] #1447 Replaced 'typedef struct grid_type grid_type;' to 'struct grid_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct object_type object_type;' to 'struct object...
Hourier [Sat, 4 Sep 2021 06:38:02 +0000 (15:38 +0900)]
[Refactor] #1447 Replaced 'typedef struct object_type object_type;' to 'struct object_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct floor_type floor_type;' to 'struct floor_type;'
Hourier [Sat, 4 Sep 2021 06:37:03 +0000 (15:37 +0900)]
[Refactor] #1447 Replaced 'typedef struct floor_type floor_type;' to 'struct floor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct player_type player_type;' to 'struct player...
Hourier [Sat, 4 Sep 2021 06:35:44 +0000 (15:35 +0900)]
[Refactor] #1447 Replaced 'typedef struct player_type player_type;' to 'struct player_type;'

2 years agoMerge pull request #1457 from Hourier/feature/Remove-Macro-Function-SGN
Hourier [Sat, 4 Sep 2021 05:34:52 +0000 (14:34 +0900)]
Merge pull request #1457 from Hourier/feature/Remove-Macro-Function-SGN

SGN() の削除 他 jump_floors() の微修正

2 years ago[Refactor] #1435 Replaced bit calculations in jump_floors()
Hourier [Mon, 30 Aug 2021 13:01:41 +0000 (22:01 +0900)]
[Refactor] #1435 Replaced bit calculations in jump_floors()

2 years ago[Refactor] #1435 Reshaped jump_floors()
Hourier [Mon, 30 Aug 2021 12:59:32 +0000 (21:59 +0900)]
[Refactor] #1435 Reshaped jump_floors()

2 years ago[Refactor] #1435 Remove SGN() in h-define.h
Hourier [Mon, 30 Aug 2021 12:58:30 +0000 (21:58 +0900)]
[Refactor] #1435 Remove SGN() in h-define.h

2 years agoMerge pull request #1456 from Hourier/feature/Remove-Compilation-Warning
Hourier [Sat, 4 Sep 2021 05:19:00 +0000 (14:19 +0900)]
Merge pull request #1456 from Hourier/feature/Remove-Compilation-Warning

object_type::is_offerable() のコンパイル警告修正

2 years agoMerge pull request #1453 from habu1010/feature/random-new-high-resistance
Habu [Sat, 4 Sep 2021 05:10:34 +0000 (14:10 +0900)]
Merge pull request #1453 from habu1010/feature/random-new-high-resistance

上位耐性のランダム付与とランダムアーティファクトに 3.0.0Alpha で新しく追加された耐性が付与されるようにする

2 years ago[Refactor] Fixed compilation warning in object-type-definition.cpp
Hourier [Sat, 4 Sep 2021 04:32:51 +0000 (13:32 +0900)]
[Refactor] Fixed compilation warning in object-type-definition.cpp

2 years ago[Refactor] フラグ付与処理関数の共通化
Habu [Sat, 4 Sep 2021 03:54:22 +0000 (12:54 +0900)]
[Refactor] フラグ付与処理関数の共通化

同じようなフラグ付与処理を行う関数がフラグ毎に存在しているので、
フラグを引数で渡すようにして処理を共通化する。
また、共通化した事によってこれまで氷免疫フラグが付与された時に
6/7の確率で付与したばかりのフラグが削除されていた不具合も同時に
解消される。

2 years ago[Feature] ランダムアーティファクトへの新上位耐性の付与
Habu [Sat, 4 Sep 2021 03:04:22 +0000 (12:04 +0900)]
[Feature] ランダムアーティファクトへの新上位耐性の付与

ランダムアーティファクトに 3.0.0Alpha で追加された新しい上位耐性の、
時間逆転・水・呪力耐性が付与されるようにする。
付与される確率は閃光・暗黒耐性を除く他の上位耐性の 1/2 だが、
BIAS_RANGER の時は水耐性(ついでに毒耐性も)、BIAS_PRIESTLY の時は
呪力耐性が付与されるようにする。また逆にそれぞれの耐性の付与時に
確率で BIAS_RANGER と BIAS_PRIESTLY を設定するようにする。

2 years ago[Feature] ランダムに付与される上位耐性の種類を追加
Habu [Sat, 4 Sep 2021 02:55:48 +0000 (11:55 +0900)]
[Feature] ランダムに付与される上位耐性の種類を追加

3.0.0Alphaで追加された上位耐性フラグ TR_RES_TIME・TR_RES_WATER・
TR_RES_CURSE をランダムな上位耐性追加処理により付与されるようにする。
付与される確率は他の上位耐性と等確率。

2 years agoMerge pull request #1445 from Hourier/feature/Refactor-get-random-art-filename
Hourier [Sat, 4 Sep 2021 01:47:15 +0000 (10:47 +0900)]
Merge pull request #1445 from Hourier/feature/Refactor-get-random-art-filename

ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した

2 years ago[Refactor] ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した / Simplified get_random_art_filename...
Hourier [Thu, 2 Sep 2021 14:10:04 +0000 (23:10 +0900)]
[Refactor] ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した / Simplified get_random_art_filename() because it's redundant

2 years agoMerge pull request #1446 from habu1010/feature/incorporate-object-function-into-menbe...
Habu [Sat, 4 Sep 2021 00:55:10 +0000 (09:55 +0900)]
Merge pull request #1446 from habu1010/feature/incorporate-object-function-into-menber-function

object_is_foobar() 系の関数を object_type のメンバ関数にする

2 years ago[Refactor] ソースコードの可読性の向上
Habu [Fri, 3 Sep 2021 23:53:46 +0000 (08:53 +0900)]
[Refactor] ソースコードの可読性の向上

PR #1446 のレビューに基づき、ソースコードの可読性を向上させる。