* @param what 参照元の文字列ポインタ
* @return 見つかったらtrue
*/
-static bool grab_one_artifact_flag(artifact_type *a_ptr, std::string_view what)
+static bool grab_one_artifact_flag(ArtifactType *a_ptr, std::string_view what)
{
if (TrFlags::grab_one_flag(a_ptr->flags, k_info_flags, what)) {
return true;
*/
errr parse_a_info(std::string_view buf, angband_header *)
{
- static artifact_type *a_ptr = nullptr;
+ static ArtifactType *a_ptr = nullptr;
const auto &tokens = str_split(buf, ':', false, 10);
if (tokens[0] == "N") {
error_idx = i;
a_ptr = &a_info[i];
- a_ptr->idx = static_cast<ARTIFACT_IDX>(i);
+ a_ptr->idx = i2enum<FixedArtifactId>(i);
a_ptr->flags.set(TR_IGNORE_ACID);
a_ptr->flags.set(TR_IGNORE_ELEC);
a_ptr->flags.set(TR_IGNORE_FIRE);