diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 8bbf783ead4517465445272f9144cf06bdac9be7 (patch) | |
tree | 9fa9cc4de0c53df33c557d66a9efbc6781f6fb94 /src/xtra2.cc | |
parent | 013e27d39ee8ee513208d2855c7e3f6252f0c0bf (diff) |
Refactor object_type 'artifact name' field to std::string
We don't really need quarks for this since we're not nearly as
memory-constrained these days.
Diffstat (limited to 'src/xtra2.cc')
-rw-r--r-- | src/xtra2.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xtra2.cc b/src/xtra2.cc index fdcbfdfa..4334b999 100644 --- a/src/xtra2.cc +++ b/src/xtra2.cc @@ -62,10 +62,12 @@ #include "xtra1.hpp" #include "z-rand.hpp" -#include <type_traits> +#include <boost/algorithm/string/predicate.hpp> #include <cassert> +#include <fmt/format.h> +#include <type_traits> + -#include <boost/algorithm/string/predicate.hpp> using boost::algorithm::iequals; @@ -2492,7 +2494,7 @@ void monster_death(int m_idx) /* Mega-Hack -- Name the sword */ - q_ptr->art_name = quark_add("'Stormbringer'"); + q_ptr->artifact_name = "'Stormbringer'"; q_ptr->to_h = 16; q_ptr->to_d = 16; q_ptr->ds = 6; @@ -2688,7 +2690,7 @@ void monster_death(int m_idx) create_artifact(q_ptr, TRUE, FALSE); /* Save the inscription */ - q_ptr->art_name = quark_add(format("of %s", r_ptr->name)); + q_ptr->artifact_name = fmt::format("of {}", r_ptr->name); q_ptr->found = OBJ_FOUND_MONSTER; q_ptr->found_aux1 = m_ptr->r_idx; |