Skip to content

Commit

Permalink
Merge pull request #1565 from sikabane-works/release/3.0.0Alpha39
Browse files Browse the repository at this point in the history
Release/3.0.0 alpha39
  • Loading branch information
sikabane-works committed Sep 20, 2021
2 parents ee134a7 + 13c5f39 commit ce11d9c
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doxygen/Hengband.doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = Hengband
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 3.0.0Alpha38
PROJECT_NUMBER = 3.0.0Alpha39

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
4 changes: 2 additions & 2 deletions lib/edit/r_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26250,8 +26250,8 @@ D:口から炎や毒ガスやシューリンガンなどを吐き出して攻撃
N:1328:ピカチャウ (ルルイエのすがた)
E:Pikachau (R'lyehian Form)
G:r:G
I:130:80d30:30:90:0
W:80:3:0:5500:90:0
I:130:80d30:30:90:90
W:80:3:0:5500:0:0
B:CLAW:ACID:1d20
B:CLAW:ELEC:1d20
B:CRUSH:ELEC:3d33
Expand Down
3 changes: 2 additions & 1 deletion src/dungeon/dungeon.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ typedef struct feat_prob {

/* A structure for the != dungeon types */
typedef struct dungeon_type {
DUNGEON_IDX idx{};

std::string name; /* Name */
std::string name; /* Name */
std::string text; /* Description */

POSITION dy{};
Expand Down
1 change: 1 addition & 0 deletions src/grid/feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ typedef struct feature_state {
* @brief 地形情報の構造体 / Information about terrain "features"
*/
typedef struct feature_type {
FEAT_IDX idx{};
std::string name; /*!< 地形名参照のためのネームバッファオフセット値 / Name (offset) */
std::string text; /*!< 地形説明参照のためのネームバッファオフセット値 / Text (offset) */
std::string tag; /*!< 地形特性タグ参照のためのネームバッファオフセット値 / Tag (offset) */
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/artifact-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ errr parse_a_info(std::string_view buf, angband_header *head)

error_idx = i;
a_ptr = &a_info[i];
a_ptr->idx = i;
a_ptr->flags.set(TR_IGNORE_ACID);
a_ptr->flags.set(TR_IGNORE_ELEC);
a_ptr->flags.set(TR_IGNORE_FIRE);
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/dungeon-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ errr parse_d_info(std::string_view buf, angband_header *head)

error_idx = i;
d_ptr = &d_info[i];
d_ptr->idx = i;
#ifdef JP
d_ptr->name = tokens[2];
#endif
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/ego-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ errr parse_e_info(std::string_view buf, angband_header *head)

error_idx = i;
e_ptr = &e_info[i];
e_ptr->idx = i;
#ifdef JP
e_ptr->name = tokens[2];
#endif
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/feature-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ errr parse_f_info(std::string_view buf, angband_header *head)

error_idx = i;
f_ptr = &f_info[i];
f_ptr->idx = i;
f_ptr->tag = tokens[2];

f_ptr->mimic = (FEAT_IDX)i;
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/kind-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ errr parse_k_info(std::string_view buf, angband_header *head)

error_idx = i;
k_ptr = &k_info[i];
k_ptr->idx = i;
#ifdef JP
k_ptr->name = tokens[2];
#endif
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/race-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ errr parse_r_info(std::string_view buf, angband_header *head)

error_idx = i;
r_ptr = &r_info[i];
r_ptr->idx = i;
#ifdef JP
r_ptr->name = tokens[2];
#endif
Expand Down
1 change: 1 addition & 0 deletions src/info-reader/vault-reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ errr parse_v_info(std::string_view buf, angband_header *head)

error_idx = i;
v_ptr = &v_info[i];
v_ptr->idx = i;
v_ptr->name = std::string(tokens[2]);
} else if (!v_ptr)
return PARSE_ERROR_MISSING_RECORD_HEADER;
Expand Down
2 changes: 2 additions & 0 deletions src/object-enchant/object-ego.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ struct ego_generate_type {
* Information about "ego-items".
*/
struct ego_item_type {
EGO_IDX idx{};

std::string name; //!< エゴの名前
std::string text; //!< フレーバーテキスト

Expand Down
2 changes: 1 addition & 1 deletion src/object-enchant/smith-info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool EnchantWeaponSmithInfo::add_essence(player_type *player_ptr, object_type *o

bool EnchantWeaponSmithInfo::can_give_smith_effect(const object_type *o_ptr) const
{
return o_ptr->allow_enchant_melee_weapon();
return o_ptr->allow_enchant_weapon();
}

EnchantArmourSmithInfo::EnchantArmourSmithInfo(SmithEffect effect, concptr name, SmithCategory category, std::vector<SmithEssence> need_essences, int consumption)
Expand Down
2 changes: 2 additions & 0 deletions src/object/object-kind.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include <vector>

typedef struct object_kind {
KIND_OBJECT_IDX idx{};

std::string name; /*!< ベースアイテム名参照のためのネームバッファオフセット値 / Name (offset) */
std::string text; /*!< 解説テキスト参照のためのネームバッファオフセット値 / Text (offset) */
std::string flavor_name; /*!< 未確定名参照のためのネームバッファオフセット値 / Flavor name (offset) */
Expand Down
2 changes: 2 additions & 0 deletions src/room/rooms-vault.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <vector>

typedef struct vault_type {
int16_t idx;

std::string name; /* Name (offset) */
std::string text; /* Text (offset) */

Expand Down
2 changes: 1 addition & 1 deletion src/system/angband-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define H_VER_MAJOR 3 //!< ゲームのバージョン定義(メジャー番号)
#define H_VER_MINOR 0 //!< ゲームのバージョン定義(マイナー番号)
#define H_VER_PATCH 0 //!< ゲームのバージョン定義(パッチ番号)
#define H_VER_EXTRA 38 //!< ゲームのバージョン定義(エクストラ番号)
#define H_VER_EXTRA 39 //!< ゲームのバージョン定義(エクストラ番号)

/*!
* @brief セーブファイルのバージョン(3.0.0から導入)
Expand Down
4 changes: 3 additions & 1 deletion src/system/artifact-type-definition.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
* "max_num" is always "1" (if that artifact "exists")
*/
typedef struct artifact_type {
std::string name; /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
ARTIFACT_IDX idx{};

std::string name; /*!< アーティファクト名(headerオフセット参照) / Name (offset) */
std::string text; /*!< アーティファクト解説(headerオフセット参照) / Text (offset) */
tval_type tval{}; /*!< ベースアイテム大項目ID / Artifact type */
OBJECT_SUBTYPE_VALUE sval{}; /*!< ベースアイテム小項目ID / Artifact sub type */
Expand Down
1 change: 1 addition & 0 deletions src/system/monster-race-definition.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ typedef struct monster_blow {
* fields have a special prefix to aid in searching for them.
*/
struct monster_race {
MONRACE_IDX idx{};
std::string name; //!< 名前データのオフセット(日本語) / Name offset(Japanese)
#ifdef JP
std::string E_name; //!< 名前データのオフセット(英語) / Name offset(English)
Expand Down

0 comments on commit ce11d9c

Please sign in to comment.