- char buf[360];
- char title[180];
- put_version(title);
- sprintf(buf, "Artifact Spoilers for Hengband Version %s", title);
- spoiler_underline(buf);
-}
-
-/*!
- * @brief アーティファクト情報を出力するためにダミー生成を行う /
- * Hack -- Create a "forged" artifact
- * @param o_ptr 一時生成先を保管するオブジェクト構造体
- * @param name1 生成するアーティファクトID
- * @return 生成が成功した場合TRUEを返す
- */
-static bool make_fake_artifact(object_type *o_ptr, ARTIFACT_IDX name1)
-{
- artifact_type *a_ptr = &a_info[name1];
- if (a_ptr->name.empty())
- return false;
-
- OBJECT_IDX i = lookup_kind(a_ptr->tval, a_ptr->sval);
- if (!i)
- return false;
-
- o_ptr->prep(i);
- o_ptr->name1 = name1;
- o_ptr->pval = a_ptr->pval;
- o_ptr->ac = a_ptr->ac;
- o_ptr->dd = a_ptr->dd;
- o_ptr->ds = a_ptr->ds;
- o_ptr->to_a = a_ptr->to_a;
- o_ptr->to_h = a_ptr->to_h;
- o_ptr->to_d = a_ptr->to_d;
- o_ptr->weight = a_ptr->weight;
- return true;
+ const auto &artifact = ArtifactsInfo::get_instance().get_artifact(fixed_artifact_idx);
+ const auto bi_id = lookup_baseitem_id(artifact.bi_key);
+ ItemEntity item;
+ item.prep(bi_id);
+ item.fixed_artifact_idx = fixed_artifact_idx;
+ item.pval = artifact.pval;
+ item.ac = artifact.ac;
+ item.dd = artifact.dd;
+ item.ds = artifact.ds;
+ item.to_a = artifact.to_a;
+ item.to_h = artifact.to_h;
+ item.to_d = artifact.to_d;
+ item.weight = artifact.weight;
+ return item;