Use fmtlib for Capture Soul message

This commit is contained in:
2025-08-09 20:09:13 -04:00
committed by Celtic Minstrel
parent 9780067808
commit b0d1c0dbfb

View File

@@ -1,5 +1,6 @@
#include <cstdio> #include <cstdio>
#include <fmt/format.h>
#include "boe.global.hpp" #include "boe.global.hpp"
@@ -1107,7 +1108,7 @@ void record_monst(cCreature* which_m, bool forced) {
univ.party.imprisoned_monst[r1] = which_m->number; univ.party.imprisoned_monst[r1] = which_m->number;
} }
ASB("Capture Soul: Success!"); ASB("Capture Soul: Success!");
add_string_to_buf(" Caught in slot " + std::to_string(r1 + 1) + "."); add_string_to_buf(fmt::format(" Caught in slot {}.", r1 + 1));
play_sound(53); play_sound(53);
} }
} }